Skip to main content
POST

Autorizaciones

Authorization
string
header
requerido

Cuerpo

application/json
customer
string
requerido

ID of the customer to bill.

Ejemplo:

"cus_2c4mDe9NJyGmMzvCqLkXqAtjnRu"

items
object[]
requerido

Items the subscription bills for on every billing cycle. All items must share a compatible currency (CLF bills alongside CLP) and the same recurring cadence. Up to 10 items.

Maximum array length: 10
collection_method
enum<string>

The way Fintoc collects every invoice the subscription generates. One of charge_automatically (Fintoc charges payment_method on every billing cycle) or send_invoice (Fintoc leaves each invoice open for you to collect). Defaults to charge_automatically.

Opciones disponibles:
charge_automatically,
send_invoice
Ejemplo:

"send_invoice"

payment_method
string

Payment method to associate with the subscription. Required when collection_method is charge_automatically; optional with send_invoice. Must belong to the specified customer.

Ejemplo:

"pm_2c4mDhAbCdEfGhIjKlMnOpQrStu"

metadata
object

Set of key-value pairs to attach to the subscription. Nested objects and arrays are not allowed as values.

Ejemplo:
trial_end
string<date-time>

ISO 8601 timestamp in UTC at which the trial ends, at least one day in the future. During the trial the subscription's status is trialing and Fintoc issues no invoice; Fintoc generates the first invoice when the trial ends. Omit for no trial.

Ejemplo:

"2030-07-08T00:00:00Z"

business_profile
object

Business on whose behalf you collect the payment, for payment aggregators. Applied to every automatic charge of the subscription. Required if your organization identifies a business profile per payment.

Respuesta

Subscription created. Fintoc generates and finalizes the initial invoice for the first billing period immediately.

id
string
requerido

Unique identifier of the subscription.

Ejemplo:

"sub_2c4mDcMaVxDx7nT3o5GbPMQbS2v"

object
any
requerido

Type of the object. Always subscription.

billing_cycle_anchor
string<date-time>
requerido

ISO 8601 timestamp that anchors the billing cycle. Fintoc sets this anchor to the subscription's creation time, or to trial_end when a trial applies. Fintoc measures every billing period from this anchor.

Ejemplo:

"2026-06-01T15:00:00Z"

collection_method
enum<string>
requerido

Method Fintoc uses to collect the invoices the subscription generates. One of charge_automatically (Fintoc charges the saved payment method) or send_invoice (Fintoc leaves each invoice open for you to collect).

Opciones disponibles:
charge_automatically,
send_invoice
Ejemplo:

"charge_automatically"

created_at
string<date-time>
requerido

ISO 8601 timestamp of when the subscription was created.

Ejemplo:

"2026-06-01T15:00:00Z"

customer
string
requerido

ID of the customer the subscription bills.

Ejemplo:

"cus_2c4mDe9NJyGmMzvCqLkXqAtjnRu"

items
object[]
requerido

Items the subscription bills for on every billing cycle.

metadata
object
requerido

Set of key-value pairs attached to the subscription.

Ejemplo:
mode
enum<string>
requerido

Mode of the object. One of live or test. test subscriptions use fake data for integration testing and do not collect real money.

Opciones disponibles:
live,
test
Ejemplo:

"live"

payment_method
string | null
requerido

ID of the payment method associated with the subscription, or null if it has none. Fintoc charges it on every billing cycle when collection_method is charge_automatically.

Ejemplo:

"pm_2c4mDhAbCdEfGhIjKlMnOpQrStu"

status
enum<string>
requerido

Current status of the subscription. One of active, incomplete (the first invoice payment has not yet succeeded), trialing (the trial period has not ended), or canceled (the subscription stopped generating invoices).

Opciones disponibles:
active,
canceled,
incomplete,
trialing
Ejemplo:

"active"

trial_end
string<date-time> | null
requerido

ISO 8601 timestamp at which the trial period ends, or null if the subscription has no trial.

Ejemplo:

null