Factuarea APIDevelopers

Retrieve the receiving plan of a purchase order

Read what is left to receive of a purchase order in ONE warehouse: per line ordered, received and pending, what open receipts declare (in_progress_quantity, open_receipts), the active locations and a suggested one.

Read only. - warehouse_id is a warehouse id or none; omitted, the server picks one (the default among several) and answers ambiguous_warehouse: true. - receipt_id names the receipt you are counting, so it is not counted as another one. - A foreign order, warehouse or receipt returns its 404, like one that does not exist.

GET
/companies/{company}/purchase-orders/{purchase_order}/receiving-plan

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
purchase_order*string

Public identifier (UUID v7) of the purchase order.

Formatuuid

Query Parameters

warehouse_id?|

Warehouse ID (UUID v7) to receive into, or none for lines without a warehouse. Omitted, the plan picks the default warehouse of the receipt. Another company's warehouse returns 404.

receipt_id?|

Goods receipt ID (UUID v7) you are counting: it is left out of in_progress_quantity and open_receipts. A receipt that is not of this order returns 404.

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