post https://cardda.herokuapp.com/v1/erp/payouts/payables//create_transactions
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
→authorized
→completed
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