curl --request POST \
--url https://uat-api.clinkbill.com/api/subscription/{id}/pause \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"reason": "Customer requested a break"
}
'{
"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
Pause Subscription
Pause an eligible active subscription now or replace its pending pause schedule. A future pauseAt keeps the subscription active until the pause takes effect. UPI, PIX and subscriptions set to cancel at period end are ineligible.
POST
/
subscription
/
{id}
/
pause
curl --request POST \
--url https://uat-api.clinkbill.com/api/subscription/{id}/pause \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"reason": "Customer requested a break"
}
'{
"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"
}
}
}All merchants can pause an eligible
Omit
active subscription managed by Clink. An empty body or {} pauses it immediately. To schedule a pause, send a future pauseAt in Unix milliseconds. A time at or before the current time takes effect immediately. Submitting a new pause request replaces any pending pause plan, including its reason and automatic resume time.
For example, build this request body to pause tomorrow and resume one week later:
const day = 24 * 60 * 60 * 1000;
const pauseAt = Date.now() + day;
const body = { pauseAt, resumeAt: pauseAt + 7 * day, reason: "Customer requested a break" };
resumeAt for manual resumption. While the pause is pending, the response has status: "active" and pause.pauseAt. Once it takes effect, the status is paused and the response includes pause.pausedAt and pause.remainingSeconds.
| Business code | What to do |
|---|---|
90100252 | The pause operation is unavailable. Contact support if this persists. |
90100253 | Check that the subscription is active and managed by Clink. Mirrored subscriptions are ineligible. |
90100254 | Wait for the renewal in progress to complete before pausing. |
90100255 | Wait for the pending immediate plan change to finish before pausing. |
90100256 | The subscription is already set to cancel at period end. |
90100257 | UPI and PIX subscriptions cannot be paused. |
90100258 | Choose a time inside the UTC range in the error message. An automatic resume must be later than both now and the pause time. |
Authorizations
Headers
Body
application/json
Response
Updated subscription on success. Check the business code in the response.