Subscriptions object
Subscriptions object is used to represent a subscription.
Represents a recurring billing agreement that collects payments from a customer on a defined schedule.
The unique identifier for the subscription.
"sub_kfAWZgfQIoeG0q"
The unique identifier of the customer associated with the subscription.
"cus_AvCu2y217JqBKxQQOgvcz"
The unique identifier of the payment method used for recurring charges.
"cpm_KvXVM4IJVhan36TN6Srrz"
A human-readable description of the subscription.
"Monthly premium plan"
The amount to be charged in the smallest currency unit. For example, 20.00 ZAR is represented as 2000 cents. Learn more about minor units.
1000
The ISO 4217 currency code for the payment.
"ZAR"
The ISO 3166-1 alpha-2 country code of the subscription.
"ZA"
Indicates whether the subscription is in live or test mode:
live: Used in production to process real payments.test: Used for testing and development. Payments are simulated and no real transactions are processed.
live, test Schedules payments every N months.
- Monthly Recurrence
- Daily Recurrence
- Weekly Recurrence
- Yearly Recurrence
The date on which the subscription starts and the first payment is scheduled.
"2024-01-01"
The date on which the subscription ends. If null, the subscription runs indefinitely.
"2024-12-31"
The current status of the subscription:
active: The subscription is active and payments will be collected on the scheduled dates.paused: The subscription is temporarily paused and no payments will be collected.cancelled: The subscription has been cancelled and will not collect any further payments.expired: The subscription has passed its end date without completing all scheduled payments.completed: The subscription has reached its end date and all scheduled payments have been collected.
active, paused, cancelled, expired, completed "cancelled"
The next date on which a payment will be attempted. Null if the subscription has no upcoming payments.
"2024-02-01"
Details about the most recent payment attempt. Null if no payment has been attempted yet.
The timestamp at which the subscription was cancelled. Null if the subscription has not been cancelled.
"2024-06-15T10:30:00Z"
ISO 8601 timestamp when the resource was created
"2025-06-16T10:30:00Z"
ISO 8601 timestamp when the resource was last updated
"2025-06-16T10:30:00Z"
The time of day at which payments are scheduled, in HH:MM format. UTC time is used.
"09:00"
External reference for reconciliation or tracking purposes. Must be unique within your merchant account.
255^[a-zA-Z0-9_-]+$"INV-2024-001"

