Deactivate subscription plan
POST
/v1/subscriptions/plans/{id}/deactivateDeactivates one particular subscription plan for clients. This does not deactivate the subscription plan on the customer's account, but it deactivates the ability for the customer to purchase the subscription plan. The merchant cannot deactivate the plan on behalf of the customer.
Plan has to be added and saved beforehand. Within a single subscription plan, one product can be included (one plan, one product). There can be multiple plans for the same product. The plans can differ by some parameters such as trial period, fee charge day, activation fee, amount, currency, interval count or interval unit etc. It is unable to deactivate more than one subscription plan at a time.
If the Merchant deactivates the subscription plan that customers are actively using, the customers' subscriptions will automatically expire at the end of the billing period.
Request
An unique identifier
A unique identifier generated by requesting client
Request samples
Responses
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"merchantId": "string",
"shopId": "string",
"terminalId": "string",
"status": true,
"trialPeriodDays": 0,
"chargeDay": 1,
"setupFee": "string",
"amount": "string",
"currency": "str",
"intervalUnit": "day",
"intervalCount": 1,
"totalCount": 0,
"chargeRetry": true,
"productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
"createdAt": "2019-08-24",
"updatedAt": "2019-08-24",
"deletedAt": "string"
}