v1
latestOpenAPI 3.1.02026-07-228956435.8 KBCreate a subscription
Creates a subscription that bills a customer on a recurring cadence, in the live or test mode of the API key used. Each item defines its price through price_data, referencing an existing product (product) or defining one inline (product_data). All items must share a compatible currency (CLF items bill alongside CLP) and the same recurring interval and interval_count. A subscription can have up to 10 items. Fintoc charges each subscription automatically using payment_method, so the collection_method is always charge_automatically. The payment_method must be active and have a type of pac or card; subscriptions do not support bank_transfer. Without trial_end, Fintoc sets the billing_cycle_anchor to the creation time and finalizes an initial invoice immediately. The subscription starts incomplete and becomes active once that first payment succeeds. For a zero-amount subscription, Fintoc marks the initial invoice paid and the subscription starts active. With trial_end, the subscription's status is trialing. Fintoc sets the billing_cycle_anchor to the trial end and generates the first invoice when the trial ends.
Request body
Example request
{
"customer": "cus_2c4mDe9NJyGmMzvCqLkXqAtjnRu",
"payment_method": "pm_2c4mDhAbCdEfGhIjKlMnOpQrStu",
"items": [
{
"price_data": {
"currency": "CLP",
"recurring": {
"interval": "month",
"interval_count": 1
},
"unit_amount": 10000,
"product": "prod_2c4mDgwQqkNwMHnXSc4DBjkbcWz",
"product_data": {
"name": "Premium plan",
"description": "Access to every premium feature.",
"image_url": "https://example.com/image.png",
"metadata": {
"category": "saas"
}
}
},
"quantity": 1
}
],
"metadata": {
"internal_id": "12345"
},
"trial_end": "2030-07-08T00:00:00Z"
}Response
Subscription created. Fintoc generates and finalizes the initial invoice for the first billing period immediately.
Example response
{
"id": "sub_2c4mDcMaVxDx7nT3o5GbPMQbS2v",
"billing_cycle_anchor": "2026-06-01T15:00:00Z",
"collection_method": "send_invoice",
"created_at": "2026-06-01T15:00:00Z",
"customer": "cus_2c4mDe9NJyGmMzvCqLkXqAtjnRu",
"items": [
{
"id": "si_2c4mDfkPLLrLTCJ3wPCEHGYpkVf",
"price": {
"currency": "CLP",
"product": {
"id": "prod_2c4mDgwQqkNwMHnXSc4DBjkbcWz",
"created_at": "2026-06-01T15:00:00Z",
"description": "Access to every premium feature.",
"image_url": "https://example.com/image.png",
"metadata": {
"category": "saas"
},
"mode": "live",
"name": "Premium plan"
},
"recurring": {
"interval": "month",
"interval_count": 1
},
"unit_amount": 10000
},
"quantity": 1
}
],
"metadata": {
"order_id": "12345"
},
"mode": "live",
"status": "active"
}