Create subscription session

Errors

The operation can generate the following errors beside the generic HTTP error codes described here.

Error codeHTTP codeDescription
601400Could not find any available payments methods. Payment options must be configured in the administration to create a session
603404Configuration not found
604400Card-on-file not allowed for session storing credentials
79400Invoice already settled
105400Invoice already authorized
29400Invoice already cancelled
71400The customer is deleted
11400Duplicate customer handle provided
18400Customer could not be determined from either reference, create customer object or payment method source
99400Customer object given does not match handle of existing customer or handle given does not match existing customer reference
24400No amount or order lines was provided
100400Amount change is not allowed when charging an existing invoice
80400Existing charge has processing transactions
72400Currency change not allowed on existing invoice or charge
9404The customer is not found
10404Subscription plan provided not found
11400Duplicate handle - subscription handle, additional cost handle or subscription add-on handle already used
14400End date must be in the future
19404Customer card provided as source but cannot be found
34400Invalid card token provided as source
37400Start date if provided cannot be more than one period in the past, e.g. one month.
75400Subscription 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.
83404Discount not found
85400Multiple discounts not allowed
86404Coupon not found or not eligible
87400Coupon already used
133404Add-on not found
114400Add-on already added or multiple occurences of same add-on in request without explicit unique subscription add-on handle
115400Add-on quantity not allowed for on-off add-on type
116400Add-on not eligible for subscription plan
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!