curl --request POST \
--url https://uat-api.clinkbill.com/api/subscription/{id}/resume/schedule \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"resumeAt": null
}
'{
"code": 200,
"msg": "success",
"data": {
"subscriptionId": "sub_xxxxx",
"customerId": "cus_xxxxx",
"productId": "prd_xxxxx",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"createTime": 1793491200000,
"quantity": 1,
"paymentMethodType": "card",
"paymentInstrumentId": "pi_xxxxx",
"status": "paused",
"billing": "charge_automatically",
"currency": "USD",
"currentPeriodStart": 1793491200000,
"currentPeriodEnd": 1796083200000,
"recurringInvoiceItem": {
"invoiceItemId": "ii_xxxxx",
"amount": "20.00",
"currency": "USD",
"periodStart": 1793491200000,
"periodEnd": 1796083200000,
"discountAmount": "2.00",
"paymentAmount": "18.00",
"description": "Monthly membership",
"price": {
"productId": "prd_xxxxx",
"productName": "Monthly Membership",
"productUrl": "https://merchant.example.com/membership",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"unitAmount": "20.00",
"quantity": 1,
"recurring": {
"interval": "month",
"intervalCount": 1,
"pricingModel": "flat_rate"
}
}
},
"pause": {
"pausedAt": 1795737600000,
"remainingSeconds": 345600,
"reason": "Customer requested a break"
}
}
}Subscription
Update Automatic Resume Time
Set or replace the automatic resume time of a paused subscription. Send {"resumeAt": null}, an empty object, or no body to clear the schedule and keep the subscription paused until manually resumed.
POST
/
subscription
/
{id}
/
resume
/
schedule
curl --request POST \
--url https://uat-api.clinkbill.com/api/subscription/{id}/resume/schedule \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"resumeAt": null
}
'{
"code": 200,
"msg": "success",
"data": {
"subscriptionId": "sub_xxxxx",
"customerId": "cus_xxxxx",
"productId": "prd_xxxxx",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"createTime": 1793491200000,
"quantity": 1,
"paymentMethodType": "card",
"paymentInstrumentId": "pi_xxxxx",
"status": "paused",
"billing": "charge_automatically",
"currency": "USD",
"currentPeriodStart": 1793491200000,
"currentPeriodEnd": 1796083200000,
"recurringInvoiceItem": {
"invoiceItemId": "ii_xxxxx",
"amount": "20.00",
"currency": "USD",
"periodStart": 1793491200000,
"periodEnd": 1796083200000,
"discountAmount": "2.00",
"paymentAmount": "18.00",
"description": "Monthly membership",
"price": {
"productId": "prd_xxxxx",
"productName": "Monthly Membership",
"productUrl": "https://merchant.example.com/membership",
"priceId": "price_xxxxx",
"priceSnapshotId": "pricesns_xxxxx",
"unitAmount": "20.00",
"quantity": 1,
"recurring": {
"interval": "month",
"intervalCount": 1,
"pricingModel": "flat_rate"
}
}
},
"pause": {
"pausedAt": 1795737600000,
"remainingSeconds": 345600,
"reason": "Customer requested a break"
}
}
}For a
An empty body or
paused subscription, send a future resumeAt in Unix milliseconds to set or replace its automatic resume time. For example, { resumeAt: Date.now() + 24 * 60 * 60 * 1000 } in JavaScript schedules resumption in 24 hours.
Send the following JSON to switch to manual resumption. The subscription stays paused.
{ "resumeAt": null }
{} has the same effect. Setting, changing, or clearing this time emits subscription.updated.pause_schedule_set. Actual resumption emits subscription.resumed.
Clink returns 90100259 if the subscription is not paused and 90100258 if the time is outside the allowed window. Use the UTC range in the error message.Authorizations
Headers
Body
application/json
Response
Updated subscription on success. Check the business code in the response.