delete https://api.reepay.com/v1/subscription/
A subscription in state pending
can be deleted with the two exceptions below:
- If the subscription has invoices that are not only in state created. E.g. a failed invoice.
- If the subscription has a created invoice with transactions. If the created invoice has transactions an actual payment has been attempted in connection with signup. This means that a transaction has been attempted with payment method. Deleting the subscription would require to delete invoice and transaction removing the trace of the payment attempt, disallowing to subsequently find the transcation registered with acquirer and issuer in Billwerk+Optimize.
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 |
119 | 400 | Subscription not in state pending |
125 | 400 | Subscription has pending payment method |
82 | 400 | Invoice not in state created |
30 | 400 | Invoice has active transactions |