post https://checkout-api.reepay.com/v1/session/subscription
Errors
The operation can generate the following errors beside the generic HTTP error codes described here.
Error code | HTTP code | Description |
---|---|---|
601 | 400 | Could not find any available payments methods. Payment options must be configured in the administration to create a session |
603 | 404 | Configuration not found |
604 | 400 | Card-on-file not allowed for session storing credentials |
79 | 400 | Invoice already settled |
105 | 400 | Invoice already authorized |
29 | 400 | Invoice already cancelled |
71 | 400 | The customer is deleted |
11 | 400 | Duplicate customer handle provided |
18 | 400 | Customer could not be determined from either reference, create customer object or payment method source |
99 | 400 | Customer object given does not match handle of existing customer or handle given does not match existing customer reference |
24 | 400 | No amount or order lines was provided |
100 | 400 | Amount change is not allowed when charging an existing invoice |
80 | 400 | Existing charge has processing transactions |
72 | 400 | Currency change not allowed on existing invoice or charge |
9 | 404 | The customer is not found |
10 | 404 | Subscription plan provided not found |
11 | 400 | Duplicate handle - subscription handle, additional cost handle or subscription add-on handle already used |
14 | 400 | End date must be in the future |
19 | 404 | Customer card provided as source but cannot be found |
34 | 400 | Invalid card token provided as source |
37 | 400 | Start date if provided cannot be more than one period in the past, e.g. one month. |
75 | 400 | Subscription not eligible for invoice. This error is returned if the conditional_create parameter is set to true, but the subscription does not have a plan resulting in an invoice right away. This is the case for subscription plans with fixed day billing. E.g. on the first of every month. |
83 | 404 | Discount not found |
85 | 400 | Multiple discounts not allowed |
86 | 404 | Coupon not found or not eligible |
87 | 400 | Coupon already used |
133 | 404 | Add-on not found |
114 | 400 | Add-on already added or multiple occurences of same add-on in request without explicit unique subscription add-on handle |
115 | 400 | Add-on quantity not allowed for on-off add-on type |
116 | 400 | Add-on not eligible for subscription plan |