POST /purchase-return-payments.json
Body Required
-
Amount
Default value is
0
. -
Exchange rate
Default value is
1
. -
externalId string | null
External
-
Paid at
Default value is
{}
(empty). -
Purchase return
-
reference string | null
Reference
-
xeroId string | null
Xero
POST
/purchase-return-payments.json
curl \
-X POST http://api.example.com/v1/purchase-return-payments.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":0,"exchangeRate":1,"externalId":"string","paidAt":{},"purchaseReturnId":42,"reference":"string","xeroId":"string"}'
Request example
{
"amount": 0,
"exchangeRate": 1,
"externalId": "string",
"paidAt": {},
"purchaseReturnId": 42,
"reference": "string",
"xeroId": "string"
}
Response examples (200)
{
"amount": 0,
"createdAt": "2024-05-04T09:42:00+00:00",
"exchangeRate": 1,
"externalId": "string",
"id": 42,
"paidAt": {},
"purchaseReturnId": 42,
"reference": "string",
"updatedAt": "2024-05-04T09:42:00+00:00",
"xeroId": "string"
}