Sign in

Create bank transaction

documented

Create a bank transaction.

POST /BankTransactionsBank Transactionsno implementation yet0 runs
No 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/BankTransactions" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "xero-tenant-id: {{XERO_TENANT_ID}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"BankTransactions": [{"Type": "RECEIVE", "Contact": {"ContactId": "{{$contact_id}}", "Name": "{{$contact_name}}"}, "LineItems": [{"Description": "{{$description}}", "Quantity": {{$quantity}}, "UnitAmount": {{$unit_amount}}, "AccountCode": "{{$account_code}}", "TaxType": "NONE", "TaxAmount": 0}], "BankAccount": {"AccountId": "{{$bank_account_id}}", "Code": "{{$bank_account_code}}"}, "Reference": "{{$reference}}", "Date": "{{$date}}"}]}'" ,
  -e ""}

Create bank transaction · Xero · OpenIntegrations