API Docs
Subscriptions
API ReferenceSubscriptionsResume

Resume Subscription

Resumes a paused subscription. Billing restarts from the next billing date and any unpaid invoices can be handled as part of the resume.

POST /subscriptions/{subscription_id}/resume

Path Parameters

ParameterTypeRequiredDescription
subscription_idstringYesThe unique identifier for the subscription.

Headers

HeaderTypeRequiredDescription
api-keystringYesYour secret API key.
X-Profile-IdstringYesProfile ID for authentication.

Body Parameters

ParameterTypeRequiredDescription
resume_optionstringNoWhen to resume: immediately or specific_date. Defaults to immediately if omitted.
resume_datestringNoISO 8601 date when the subscription should resume. Required when resume_option is specific_date.
charges_handlingstringNoHow to handle charges accrued during the pause: invoice_immediately or add_to_unbilled_charges.
unpaid_invoices_handlingstringNoHow to handle any unpaid invoices: no_action or schedule_payment_collection.

Request Example

curl -X POST 'https://api.sandbox.paychtec.com/subscriptions/sub_abc123/resume' \  -H "Content-Type: application/json" \  -H "api-key: snd_YOUR_API_KEY" \  -H "X-Profile-Id: prof_12345" \  -d '{  "resume_option": "immediately",  "unpaid_invoices_handling": "schedule_payment_collection"}'

Response

{
  "id": "sub_abc123",
  "status": "active",
  "profile_id": "prof_12345",
  "merchant_id": "mer_abc123",
  "customer_id": "cust_123456789",
  "merchant_reference_id": "mer_ref_123456789",
  "next_billing_at": "2024-07-01T00:00:00Z"
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the subscription.
statusstringUpdated subscription status — will be active.
profile_idstringThe profile this subscription belongs to.
merchant_idstringThe merchant account identifier.
customer_idstringThe customer this subscription belongs to.
merchant_reference_idstringYour own reference ID for this subscription, if set.
next_billing_atstringISO 8601 timestamp of the next scheduled billing date.

Resume Options

OptionDescription
immediatelyResume the subscription right away.
specific_dateResume on the date provided in resume_date.

Charges Handling

OptionDescription
invoice_immediatelyGenerate and charge an invoice immediately for any accrued charges.
add_to_unbilled_chargesAdd accrued charges to the next billing cycle.

Unpaid Invoices Handling

OptionDescription
no_actionLeave unpaid invoices as-is.
schedule_payment_collectionAttempt to collect payment on unpaid invoices when the subscription resumes.

Error Responses

Status CodeDescription
400Invalid resume data — check resume_option value or resume_date format.
404Subscription not found — verify the subscription_id.