POST
Deactivates (suspends) an active subscription.
bearerAuthheader
AuthorizationBearer <token>Opaque bearer token obtained from POST /api/token (password grant). Send as Authorization: Bearer <token>.
application/json- body
[key: string]?anySuccess. The business payload is returned in the Data field of the standard envelope.
application/json- response
Standard response envelope returned by every endpoint except the token endpoint.
Data*unknownThe business payload. Shape depends on the operation; occasionally a JSON-encoded string.
Status*stringBusiness outcome. Check this, not just the HTTP code.
Value in
"SUCCESS""ERROR"StatusCode?|Optional numeric status code.
ErrorDetail?||array<any>|Raw error detail when Status is ERROR. Not a stable contract.
ErrorMessage?stringHuman-readable error message when Status is ERROR.
OperationType?|Reserved; usually null.
RequestCorrelationID?stringCorrelation id for the request, useful for support.
curl -X POST 'https://api-demo.saasify.ai/api/subscriptions/deactivate' \ -H 'Content-Type: application/json' \ -d '{ "subscriptionId": "SUB-001"}'Example Response
{ "Data": { "planId": "PLAN-001", "status": "Suspended", "quantity": 10, "customerId": "CUST-001", "cloudProvider": "AWS", "subscriptionId": "SUB-001" }, "Status": "SUCCESS", "StatusCode": 200, "ErrorDetail": null, "ErrorMessage": "", "OperationType": null, "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"}