v1
latestOpenAPI 3.0.22026-08-061303782.1 MBFetch a Subscription
Retrieve the details of a previously created Subscription.
Headers
Specify the API version of your request. For more details, see Versioning.
Response
A single Subscription
The ID of the resource.
Timestamp of when the object was created.
Timestamp of when the object was last updated.
The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).
The ID of the Application associated with the Subscription.
The day of the month on which the Subscription is billed. Only applies to subscriptions with a monthly billing cycle (e.g., MONTHLY, BIMONTHLY, QUARTERLY, SEMIYEARLY, YEARLY, BIYEARLY, TRIYEARLY).
If the specified day doesn't exist in a given month (e.g., April 31), the subscription is billed on the last valid day of that month.
Accepted values are 1 to 31.
How often the buyer is billed. The possible billing intervals are as follows:
- BIMONTHLY: every 2 months
- BIWEEKLY: every 2 weeks
- BIYEARLY: every 2 years
- DAILY: every day
- MONTHLY: every month
- QUARTERLY: each quarter
- SEMIYEARLY: twice a year
- TRIYEARLY: every 3 years
- WEEKLY: every week
- YEARLY: every year
If the subscription was canceled, this field shows how the cancellation was initiated.
Possible values:
- MERCHANT - The customer (merchant) canceled the subscription themselves. The linked_to field indicates the related Merchant.
- AUTOMATED_OVERDUE - The subscription was canceled by the overdue system.
- SUPPORT - The subscription was canceled by Finix Support.
ISO 4217 3-letter currency code.
The date-time that the Subscription expires if total_billing_intervals is set for the Subscription.
Timestamp when the first Transfer will occur.
The ID of the Merchant resource that you wish to link to the Subscription (i.e., the merchant that the subscription belongs to).
At this time, only approved merchants with one of the following processors are valid:
- DUMMY_V1
- FINIX_V1
The type of the resource that is specified in the linked_to field.
A human-readable name for the resource.
Indicates that the subscription is scheduled to begin in the future. The timestamp specifies the exact start date for subscription billing.
The state of the Subscription.
- The NOT_STARTED state occurs when the subscription has not yet started, typically indicated by a start_subscription_at timestamp set during creation.
- A subscription in the PAST_DUE state is unpaid but has not yet been canceled.
The ID of the Subscription Link that created the Subscription.
Indicates the period within a subscription where specific rules apply.
- EVERGREEN - The buyer is billed continuously for the subscription until the subscription is canceled.
- DISCOUNT - The buyer receives a discounted price for a limited billing interval, after which the customer is charged the full subscription amount.
- FIXED state - Applicable to fixed-length subscriptions.
- NONE - Indicates that when the start_subscription_at timestamp is set during subscription creation, the subscription is not yet in any phase, and billing has not started.
- TRIAL - The period during which the buyer is not billed; after this phase, the buyer will begin being billed.
The ID of a Subscription Plan from which this Subscription was created. When provided, the plan's amount, billing_interval, and other defaults are inherited.
Include up to 50 key: value pairs to annotate requests with custom metadata.
- Maximum character length for individual keys is 40.
- Maximum character length for individual values is 500. (For example, order_number: 25, item_type: produce, department: sales)
The total number of billing intervals for the Subscription. This represents the total count of recurring billing cycles, such as months or weeks, depending on the billing frequency.
Example response
{
"amount": 5000,
"billing_cycle_day": 1,
"billing_interval": "MONTHLY",
"subscription_plan_id": "subscription_plan_ctBbJ1ihsC8Hpju4RQfZE"
}