Crear Transaction externa
Changed onRegistra una Transaction externa sobre ninguno, uno o varios Invoices de una Account.
Una Transaction externa registra un pago que el deudor hizo por fuera de Toku —transferencia, caja, efectivo— para dejar sus Invoices saldados. Se usa para reflejar en Toku esos pagos: el cuerpo indica la Account, el monto, la moneda, la fecha del pago y el detalle de Invoices que cubre. Registrarla sin Invoices deja el pago asociado solo a la Account.
Cada Invoice del detalle puede saldarse por completo o de forma parcial con is_partial_payment. La respuesta devuelve los identificadores de la Transaction creada y de sus Payment Intents.
Límite de tasa: 20 solicitudes por segundo. Al superarlo, la API responde 429. Ver Límites de tasa.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/transactions/external
- AuthAPI key in header x-api-key
Headers
Llave de API de una Account, para operar sobre esa Account en lugar de la principal.
Request body
Example request
{
"amount": 15990,
"currency": "CLP",
"external_id": "pago-caja-4821",
"id_account": "acc_7bQ2mN4pR6sT8vX0yZ2aB4cD6eF8gH0j",
"invoices": [
{
"amount": 15990,
"id_invoice": "in_5dF7hJ9kM1nP3rT5vX7zB9dF1hJ3lN5p"
}
],
"payment_method_detail": "transferencia",
"transaction_date": "2026-07-20T14:35:00"
}Response
La Transaction externa quedó registrada con sus Payment Intents.
Example response
{
"detail": {
"id_payment_intents": [
"pi_7dF2hJ4kL6nP8qR0sT2vX4yZ6aB8cD0e"
],
"id_transaction": "trs_kR3nQ8sT1vX7yZ2aB5cD9eF4gH6jK0mN",
"metadata": {}
},
"success": true
}Changes
- breaking
request body became required
- breaking
added to the
request propertyallOflist - breaking
removed the enum value
BRLof the request property - breaking
removed the enum value
CLFof the request property - breaking
removed the enum value
CLPof the request property - breaking
removed the enum value
MXNof the request property - breaking
removed the enum value
USDof the request property - breaking
the
request property type changed fromstringtonumber - breaking
the
request property type changed fromstringto no type - breaking
the
//request property type changed fromstringtonumber - breaking
the
//request property type changed fromstringtonumber - breaking
the
//request property type changed fromstringtoboolean - breaking
the
response's property type changed fromobjectto no type for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
api operation id
post_transactions-externalremoved and replaced withcreate_external_transaction - info
api tag
Transactionsadded - info
added the new optional
headerrequest parameterx-account-key - info
added the new optional request property
- info
the request property
became optional - info
the
request property default valuefalsewas added - info
the
request property default valuewas removed - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added to the
response propertyallOflist for the response status - info
the response property
became required for the status
- breaking