Create batch payments
documentedCreate batch payments.
POST /BatchPaymentsBatch Paymentsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.xero.com/api.xro/2.0/BatchPayments" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "xero-tenant-id: {{$tenant_id}}" \
-H "Idempotency-Key: {{$idempotency_key}}" \
-d '{
"batchPayments": [
{
"account": { "accountID": "{{$payment_account_id}}" },
"reference": "{{$reference}}",
"date": "{{$date}}",
"payments": [
{
"account": { "accountID": "{{$bank_account_id}}" },
"date": "{{$date}}",
"amount": {{$amount}},
"invoice": { "invoiceID": "{{$invoice_id}}" }
}
]
}
]
}'