curl --request GET \
--url https://services.leadconnectorhq.com/payments/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"data": [
{
"_id": "64bf78af39118e4011926cba",
"altId": "3SwdhCu3svxI8AKsPJt6",
"altType": "location",
"status": "active",
"entitySourceType": "funnel",
"createdAt": "2023-11-20T10:23:36.515Z",
"updatedAt": "2023-11-20T10:23:36.515Z",
"contactId": "XPLSw2SVagl12LMDeTmQ",
"contactName": "James Bond",
"contactEmail": "james.bond@gohighlevel.com",
"currency": "USD",
"amount": "100",
"liveMode": "false",
"entityType": "order",
"entityId": "62f4db0f3059ecee61379012",
"entitySourceName": "Attribution Funnel",
"entitySourceId": "bevrkPbLaDNXFaqfLKMm",
"entitySourceMeta": "{ domain: \"app.gohighlevel.com\", pageId: \"sxC4lNhFIavEnLZh5KhC\", pageUrl: \"/v2/preview/sxC4lNhFIavEnLZh5KhC\", stepId: \"7d303d1f-cb85-403d-b548-bf01de5c7bb0\" }",
"subscriptionId": "I-0UE609H8E43P",
"subscriptionSnapshot": "{ status: \"ACTIVE\", status_update_time: \"2022-08-16T11:06:53Z\", id: \"I-0UE609H8E43P\", plan_id: \"P-82K11750F0313430KMLRGE6Y\", start_time: \"2022-08-16T11:05:31Z\", quantity: 1 }",
"paymentProviderType": "stripe",
"paymentProviderConnectedAccount": "ATn0CqrzrWS5ak185Bsb1xCpyzBDOZ8WdRxyFotppLYePTDhiuQ49H5QXO_L-4HKk1GBn7f9_QhbNK2s",
"ipAddress": "103.100.16.82",
"createdBy": "user123"
}
],
"totalCount": 123
}The “List Subscriptions” API allows to retrieve a paginated list of subscriptions. Customize your results by filtering subscriptions based on name, alt type, subscription status, payment mode, date range, type of source, contact, subscription id, entity id, contact or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve subscription information.
curl --request GET \
--url https://services.leadconnectorhq.com/payments/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"data": [
{
"_id": "64bf78af39118e4011926cba",
"altId": "3SwdhCu3svxI8AKsPJt6",
"altType": "location",
"status": "active",
"entitySourceType": "funnel",
"createdAt": "2023-11-20T10:23:36.515Z",
"updatedAt": "2023-11-20T10:23:36.515Z",
"contactId": "XPLSw2SVagl12LMDeTmQ",
"contactName": "James Bond",
"contactEmail": "james.bond@gohighlevel.com",
"currency": "USD",
"amount": "100",
"liveMode": "false",
"entityType": "order",
"entityId": "62f4db0f3059ecee61379012",
"entitySourceName": "Attribution Funnel",
"entitySourceId": "bevrkPbLaDNXFaqfLKMm",
"entitySourceMeta": "{ domain: \"app.gohighlevel.com\", pageId: \"sxC4lNhFIavEnLZh5KhC\", pageUrl: \"/v2/preview/sxC4lNhFIavEnLZh5KhC\", stepId: \"7d303d1f-cb85-403d-b548-bf01de5c7bb0\" }",
"subscriptionId": "I-0UE609H8E43P",
"subscriptionSnapshot": "{ status: \"ACTIVE\", status_update_time: \"2022-08-16T11:06:53Z\", id: \"I-0UE609H8E43P\", plan_id: \"P-82K11750F0313430KMLRGE6Y\", start_time: \"2022-08-16T11:05:31Z\", quantity: 1 }",
"paymentProviderType": "stripe",
"paymentProviderConnectedAccount": "ATn0CqrzrWS5ak185Bsb1xCpyzBDOZ8WdRxyFotppLYePTDhiuQ49H5QXO_L-4HKk1GBn7f9_QhbNK2s",
"ipAddress": "103.100.16.82",
"createdBy": "user123"
}
],
"totalCount": 123
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 AltId is the unique identifier e.g: location id.
"3SwdhCu3svxI8AKsPJt6"
AltType is the type of identifier.
location "location"
Entity id for filtering of subscriptions.
"61dd0fe9c077f73e67f78803"
Mode of payment.
"live"
Starting interval of subscriptions.
"2024-02-01"
Closing interval of subscriptions.
"2024-02-13"
Source of the subscriptions.
"funnel"
The name of the subscription for searching.
"Awesome subscription"
Contact ID for the subscription
"AmuzcoPBpgKeccNsFlib"
Subscription id for filtering of subscriptions.
"64bf78af39118e4011926cba"
The maximum number of items to be included in a single page of results
20
The starting index of the page, indicating the position from which the results should be retrieved.
0
Get the total payments collected for the subscription.
"true"
Was this page helpful?