Body
Required
-
amount
number Required Amount
Default value is
0
. -
exchangeRate
number(float) Required Exchange rate
Default value is
1
. -
externalId
string | null External
-
paidAt
string(date-time) Required Paid at
Default value is
{}
(empty). -
reference
string | null Reference
-
saleReturnId
integer(int32) Required Sale return
-
xeroId
string | null Xero
POST
/sale-return-payments.json
curl \
--request POST 'http://api.example.com/v1/sale-return-payments.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"amount":0,"exchangeRate":1,"externalId":"string","paidAt":{},"reference":"string","saleReturnId":42,"xeroId":"string"}'
Request examples
{
"amount": 0,
"exchangeRate": 1,
"externalId": "string",
"paidAt": {},
"reference": "string",
"saleReturnId": 42,
"xeroId": "string"
}
Response examples (200)
{
"amount": 0,
"createdAt": "2025-05-04T09:42:00Z",
"exchangeRate": 1,
"externalId": "string",
"id": 42,
"paidAt": {},
"reference": "string",
"saleReturnId": 42,
"updatedAt": "2025-05-04T09:42:00Z",
"xeroId": "string"
}