v1
latestOpenAPI 3.1.02026-07-228956435.8 KBSubscriptions
Get a subscription
Retrieves a subscription by its id, with its subscription items included. Only subscriptions of your organization matching the live or test mode of the API key used are visible.
get/subscriptions/{id}
Path parameters
idstring required
The id of the subscription to retrieve.
Response
The subscription, with its items included.
Example response
{
"id": "sub_2c4mDcMaVxDx7nT3o5GbPMQbS2v",
"billing_cycle_anchor": "2026-06-01T15:00:00Z",
"collection_method": "send_invoice",
"created_at": "2026-06-01T15:00:00Z",
"customer": "cus_2c4mDe9NJyGmMzvCqLkXqAtjnRu",
"items": [
{
"id": "si_2c4mDfkPLLrLTCJ3wPCEHGYpkVf",
"price": {
"currency": "CLP",
"product": {
"id": "prod_2c4mDgwQqkNwMHnXSc4DBjkbcWz",
"created_at": "2026-06-01T15:00:00Z",
"description": "Access to every premium feature.",
"image_url": "https://example.com/image.png",
"metadata": {
"category": "saas"
},
"mode": "live",
"name": "Premium plan"
},
"recurring": {
"interval": "month",
"interval_count": 1
},
"unit_amount": 10000
},
"quantity": 1
}
],
"metadata": {
"order_id": "12345"
},
"mode": "live",
"status": "active"
}