Create payment
documentedCreate a payment.
POST /PaymentsPaymentsno 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/Payments" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "xero-tenant-id: {{$tenant_id}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"Payments": [{"Invoice": {"InvoiceID": "{{$invoice_id}}"}, "Amount": {{$amount}}, "Date": "{{$payment_date}}", "BankAccountCode": "{{$bank_account_code}}"}]}'"
# This command targets the Xero Accounting API Payments endpoint for creating a payment. The base URL and path (/Payments) come from Xero’s Accounting API documentation, where the Payments resource is exposed at the endpoint path including /Payments. The request also requires the xero-tenant-id header for the organisation/tenant context and an OAuth2 bearer access token. ([xeroapi.github.io](https://xeroapi.github.io/Xero-NetStandard/accounting/index.html?utm_source=openai))