v1
latestOpenAPI 3.1.02026-07-228956435.8 KBCheckout sessions
Create a checkout session
Creates a checkout session in the live or test mode of the API key used. The flow determines what the session does: payment collects a one-time payment, subscription starts a recurring subscription, and setup saves a payment method for future payments. Required fields depend on the flow. After creating the session, redirect your customer to the session's redirect_url or initialize the Fintoc widget with the session's session_token.
post/checkout_sessions
Request body
Example request
{
"amount": 350000,
"business_profile": {
"category": "541100",
"name": "Test Business",
"tax_id": "11.111.111-1"
},
"cancel_url": "https://merchant.com/cancel",
"currency": "CLP",
"customer": "cus_xK9mPq2RkV3WnDQG",
"customer_data": {
"address": {
"city": "Santiago",
"country": "CL",
"line1": "Av. Providencia 123",
"line2": "Depto 45",
"postal_code": "7500000",
"state": "RM"
},
"email": "customer@example.com",
"name": "Felipe Castro",
"phone": "+56911111111",
"tax_id": {
"type": "cl_rut",
"value": "11111111-1"
}
},
"customer_email": "customer@example.com",
"expires_at": "2026-01-14T18:48:25Z",
"flow": "payment",
"line_items": [
{
"price_data": {
"currency": "CLP",
"product": "prod_xK9mPq2RkV3WnDQG",
"product_data": {
"description": "Monthly gym membership.",
"image_url": "https://merchant.com/images/membership.png",
"name": "Gym membership"
},
"recurring": {
"interval": "month",
"interval_count": 1
},
"unit_amount": 350000
},
"quantity": 1
}
],
"payment_method": "pm_xL9mPq2RkV3WnDQG",
"subscription": "sub_xL9mPq2RkV3WnDQG",
"payment_method_options": {
"bank_transfer": {
"reference_number": "1837127",
"sender_account": {
"institution_id": {
"value": "cl_banco_de_chile"
}
}
},
"pac": {
"sender_account": {
"types": [
"checking_account"
],
"holder_id": {
"value": "11.111.111-1"
},
"institution_id": {
"value": "cl_banco_de_chile"
}
}
},
"card": {
"types": [
"bank"
],
"kinds": [
"debit"
]
}
},
"payment_method_types": [
"bank_transfer"
],
"save_payment_method": "enabled",
"success_url": "https://merchant.com/success",
"ui_mode": "embedded"
}Response
The created checkout session.
Example response
{
"id": "cs_li5531onlFDi235",
"amount": 350000,
"business_profile": {
"category": "541100",
"name": "Test Business",
"tax_id": "111111111"
},
"cancel_url": "https://merchant.com/cancel",
"created_at": "2026-01-13T18:48:25Z",
"currency": "CLP",
"customer": {
"id": "cus_xK9mPq2RkV3WnDQG",
"address": {
"city": "Santiago",
"country": "cl",
"line1": "Av. Providencia 123",
"line2": "Depto 45",
"postal_code": "7500000",
"state": "RM"
},
"created_at": "2026-01-10T12:30:00Z",
"email": "customer@example.com",
"mode": "live",
"name": "Felipe Castro",
"phone": "+56912345678",
"tax_id": {
"type": "cl_rut",
"value": "111111111"
}
},
"customer_email": "customer@example.com",
"expires_at": "2026-01-14T18:48:25Z",
"flow": "payment",
"line_items": [
{
"price": {
"currency": "CLP",
"product": {
"description": "Monthly gym membership.",
"image_url": "https://merchant.com/images/membership.png",
"name": "Gym membership"
},
"recurring": {
"interval": "month",
"interval_count": 1
},
"unit_amount": 350000
},
"quantity": 1
}
],
"mode": "live",
"payment_method": "pm_xL9mPq2RkV3WnDQG",
"payment_method_types": [
"bank_transfer"
],
"payment_resource": {
"payment_intent": {
"id": "pi_BO381oEATXonG6bj",
"amount": 100000,
"created_at": "2026-01-13T18:48:25Z",
"currency": "CLP",
"customer": {
"mode": "live"
},
"customer_email": "customer@example.com",
"error_reason": "insufficient_funds",
"metadata": {
"order_id": "9182"
},
"mode": "live",
"payment_method": "pm_1x7vKQ8oEATXonG6",
"payment_type": "bank_transfer",
"payment_type_options": {},
"reference_id": "90123712",
"status": "succeeded",
"subscription": "sub_dJOd4hcZby9XK1Lm",
"transaction_date": "2026-01-13T18:50:25Z",
"widget_token": "pi_BO381oEATXonG6bj_sec_aBcDeFgHiJkLmNoP"
}
},
"redirect_url": "https://pay.fintoc.com/cs_li5531onlFDi235",
"save_payment_method": "enabled",
"session_token": "eyJhbGciOiJIUzI1NiJ9.eyJpZCI6ImNzX2xpNTUzMSJ9.iV2qAVrqYLuqxF4",
"setup_intent": "seti_xL9mPq2RkV3WnDQG",
"status": "created",
"subscription": "sub_xL9mPq2RkV3WnDQG",
"success_url": "https://merchant.com/success"
}