Subscriptions
Get Subscription
Retrieve a specific subscription
get/customers/{customer_id}/subscriptions/{id}
Request
- Base URLhttps://api.conekta.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
customer_idstring required
Example:cus_2tGzG1GxtDAZHEGPH
Identifier of the customer resource
idstring required
Example:sub_2tGzG1GxtDAZHEGPH
Identifier of the subscription resource
Headers
Accept-Language'es' | 'en'
Use for knowing which language to use
X-Child-Company-Idstring
In the case of a holding company, the company id of the child company to which will process the request.
Response
successful
Example response
{
"billing_cycle_start": 1677626827,
"billing_cycle_end": 1677626827,
"canceled_at": 1678258162,
"canceled_reason": "user_cancelation",
"card_id": "src_2tKcHxhTz7xU5SymL",
"charge_id": "2tKcHxhTz7xU5SymL",
"created_at": 1677626837,
"customer_custom_reference": "dotnet_123456",
"customer_id": "cus_2tKcHxhTz7xU5SymF",
"id": "gold-plan",
"last_billing_cycle_order_id": "ord_2tSoMP7bZJbLiq4z8",
"object": "subscription",
"paused_at": 1678258162,
"plan_id": "plan_2tXx672QLQ68CkmMn",
"status": "past_due",
"subscription_start": 1677626837,
"trial_start": 1677626837,
"trial_end": 1677626837
}Changes
No recorded changes to this operation across all 2 revisions of this API.