Subscription Object
id string A unique identifier for the subscription.
object string The value is always subscription.
next_billing_date timestamp The upcoming billing date of the subscription. Available for subscriptions with status active, past due and trialing.
cancellation_date timestamp The date the subscription was cancelled. Available for subscriptions with status cancelled.
resumes_at timestamp The date the payment collection of the subscription will be resumed. Available for subscriptions with status paused.
completion_date timestamp The date the instalment plan was completed. Available for subscriptions with type instalment.
payment_count integer The total number of payments received for the subscription.
status string The current status of the subscription.
gateway_subscription_id string The unique id of the subscription used by the payment provider.
type string The possible values are instalment, subscription and recurring_invoice.
gateway string payment code The payment method of the subscription.
billing_cycle string The possible values are day, week, month and year.
interval integer The billing interval of the subscription.
currency string The currency of the subscription.
price integer The cost of the subscription.
invoice_id string The id of the invoice associated with the subscription. Available for subscriptions with type instalment.
instalments_count integer The total number of payments that have to be collected for this instalment plan. Available for subscriptions with type instalment.
lifetime_revenue integer The total lifetime revenue generated by the subscription.
upcoming_invoice Invoice Object The upcoming invoice of the subscription. Provided if the subscription the subscription is active or trialing.
customer object An object containing a few basic information about the customer.
- id string The customer id.
- name string The name of the customer.
- last_name string The customer's last name.
- email string The customer's email.
- client_id string The id of the associated client (if applicable).
products array of objects An array of objects, each corresponding to a billing plan associated with the subscription.
- id string The id of the product (if applicable).
- name string The name of the product.