Factuarea APIDevelopers

List all purchase orders

List your purchase orders with cursor-based pagination.

  • Filter by status, supplier_id, warehouse_id, number, supplier_order_reference, order_date and expected_date, search free text over the textual fields of the order, and sort by creation, number or expected date.
  • Each order comes back with its lines and, per line, the quantity ordered, the quantity received in posted goods receipts and the pending quantity derived from them, so a listing already answers what is still to arrive.
GET
/companies/{company}/purchase-orders

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

limit?integer

Number of objects to return, between 1 and 100 (default 25).

Default25
Range1 <= value <= 100
starting_after?string

Cursor for forward pagination: pass the id of the last object on the previous page (the next_cursor of the previous response).

Formatuuid
ending_before?string

Cursor for backward pagination: pass the id of the first object on the current page.

Formatuuid
status?string

Purchase order status: draft, sent, confirmed, partially_received, received, billed or cancelled. Exact match on status.

Value in"draft" | "sent" | "confirmed" | "partially_received" | "received" | "billed" | "cancelled"
status[in]?string

Purchase order status: draft, sent, confirmed, partially_received, received, billed or cancelled. Comma-separated list. Any of the values matches.

supplier_id?string

Business contact ID (UUID v7) of the supplier. A contact of another company yields an empty page, never a rejection. Exact match on supplier_id.

Formatuuid
warehouse_id?string

Warehouse ID (UUID v7). Matches the order header OR any of its lines, like the application list. A warehouse of another company yields an empty page, not a rejection. Exact match on warehouse_id.

Formatuuid
number?string

Purchase order number. It is stamped when the order is created, so a draft already carries one. Exact match on number.

number[in]?string

Purchase order number. It is stamped when the order is created, so a draft already carries one. Comma-separated list. Any of the values matches.

number[contains]?string

Purchase order number. It is stamped when the order is created, so a draft already carries one. Partial case-insensitive match (LIKE %term%) on number.

supplier_order_reference?string

Reference the supplier uses for this order in its own system, unique per company. Exact match only: use search for partial matching. Exact match on supplier_order_reference.

supplier_order_reference[in]?string

Reference the supplier uses for this order in its own system, unique per company. Exact match only: use search for partial matching. Comma-separated list. Any of the values matches.

order_date?string

Order date (YYYY-MM-DD). Exact match on order_date.

Formatdate
order_date[gte]?string

Order date (YYYY-MM-DD). Greater than or equal to the given value.

Formatdate
order_date[lte]?string

Order date (YYYY-MM-DD). Less than or equal to the given value.

Formatdate
order_date[gt]?string

Order date (YYYY-MM-DD). Strictly greater than the given value.

Formatdate
order_date[lt]?string

Order date (YYYY-MM-DD). Strictly less than the given value.

Formatdate
expected_date?string

Expected delivery date (YYYY-MM-DD). An order with no expected date never matches this filter. Exact match on expected_date.

Formatdate
expected_date[gte]?string

Expected delivery date (YYYY-MM-DD). An order with no expected date never matches this filter. Greater than or equal to the given value.

Formatdate
expected_date[lte]?string

Expected delivery date (YYYY-MM-DD). An order with no expected date never matches this filter. Less than or equal to the given value.

Formatdate
expected_date[gt]?string

Expected delivery date (YYYY-MM-DD). An order with no expected date never matches this filter. Strictly greater than the given value.

Formatdate
expected_date[lt]?string

Expected delivery date (YYYY-MM-DD). An order with no expected date never matches this filter. Strictly less than the given value.

Formatdate
pending?string

Pending portfolio: receive (open order with lines to receive) or bill (received goods not matched with an invoice yet, or an invoice in deviation or rejected). Exact match on pending.

Value in"receive" | "bill"
delivery?string

Expected delivery: late (past its expected date beyond the grace days), week (expected between today and today + 7) or none (open order with no expected date). Exact match on delivery.

Value in"late" | "week" | "none"
invoice?string

Live supplier invoices: none (goods received, none linked), pending (one not evaluated), deviation (one deviated or rejected) or matched (matched, none deviated). Exact match on invoice.

Value in"none" | "pending" | "deviation" | "matched"
sort?string

Sort order: created, number, expected_date, order_date, total, supplier_name, status ascending, or with a - prefix for descending (default -created).

Value in"created" | "-created" | "number" | "-number" | "expected_date" | "-expected_date" | "order_date" | "-order_date" | "total" | "-total" | "supplier_name" | "-supplier_name" | "status" | "-status"
search?string

Free-text search. Escaped LIKE %term% (case-insensitive, max 80 chars) across the resource's key text columns, combined with the other filters (AND) and compatible with the cursor.

Lengthlength <= 80

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