Factuarea APIDevelopers

List all stock reservations

List your stock reservations with cursor-based pagination.

  • Filter by status, by holder type and holder id, by article, variant or warehouse, by origin and by expiry, and sort by the moment they were held or by the moment they expire.
  • Each reservation comes back with its holder, the article, the variant and the warehouse it holds, the quantity, its status, its expiry and the moments at which it was held, released or consumed.
GET
/companies/{company}/stock-reservations

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

holder_id?string

Public ID of the holder, exactly as sent when the goods were reserved. It is not validated against any table. Exact match on holder_id.

Formatuuid
product_id?string

Public ID of the product the goods are held against. A product that does not belong to the company in the path is rejected exactly like one that does not exist. Exact match on product_id.

Formatuuid
variant_id?string

Public ID of the variant the goods are held against, with the same rules as the product. Exact match on variant_id.

Formatuuid
warehouse_id?string

Public ID of the warehouse the goods are held at, with the same rules as the product. An archived warehouse is accepted here: what it holds is still on hold. Exact match on warehouse_id.

Formatuuid
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

Reservation status: held, released or consumed. The last two are terminal. Exact match on status.

Value in"held" | "released" | "consumed"
status[in]?string

Reservation status: held, released or consumed. The last two are terminal. Comma-separated list. Any of the values matches.

holder_type?string

Kind of holder keeping the goods on hold (lowercase letters, digits and underscores, up to 40 characters). Not a closed catalog. Exact match on holder_type.

holder_type[in]?string

Kind of holder keeping the goods on hold (lowercase letters, digits and underscores, up to 40 characters). Not a closed catalog. Comma-separated list. Any of the values matches.

origin?string

Where the hold was created from (up to 40 characters); public_api for holds created through this API. Exact match on origin.

origin[in]?string

Where the hold was created from (up to 40 characters); public_api for holds created through this API. Comma-separated list. Any of the values matches.

expires_at?string

Moment the hold expires (ISO 8601). A hold with no duration never expires and never matches. Exact match on expires_at.

Formatdate-time
expires_at[gte]?string

Moment the hold expires (ISO 8601). A hold with no duration never expires and never matches. Greater than or equal to the given value.

Formatdate-time
expires_at[lte]?string

Moment the hold expires (ISO 8601). A hold with no duration never expires and never matches. Less than or equal to the given value.

Formatdate-time
expires_at[gt]?string

Moment the hold expires (ISO 8601). A hold with no duration never expires and never matches. Strictly greater than the given value.

Formatdate-time
expires_at[lt]?string

Moment the hold expires (ISO 8601). A hold with no duration never expires and never matches. Strictly less than the given value.

Formatdate-time
sort?string

Sort order: held_at, expires_at ascending, or with a - prefix for descending (results follow the default cursor order (held_at descending, the most recently held first)).

Value in"held_at" | "-held_at" | "expires_at" | "-expires_at"

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