Logo
GoCardless API API Documentation

Get a single Subscription

GET {{url}}/subscriptions/{{subscription}}

Retrieves the details of a single subscription.

Get a Subscription API Docs

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "subscriptions": { "id": "SB000AM48DNDJM", "created_at": "2024-03-22T20:27:03.150Z", "amount": 190, "currency": "GBP", "status": "active", "name": "New name", "start_date": "2024-04-15", "end_date": "2025-03-18", "interval": 1, "interval_unit": "monthly", "day_of_month": 15, "month": null, "count": 12, "metadata": { "order_no": "223" }, "payment_reference": null, "upcoming_payments": [ { "charge_date": "2024-04-15", "amount": 190 }, { "charge_date": "2024-05-15", "amount": 190 }, { "charge_date": "2024-06-17", "amount": 190 }, { "charge_date": "2024-07-15", "amount": 190 }, { "charge_date": "2024-08-15", "amount": 190 }, { "charge_date": "2024-09-16", "amount": 190 }, { "charge_date": "2024-10-15", "amount": 190 }, { "charge_date": "2024-11-15", "amount": 190 }, { "charge_date": "2024-12-16", "amount": 190 }, { "charge_date": "2025-01-15", "amount": 190 } ], "app_fee": null, "links": { "mandate": "MD000ZS5AS941B" }, "retry_if_possible": true, "earliest_charge_date_after_resume": null } }



Curl
curl -X GET 'https://api-sandbox.gocardless.com/subscriptions/https://api-sandbox.gocardless.com'

ENDPOINTS