Skip to main content

PaymentsSubscriptionsBody

Properties

NameTypeRequiredDescription
customerstrID of the customer who pays for this subscription. String starting with cus_.
subscription_itemsList[V1paymentssubscriptionsSubscriptionItems]Array of subscription items. Each item contains a plan (required) and a quantity
billingstrDetermines the method of billing. Set to pay_automatically.
billing_cycle_anchorfloatDetermines the start of the next billing cycle, as defined in the plan described in the 'items'. Value must be timestamp in Unix time.
cancel_at_period_endboolTerminates the subscription at the end of the current billing period.
couponstrThe ID of a discount coupon that applies to all subscription items associated with this subscription. If the coupon defines a fixed monetary discount, it must use the same currency as the subscription's plan.
days_until_duefloatNumber of days from the invoice date for customer to complete the payment.
metadatadictA JSON object defined by the client.
payment_fieldsPaymentCollects money from a payment method and deposits it into one or more Rapyd Wallets
payment_methodPaymentsSubscriptionsBodyPaymentMethodPayment Method object or ID.
simultaneous_invoiceboolDetermines whether each upcoming subscription invoice is issued immediately. When true, the invoice is issued when the subscription is created. When false (the default), the invoice is issued an hour after the subscription is created.
tax_percentfloatThe percentage of tax that is applied to the entire amount of the invoice.
trial_endfloatThe time of the end of the customer's free trial period. If trial_from_plan is set, leave this parameter unset.
trial_from_planboolDetermines whether a free trial period can be defined in a 'plan' object attached to the subscription. If trial_end is set, leave this parameter unset.
trial_period_daysfloatThe number of days in the customer's free trial period.

PaymentsSubscriptionsBodyPaymentMethod

Payment Method object or ID.

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →