zgo/pay_xero_invoice.txt

41 lines
731 B
Text
Raw Normal View History

{
"Invoice": { "InvoiceID": "96df0dff-43ec-4899-a7d9-e9d63ef12b19" },
"Account": { "Code": "001" },
"Date": "2022-08-25",
"Amount": 32.06
}
{
"Invoice": { "InvoiceNumber": "INV-0041" },
"Account": { "Code": "001" },
"Date": "2022-08-25",
"Amount": 32.06
}
POST -> https://api.xero.com/api.xro/2.0/Payments
Authorization Bearer ey****
Xero-Tenant-Id 5ae23193-e4b4-4001-99e9-b98634d6040e
Accept application/json
Content-Type application/json
Payload
{
"Payments": [
{
"Invoice": {
"LineItems": [],
"InvoiceID": "00000000-0000-0000-0000-000000000000"
},
"Account": {
"Code": "970"
},
"Date": "2019-03-12",
"Amount": 1
}
]
}