Factuarea APIDevelopers

List reorder suggestions

Read which articles are below their reorder point or minimum and what to buy, ordered by urgency: stock state, trigger, suggested quantity in the PURCHASE unit of the chosen offer (whole for count units), supplier, cost, VAT and expected date. - status is to_order, already_on_order or to_resolve, with not_actionable_code; the envelope counts each group and flags truncated past 500 lines. - include adds stock, incoming, demand (needs sales_orders:read), offers and coverage; an unknown block returns 422 invalid_param_value. - Not paginated; supplier_id narrows it.

GET
/companies/{company}/purchase-reorder-suggestions

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

supplier_id?|

Public ID of the supplier whose preferred offers narrow the report. The report is not paginated: it is returned complete.

Formatuuid
include?|

Optional blocks per line, comma-separated: stock, incoming, demand (needs sales_orders:read), offers, coverage. A block not asked for is null; an unknown one returns 422.

Match^\s*(stock|incoming|demand|offers|coverage)\s*(,\s*(stock|incoming|demand|offers|coverage)\s*)*$

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