Factuarea APIDevelopers

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.

GET
/companies/{company}/returns/returnable-lines

Authorization

AuthorizationBearer <token>

Your API key as a bearer token: fact_live_… in production, fact_test_… in sandbox. See the authentication guide.

In: header

Path Parameters

company*string

Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).

Formatuuid

Query Parameters

origin_type*string

Kind of document the goods went out on: delivery_note, invoice or sales_order. Required.

Value in"delivery_note" | "invoice" | "sales_order"
origin_id*string

Public ID of the origin document of that kind. Required; a document of another company answers like one that does not exist.

Formatuuid
exclude_return_id?|

Optional. Public ID of the return being edited, left out of the returned quantities; a return of another company returns 422.

Formatuuid

Headers

Factuarea-Version?string

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.

Formatdate

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json