Factuarea APIDevelopers

List all sales orders

List your sales orders with cursor-based pagination, each with its lines and quantities, its fulfilment block, its document_holder and its origin. - Filter by status, channel, business_contact_id, series_id, warehouse_id, number, external_id, order_date and expected_delivery_date. - Narrow with pending (deliver, invoice or invoiceable) and delivery (late or week); search the number, the buyer name and the external reference. - Sort by creation, number, expected delivery date or buyer_name.

GET
/companies/{company}/sales-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

Sales order status: draft, confirmed, partially_served, served, partially_invoiced, invoiced, closed or cancelled. Exact match on status.

Value in"draft" | "confirmed" | "partially_served" | "served" | "partially_invoiced" | "invoiced" | "closed" | "cancelled"
status[in]?string

Sales order status: draft, confirmed, partially_served, served, partially_invoiced, invoiced, closed or cancelled. Comma-separated list. Any of the values matches.

channel?string

Origin channel, fixed at creation: manual, store, storefront, api, quote, proforma or assistant. Exact match on channel.

Value in"manual" | "store" | "storefront" | "api" | "quote" | "proforma" | "assistant"
channel[in]?string

Origin channel, fixed at creation: manual, store, storefront, api, quote, proforma or assistant. Comma-separated list. Any of the values matches.

business_contact_id?string

Business contact ID (UUID v7) the order is linked to. A contact that does not belong to the company in the path yields an EMPTY page, never a rejection. Exact match on business_contact_id.

Formatuuid
series_id?string

Numbering series ID (UUID v7) the order is confirmed with. A series that does not belong to the company in the path yields an EMPTY page, never a rejection. Exact match on series_id.

Formatuuid
warehouse_id?string

Warehouse ID (UUID v7): matches the warehouse of the order header or of any of its lines. A warehouse of another company yields an empty page, never a rejection.

Formatuuid
number?string

Sales order number. Only a confirmed order carries one, so a draft never matches this filter. Exact match on number.

number[in]?string

Sales order number. Only a confirmed order carries one, so a draft never matches this filter. Comma-separated list. Any of the values matches.

number[contains]?string

Sales order number. Only a confirmed order carries one, so a draft never matches this filter. Partial case-insensitive match (LIKE %term%) on number.

external_id?string

Reference the system that created the order uses to identify it, unique per company. Exact match on external_id.

external_id[in]?string

Reference the system that created the order uses to identify it, unique per company. 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_delivery_date?string

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

Formatdate
expected_delivery_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_delivery_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_delivery_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_delivery_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: deliver (something left to serve), invoice (left to invoice) or invoiceable (can be invoiced now). Without the delivery notes module, deliver returns no order.

Value in"deliver" | "invoice" | "invoiceable"
delivery?string

Expected delivery: late (overdue with something left to serve) or week (due within seven days, today included). Without the delivery notes module it returns no order.

Value in"late" | "week"
sort?string

Sort order: created, number, expected_delivery_date, buyer_name ascending, or with a - prefix for descending (default -created).

Value in"created" | "-created" | "number" | "-number" | "expected_delivery_date" | "-expected_delivery_date" | "buyer_name" | "-buyer_name"
search?string

Free-text search over the order number, the buyer name and the external reference (external_id), case-insensitive, up to 80 characters.

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