Openapi
Select the approved supplier bills due by a date into a draft batch paid from one bank account.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidThe bank account, due date and optional bills.
application/jsonaccountId*stringuuiddueBy*isoDatedateexecutionOn?stringdateinvoiceIds?array<>1 <= itemsreference?string1 <= length <= 100Returns the result.
application/jsonaccountId*stringuuidcurrency*stringdueBy*isoDatedateexecutionOn*isoDatedateid*stringuuiditemCount*integeritems*array<>messageId*stringreference*stringstatus*paymentBatchStatusSchema"draft""posted""reconciled""cancelled"total*minorUnitstransactionId*|uuidcurl -X POST 'https://app.localhost/api/v1/organizations/123/payment-batches' \ -H 'Content-Type: application/json' \ -d '{ "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "dueBy": "2019-08-24"}'{ "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "currency": "string", "dueBy": "2019-08-24", "executionOn": "2019-08-24", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "itemCount": 0, "items": [ { "amount": 0, "creditorIban": "string", "creditorName": "string", "discount": 0, "endToEndId": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "remittance": "string", "status": "open" } ], "messageId": "string", "reference": "string", "status": "draft", "total": 0, "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc"}