Subscriptions
Update Subscription [Deprecated]
DEPRECATED: This endpoint will be removed in version 2.3.0. You can modify the subscription to change the plans that your customers consume
put/customers/{id}/subscription
Request
- Base URLhttps://api.conekta.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Example:6307a60c41de27127515a575
Identifier of the 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.
Request body
Example request
{
"plan_id": "f84gdgf5g48r15fd21g8w424fd1",
"card_id": "src_2qUCNd5AyQqfPMBuV",
"trial_end": 1484040996
}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.