Properties
Name | Type | Required | Description |
---|---|---|---|
customer | str |
✅ | ID of the customer who pays for this subscription. String starting with cus_. |
subscription_items | List[V1paymentssubscriptionsSubscriptionItems] |
✅ | Array of subscription items. Each item contains a plan (required) and a quantity |
billing | str |
❌ | Determines the method of billing. Set to pay_automatically. |
billing_cycle_anchor | float |
❌ | Determines 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_end | bool |
❌ | Terminates the subscription at the end of the current billing period. |
coupon | str |
❌ | The 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_due | float |
❌ | Number of days from the invoice date for customer to complete the payment. |
metadata | dict |
❌ | A JSON object defined by the client. |
payment_fields | Payment |
❌ | Collects money from a payment method and deposits it into one or more Rapyd Wallets |
payment_method | PaymentsSubscriptionsBodyPaymentMethod |
❌ | Payment Method object or ID. |
simultaneous_invoice | bool |
❌ | Determines 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_percent | float |
❌ | The percentage of tax that is applied to the entire amount of the invoice. |
trial_end | float |
❌ | The time of the end of the customer's free trial period. If trial_from_plan is set, leave this parameter unset. |
trial_from_plan | bool |
❌ | Determines 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_days | float |
❌ | The number of days in the customer's free trial period. |
Payment Method object or ID.