Skip to main content
A return vendor authorization records stock you send back to a supplier against lines of a purchase order. These endpoints create, list, read, update and delete returns and remove their notes and files. This area has 7 endpoints, each available in all seven SDKs.
Only a draft return vendor authorization can be deleted. Any other status returns 400 stock_committed, and a delete cannot be undone.

At a glance

Before you call

Register your API credentials once when your app starts, as shown in Authentication. Every SDK sample on these pages then gets its client in one line. With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.

Things to know

  • Every write body is wrapped in return_vendor_authorization.
  • The create names a purchase order and its lines. Each line takes purchase_order_line and rva_qty; create_as_draft: true saves a draft.
  • The reads and the update accept the rva_ id or the code. The delete takes the rva_ id only; a code returns 404.
  • Listings page by cursor. Records are under data; pass pagination.next_cursor as cursor while pagination.has_more is true.