A Subscription Plan
resource is a template with set recurring costs and frequencies that can be reused across multiple Subscription
resources.
Create a Subscription Plan
resource to group and manage recurring payments for individual Subscription
resources. You can create a Subscription Plan
with or without a trial period.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
amount required | integer <int64> The total amount that will be debited in cents (e.g. 100 cents to debit $1.00). |
currency required | string ISO 4217 3-letter currency code. Currently, the only |
plan_name required | string A human-friendly name for the |
description | string A description of the |
linked_to required | string The ID of the At this time, only approved merchants with one of the following processors are valid:
|
linked_type required | string The type of the resource that is specified in the |
nickname | string A human-readable name for the resource. |
billing_interval required | string How often the customer subscriber is billed. |
required | object Object containing default billing settings. |
object Object containing default trial settings. |
A single Subscription Plan
object.
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
{- "id": "subscription_plan_cdgZcXBNDwWcqC4CwgGRS",
- "created_at": "2024-07-17T05:18:32.52Z",
- "updated_at": "2024-07-17T05:18:32.52Z",
- "linked_to": "MUaC9hbNvRwBoCJzqrjWk69N",
- "linked_type": "MERCHANT",
- "billing_interval": "MONTHLY",
- "nickname": null,
- "plan_name": "API portal - Basic",
- "description": "A basic API portal account with the least features.",
- "amount": 19900,
- "currency": "USD",
- "billing_defaults": {
- "collection_method": "BILL_AUTOMATICALLY",
- "send_invoice": false,
- "send_receipt": false
}, - "trial_defaults": {
- "interval_type": "DAY",
- "interval_count": 30
}, - "state": "ACTIVE",
- "_links": {
}
}
Retrieve a list of Subscription Plans
.
For details on how to query endpoints using the available parameters, see Query Parameters.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
A list of Subscription Plans
objects
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
curl "https://finix.sandbox-payments-api.com/subscription_plans" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "_embedded": {
- "subscription_plans": [
- {
- "id": "subscription_plan_cdhb8V5bHAFvkKJ9xWBb8",
- "created_at": "2024-07-17T07:41:52.69Z",
- "updated_at": "2024-07-17T07:41:52.69Z",
- "amount": 39900,
- "billing_defaults": {
- "collection_method": "BILL_AUTOMATICALLY",
- "send_invoice": false,
- "send_receipt": false
}, - "billing_interval": "MONTHLY",
- "currency": "USD",
- "description": "An API portal account with the most features.",
- "linked_to": "MUaC9hbNvRwBoCJzqrjWk69N",
- "nickname": null,
- "plan_name": "API portal - Advanced",
- "state": "ACTIVE",
- "trial_defaults": null,
- "_links": {
}
}, - {
- "id": "subscription_plan_cdgZcXBNDwWcqC4CwgGRS",
- "created_at": "2024-07-17T05:18:32.52Z",
- "updated_at": "2024-07-17T05:18:32.52Z",
- "amount": 19900,
- "billing_defaults": {
- "collection_method": "BILL_AUTOMATICALLY",
- "send_invoice": false,
- "send_receipt": false
}, - "billing_interval": "MONTHLY",
- "currency": "USD",
- "description": "A basic API portal account with the least amount of features.",
- "linked_to": "MUaC9hbNvRwBoCJzqrjWk69N",
- "nickname": null,
- "plan_name": "API portal - Basic",
- "state": "ACTIVE",
- "trial_defaults": {
- "interval_type": "DAY",
- "interval_count": 30
}, - "_links": {
}
}
]
}, - "_links": {
}, - "page": {
- "limit": 100,
- "next_cursor": "ZTyLnqRtGpWxuTMeOVjPbR7y"
}
}
Retrieve the details of a previously created Subscription Plan
.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
A single Subscription Plan
object.
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
curl "https://finix.sandbox-payments-api.com/subscription_plans/subscription_plan_cdhoqNwaxQ1Rs4yhQWRKA" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "id": "subscription_plan_cdgZcXBNDwWcqC4CwgGRS",
- "created_at": "2024-07-17T05:18:32.52Z",
- "updated_at": "2024-07-17T05:18:32.52Z",
- "linked_to": "MUaC9hbNvRwBoCJzqrjWk69N",
- "linked_type": "MERCHANT",
- "billing_interval": "MONTHLY",
- "nickname": null,
- "plan_name": "API portal - Basic",
- "description": "A basic API portal account with the least features.",
- "amount": 19900,
- "currency": "USD",
- "billing_defaults": {
- "collection_method": "BILL_AUTOMATICALLY",
- "send_invoice": false,
- "send_receipt": false
}, - "trial_defaults": {
- "interval_type": "DAY",
- "interval_count": 30
}, - "state": "ACTIVE",
- "_links": {
}
}
Update an existing Subscription Plan
. You may archive the Subscription Plan
by setting its state
to INACTIVE
.
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
A single Subscription Plan
object.
Authentication information is missing or invalid
Forbidden
Object does not exist
Invalid field
curl "https://finix.sandbox-payments-api.com/subscription_plans/subscription_plan_cdhoqNwaxQ1Rs4yhQWRKA" \ -H "Content-Type: application/json" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X PUT \ -d '{ "amount": 19900, "nickname": "API portal - Basic plan", "description": "A starter plan with minimal features", "trial_defaults": { "interval_type": "DAY", "interval_count": 30 }, "state": "ACTIVE", "update_existing_subscriptions": true }'
{- "id": "subscription_plan_cdgZcXBNDwWcqC4CwgGRS",
- "created_at": "2024-07-17T05:18:32.52Z",
- "updated_at": "2024-07-17T05:18:32.52Z",
- "linked_to": "MUaC9hbNvRwBoCJzqrjWk69N",
- "linked_type": "MERCHANT",
- "billing_interval": "MONTHLY",
- "nickname": null,
- "plan_name": "API portal - Basic",
- "description": "A basic API portal account with the least features.",
- "amount": 19900,
- "currency": "USD",
- "billing_defaults": {
- "collection_method": "BILL_AUTOMATICALLY",
- "send_invoice": false,
- "send_receipt": false
}, - "trial_defaults": {
- "interval_type": "DAY",
- "interval_count": 30
}, - "state": "ACTIVE",
- "_links": {
}
}