Create Bank Transaction for Payable
Creates one or more bank transactions to pay a payable. This endpoint handles the creation of bank transfers from your company's bank account to a recipient's account, linking them to a specific payable.
Important Notes
- The payable id is passed as a URL parameter in /v1/erp/payouts/payables/{id}/create_transactions
- Multiple transactions may be created if the amount exceeds bank limits
- Transactions are automatically linked to the payable for tracking
Prerequisites
- Bank Account (sender_id): Your company must have a bank account configured
- Bank Recipient (recipient_id): The recipient must be registered and approved
- Bank Key: User must have authorization to operate the bank account
- Payable: The payable must exist and not be overpaid
Authorization Flow
After creating transactions, they typically follow this status flow (may vary depending on bank):
- draft → enqueued → preauthorized → approved
approved is the terminal success state — there is no authorized or completed status. (authorize is the name of the transition that lands a transfer in approved.) A rejected transfer ends in dequeued or declined; a leg paid inside a payroll ends in payroll_authorized. Poll on status, not on transition.
Example Workflow
1. GET /v1/banking/bank_accounts to find your sender account
2. GET /v1/banking/bank_recipients to find or create recipient
3. POST /v1/erp/payouts/payables/{id}/create_transactions to create payment
4. Use banking authorization endpoints in /v1/banking/bank_accounts to approve the transaction
Request
- Base URLhttps://api.cardda.com
- URLhttps://api.cardda.com/v1/erp/payouts/payables/{id}/create_transactions
- AuthHTTP bearer
Path parameters
The UUID of the payable to pay
Parameters
Request body
Example request
{
"sender_id": "456e7890-a12b-34c5-d678-901234567890",
"recipient_id": "789a1234-b56c-78d9-e012-345678901234",
"description": "Pago factura 0122 Proveedor ABC",
"amount": 180000,
"bank_payroll_id": "234b5678-c90d-12e3-f456-789012345678"
}Response
Successfully created transaction(s). Returns an array of created bank transactions. Multiple transactions may be returned if the amount exceeds bank limits.
Changes
No recorded changes to this operation across all 1 revision of this API.