post https://api.reepay.com/v1/subscription//cancel
An active subscription can be cancelled. When the subscription will expire is determined by possible notice and fixation period defined for the plan, or optional overriding notice period defined in the cancel request. By default the subscription will expire at the end of the current billing period. Cancelling a subscription in trial will always result in an expire at the end of the trial period.
Errors
The operation can generate the following errors beside the generic HTTP error codes described here.
Error code | HTTP code | Description |
---|---|---|
12 | 404 | Subscription not found |
13 | 400 | Subscription expired, must be active |
95 | 400 | Subscription on-hold, must be active |
22 | 400 | Subscription already cancelled |
93 | 400 | Cannot expire in current period. A custom expires at has been provided that is in the current period. |