Skip to main content

Get subscription

Endpoint for getting Subscription by id.

info

Please be aware that this endpoint requires a Manage Transactions API Key.

GET /api/v1/groups/{group_id}/revere_pay/{linked_account_id}/recurring/subscription/{subscription_id}

Response​

CodeDescription
200Success
400Bad Request
404Not Found
500Internal Error

Example Usage​

plans.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');

var requestOptions = {
	method: 'GET',
	headers: headers,
	redirect: 'follow'
};
const group_id = '';
const linked_account_id = '';
const subscription_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/recurring/subscription/${subscription_id}`;
fetch(url, requestOptions)
	.then((response) => response.text())
	.then((result) => console.log(result))
	.catch((error) => console.log('error', error));

Example Success Response​

{
	"data": {
		"id": "eef1b240-6e4d-42f7-93ea-873d165aa696",
		"plan_id": "6f8df983-62a1-4d36-85fd-2e37114fa694",
		"duration": 0,
		"amounts": {
			"amount": 30000,
			"tax_amount": 1000,
			"initial_amount": 20000
		},
		"billing_cycle": "daily",
		"billing_factor": 7,
		"next_bill_date": "2026-04-18T00:00:00Z",
		"description": "Endless subscription",
		"currency": "USD",
		"processor_id": "<processor_id>",
		"proration_behavior": "create_prorations",
		"retry_count": 3,
		"metadata": {
			"billing_period_end": "2026-04-18T00:00:00Z",
			"billing_period_start": "2026-04-11T00:00:00Z",
			"max_retry_count": 3,
			"form_layout_id": null,
			"form_layout_external_id": null,
			"form_entry_id": null,
			"charge_count": 1,
			"failure_attempt_count": 0
		},
		"trial_period_days": 15,
		"in_trial_period": true,
		"in_initial_period": true,
		"payment_method": "card",
		"payment_details": {
			"card": {
				"brand": "Visa",
				"card_type": "debit",
				"first_six": "411111",
				"last_four": "1111"
			}
		},
		"billing_address": {
			"address": {
				"first_name": "John",
				"last_name": "Doe",
				"city": "New York",
				"line_1": "1st Ave.",
				"line_2": "1217",
				"subdivision": "NY",
				"postal_code": "10065",
				"country": "US",
				"email": "johndoe@example.com"
			}
		},
		"status": "active",
		"gateway_customer_id": "<customer_id>",
		"balance": 5714,
		"proration_history": [
			{
				"id": "0f1c5e64-6b41-4a35-9a4e-2f5f0b7d1a90",
				"customer_id": "8c2f0d51-7b13-4a2e-9f60-1d4c8b7a5e39",
				"subscription_id": "eef1b240-6e4d-42f7-93ea-873d165aa696",
				"plan_id": "6f8df983-62a1-4d36-85fd-2e37114fa694",
				"trigger": "amount_change",
				"behavior": "create_prorations",
				"status": "pending",
				"change_date": "2026-04-14T00:00:00Z",
				"billing_period_start": "2026-04-11T00:00:00Z",
				"billing_period_end": "2026-04-18T00:00:00Z",
				"days_remaining": 4,
				"days_in_period": 7,
				"old_amount": 20000,
				"new_amount": 30000,
				"credit_amount": 11429,
				"charge_amount": 17143,
				"net_amount": 5714,
				"currency": "USD",
				"created_at": "2026-04-14T09:12:44.512331Z"
			}
		]
	}
}