Procedures
Manage your recurring payments using procedure endpoints.
A procedure allows you to complete unique actions that assist in managing subscriptions created through the Recurring API.
Process a subscription payment
While all one-time and recurring charges for subscribers are automated and processed during object creation or on scheduled billing dates, there are situations where a payment may be declined.
The Process a subscription payment procedure will allow you to try a failed payment again and should be actioned after correcting the cause of the original failure, such as changing default banking or updating credit card details for the customer
Locating failed payments
Payments are a sub-object of the subscription that processed the payment. Subscribers with declined payments will contain a hasFailedPayments parameter with a value greater than 0.
- Use the Get subscriptions collection to retrieve all
subscriptionobjects with failed payments - Take the
idand then retrieve the individual object through Get subscription endpoint and includesubObjectsto retrieve the payment number - Process the payment with the
subscriptionIdand thepaymentNumber - Requires a single request for each payment you are attempting to process
The recurring paymentNumber for the subscription payment that has failed can be found by retrieving the associated subscription object through the Get subscription endpoint by using the subscriptionId and passing includeSubObjects=true in the request.
Payment statuses
All payments contain a status parameter that identifies whether that payment has been processed and the outcome of that payment attempt, or whether that payment has been queued to process on a future date.
A payment with a status ofapprovedorwaitingcannot be processed through this procedure endpoint and will decline if attempted
| Description |
|---|---|
| Approved payments are payments that have been processed successfully. |
| Declined payments are payments that have been attempted but failed due to a "soft" decline reason, such as insufficient funds. that have been attempted. Attempt these payments again using the Process a subscription payment procedure endpoint. If declines persist you should connect with your customer to obtain updated payment information. |
| Failed payments are payments that have been attempted but failed due to a "hard" decline reason, such as invalid card data, invalid subscription data, or expired cards. Update the customers billing information before attempting these payments again using the Process a subscription payment procedure endpoint. |
| Waiting payments that are queued for future dates. These payments will have a |
API ReferenceReview the Process a subscription payment API Reference to see the required header and body parameters for requests to this endpoint.
Updated 9 months ago