Skip to main content

Reactivate

Reactivate a subscription that was canceled but is still within its reactivation window (typically before endDate). Used to undo a previous cancellation, not to start a new subscription.

URL

POST /api/c2a/subscription/reactivate

Request Parameters

Body: RestartSubscriptionContext.

NameTypeDescription
orderIdentifierstringRequired. The canceled subscription's order id.
sourcestring (EnInteractionSource)Forced to C2A server-side.

Request Example

{ "orderIdentifier": "or_01J3X..." }

Response Parameters

ReactivateSubscriptionResponse envelope.

NameTypeDescription
statusobject (AzotteStatus)Operation status envelope.

Sample Response

{ "status": { "messageCode": "SUCCESS" } }

Behaviour

  • Reactivation is only possible while the subscription is still on its current period (endDate not yet passed). After expiry, the customer must purchase a new subscription via Checkout.
  • For store-channel subscriptions, reactivation generally requires user action inside the store; the C2A call is a no-op or returns a provider-specific status.

Sample Codes

curl --location 'https://acme.sandbox.azotte.com/api/v1/c2a/subscription/reactivate' \
--header 'Content-Type: application/json' \
--header 'x-tn: e2a1c7b2-4f3a-4b8e-9c2d-1a2b3c4d5e6f' \
--header 'x-api-key: sk_dev_acme_sample_123456789' \
--data '{ "orderIdentifier": "or_01J3X..." }'