post https://api.reepay.com/v1/subscription/prepare
Instead of creating a subscription directly, it can be done in a two step process:
- Prepare
pending
subscription. Same as create subscription except for not requiring payment method information. - Activate subscription. Payment method step of create subscription.
A prepared subscription will have state pending
and potential invoices will have state created
. A prepared subscription will give all details of the subscription including invoices to be paid right away. This can be presented to the customer in an accept phase. The subscription can subsequently be activated with the activate operation.
A subscription in state pending
can be deleted completely with the delete pending subscription operation.
Errors
For errors see Create Subscription.