Skip to main content

Get subscriptions

Endpoint for getting all Subscriptions.

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

Query Parameters​

NameDescriptionType
limitOptional parameter to limit the number of results in the queryuint64
offsetThe number of items to skip before starting to collect the result set.uint64
subscription_idSubscription IDstring
nameName of the customerstring
emailEmail of the customerstring

Response​

CodeDescription
200Success
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 url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/recurring/subscription?limit=10&offset=0`;
fetch(url, requestOptions)
	.then((response) => response.text())
	.then((result) => console.log(result))
	.catch((error) => console.log('error', error));

Example Success Response​

{
	"data": {
		"items": [
			{
				"id": "<subscription_id>",
				"plan_id": "<plan_id>",
				"plan_name": "Daily $2",
				"duration": null,
				"amounts": {
					"amount": 200,
					"tax_amount": 5,
					"initial_amount": 100
				},
				"billing_cycle": "daily",
				"billing_factor": 1,
				"next_bill_date": "2026-07-28T00:00:00Z",
				"description": "Endless subscription",
				"currency": "USD",
				"processor_id": "<processor_id>",
				"retry_count": 3,
				"metadata": {
					"billing_period_end": "2026-07-28T00:00:00Z",
					"billing_period_start": "2026-07-27T00:00:00Z",
					"max_retry_count": 3,
					"form_layout_id": null,
					"form_layout_external_id": null,
					"form_entry_id": null,
					"charge_count": 5,
					"failure_attempt_count": 0
				},
				"trial_period_days": 15,
				"in_trial_period": true,
				"in_initial_period": true,
				"payment_method": "wallet",
				"payment_details": {
					"wallet": {
						"group_id": "<group_id>",
						"group_name": "Test Company",
						"wallet_id": "<wallet_id>"
					}
				},
				"billing_address": {
					"address": {
						"first_name": "John",
						"last_name": "Doe",
						"company": "Test Company",
						"city": "New York",
						"line_1": "1st Ave.",
						"line_2": "1217",
						"subdivision": "NY",
						"postal_code": "10065",
						"country": "US",
						"email": "johndoe@example.com"
					}
				},
				"status": "completed",
				"gateway_customer_id": "<customer_id>"
			}
		],
		"total_count": 1
	}
}