List the returnable lines of a document
Ask what is still returnable of a document BEFORE requesting a return; the origin kind and public id travel as query parameters. - Each line gives the origin line reference, article, SKU, unit, delivered, returned on this document and on others of the same shipment, and STILL returnable quantities, plus inherited price and tax rate. - Service lines are listed with non_returnable_reason service; pass exclude_return_id to leave the return being edited out. - Rejected returns do not count; an origin not delivered answers 422 return_origin_not_delivered.
Your API key as a bearer token: fact_live_… in production, fact_test_… in sandbox. See the authentication guide.
In: header
Path Parameters
Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).
uuidQuery Parameters
Kind of document the goods went out on: delivery_note, invoice or sales_order. Required.
"delivery_note" | "invoice" | "sales_order"Public ID of the origin document of that kind. Required; a document of another company answers like one that does not exist.
uuidOptional. Public ID of the return being edited, left out of the returned quantities; a return of another company returns 422.
uuidHeaders
Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.
dateResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json