v1
latestOpenAPI 3.1.02026-07-228956435.8 KBCharges
Create a charge
Creates a charge on an active subscription. The charge starts with status pending, and Fintoc collects the charge from the subscription's bank account on the next collection cycle. In test mode, Fintoc simulates the collection and updates the charge status asynchronously after creation.
post/charges
Request body
Example request
{
"amount": 5000,
"currency": "CLP",
"subscription_id": "sub_m7N9rAWJS9dWDKEe",
"business_profile": {
"category": "620200",
"name": "Hooli",
"tax_id": "11111111-1"
},
"metadata": {
"order_id": "0001"
},
"recipient_account": {
"holder_id": "111111111",
"institution_id": "cl_banco_de_chile",
"number": "123123123",
"type": "checking_account"
}
}Response
The created charge, with status pending. In test mode, the charge status updates asynchronously after creation to simulate the collection.
Example response
{
"id": "ch_o9YDuRzUez2GqV4x",
"amount": 5000,
"created_at": "2021-05-17T17:04:10.284Z",
"currency": "CLP",
"failure_code": "insufficient_funds",
"metadata": {
"order_id": "9182"
},
"mode": "live",
"recipient_account": {
"holder_id": "111111111",
"institution_id": "cl_banco_estado",
"number": "987654321",
"type": "checking_account"
},
"status": "succeeded",
"subscription_id": "sub_nMNejK7BT8oGbvO4"
}