List returns
Any signed in user. Lists the branch returns, newest first, with author and credit note. Pass sale_id to narrow the list to the returns raised against a single sale.
GET
/api/v1/returnsAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
sale_idstringRestrict to the returns raised against one sale.
pageintegerOne based page number. Defaults to 1.
page_sizeintegerRows per page, capped at 200. Defaults to 20.
Responses
200
A page of returns
totalintegerrequiredmin -9007199254740991 · max 9007199254740991
pageintegerrequiredmin -9007199254740991 · max 9007199254740991
page_sizeintegerrequiredmin -9007199254740991 · max 9007199254740991
itemsobject[]requiredShow propertiesHide properties
Array of
objectidstringrequiredsale_idstringrequiredbranch_idstringrequiredprocessed_bystringrequiredclient_mutation_idstringrequireddevice_idstring | nullrequiredsync_statusstringrequiredreasonstringrequiredtotal_refundstringrequiredcreated_atstringrequiredprocessed_by_namestring | nullrequiredoriginal_invoicestring | nullrequiredcredit_note_numberstring | nullrequired401
Not authenticated
detailstringrequired