Skip to main content

List Returnable Lines For Purchase Order

GET 

/api/vendor-returns/returnable-lines/:purchaseOrder

For each line of a purchase order, report how much was received, how much has already been returned (across all non-void vendor returns, plus historical restock credits), and how much remains returnable. Use this before creating a vendor return to know which lines and quantities are still available to return.

Authentication: Requires Bearer token.

Response fields per line:

  • purchase_order_line_id (integer)
  • product_id (integer, nullable)
  • sku (string, nullable)
  • name (string): product name, or the line description when there is no product
  • received_quantity (number)
  • already_returned_quantity (number)
  • returnable_quantity (number): received minus already returned, never below 0

Request

Responses

OK

Response Headers
    Content-Type