Create subscription
Creates a subscription or scheduled payment to run at a specified time and frequency. You can use stored payment method tokens for card, ACH, and digital wallets by passing them into the paymentMethod.storedMethodId field.
Authentication
Headers
Optional but recommended A unique ID that you can include to prevent duplicating objects or transactions in the case that a request is sent more than once. This key isn’t generated in Payabli, you must generate it yourself. This key persists for 2 minutes. After 2 minutes, you can reuse the key if needed.
Query parameters
When true, the request creates a new customer record, regardless of whether customer identifiers match an existing customer. Defaults to false.
Request
Object describing the customer/payor.
Object describing details of the payment. For Regular subscriptions, skip a payment by setting totalAmount to 0; payments pause until you update it to a non-zero value, and serviceFee must also be 0 when totalAmount is 0. For BalanceDriven subscriptions, any totalAmount you send is accepted but ignored at run time. Each run charges the payor’s live balance, and a zero balance is skipped.
Flag indicating if subscription is paused. When a subscription is paused, no payments are processed until the subscription is unpaused, and the next payment date isn’t calculated automatically. If you want to skip a payment instead, set the totalAmount to 0 in the paymentDetails object.
Subscription type. Defaults to Regular when omitted. Can’t be changed after the subscription is created. If you send it to the update endpoint, it’s ignored.
Response
Response text for operation: ‘Success’ or ‘Declined’.
The Payabli-generated unique ID for the customer.
Boolean indicating whether the operation was successful. A true value
indicates success. A false value indicates failure.