Body
Required
-
Amount
Default value is
0
. -
Created at
-
Exchange rate
Default value is
1
. -
External
-
Id
-
Paid at
Default value is
{}
(empty). -
Payment method
-
Purchase invoice
-
Purchase item
-
Reference
-
Status
Values are
active
orcancelled
. Default value isactive
. -
Transfer
-
Type
Values are
payment
,overpayment
,correction
,refund
, orrefundCommission
. Default value ispayment
. -
Updated at
-
Xero
PUT
/purchase-invoice-payments/{id}.json
curl \
--request PUT 'http://api.example.com/v1/purchase-invoice-payments/{id}.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"amount":0,"createdAt":"2025-05-04T09:42:00Z","exchangeRate":1,"externalId":"string","id":42,"paidAt":{},"paymentMethodId":42,"purchaseInvoiceId":42,"purchaseItemId":42,"reference":"string","status":"active","totals":{},"transferId":"string","type":"payment","updatedAt":"2025-05-04T09:42:00Z","xeroId":"string"}'
Request examples
{
"amount": 0,
"createdAt": "2025-05-04T09:42:00Z",
"exchangeRate": 1,
"externalId": "string",
"id": 42,
"paidAt": {},
"paymentMethodId": 42,
"purchaseInvoiceId": 42,
"purchaseItemId": 42,
"reference": "string",
"status": "active",
"totals": {},
"transferId": "string",
"type": "payment",
"updatedAt": "2025-05-04T09:42:00Z",
"xeroId": "string"
}