Create a draft payment batch
POST/api/v1/workspaces/:workspace_id/companies/:company_id/payment_batches
Assembles a supplier-payment run in draft, with its instructions, through the same domain path as the payment centre. Each instruction gets a Scribee end_to_end_id. The response never carries a full beneficiary IBAN. A draft moves no money and reserves nothing.
Request
Responses
- 201
- 403
- 404
- 422
The draft batch.
The token lacks the write scope or holds no grant for this workspace.
No company with this id belongs to the resolved workspace.
validation_failed: the Idempotency-Key header is missing, instructions is empty, a line is in another currency, a beneficiary IBAN is malformed, or another field is invalid (details names it). invalid_argument: bank_account_id or an invoice_document_id does not name a record of this company - answered the same whether it belongs to someone else or does not exist.