Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url http://localhost/subscriptions \ --header 'Authorization: Bearer <token>'
{ "object": "list", "items": [ { "object": "subscription", "id": "sub_<id>", "plan": "pln_<id>", "customer": "cus_<id>", "address": "adr_<id>", "meter": "mtr_<id>", "payment_method": "pm_<id>", "status": "active", "direction": "consumption", "estimated_usage": 123, "created_at": "2024-03-14T12:00:00Z", "updated_at": "2024-03-14T12:00:00Z", "supplier": "mp_<id>", "number": "4X44EMKX", "start_at": "2024-03-14T12:00:00Z", "terminated_at": "2024-03-14T12:00:00Z", "end_at": "2024-03-14T12:00:00Z", "metadata": { "utm_source": "google", "utm_campaign": "campaign_name", "user_id": "1234567890" } } ] }
Retrieve all subscriptions
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
list
Show child attributes
Was this page helpful?