Factuarea APIDevelopers

Retrieve the stock availability of an article

Retrieve the availability of one article by its id: physical, committed (reserved plus in delivery notes of a sales order not delivered yet), available, the breakdown per warehouse with incoming purchases and transfers in transit, and when it was calculated. - Narrow it to one variant and one warehouse; for_sales_order adds what belongs to that order. - Incoming and in-transit goods are informative: they never change the available figure. - A foreign sales order is 422 invalid_param_value on for_sales_order; a foreign article answers like a missing one.

GET
/companies/{company}/stock-availability/{product}

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

Public identifier (UUID v7) of the product.

Formatuuid

Query Parameters

variant_id?|

Public ID of the variant asked about. Omit it to answer for the whole article, adding up its variants.

Formatuuid
warehouse_id?|

Public ID of the warehouse to narrow the figures to. Omit it for the total across every warehouse plus the breakdown.

Formatuuid
for_sales_order?string

Public ID of one of your sales orders: adds the part of the article's commitment that is that order's (reserved_own_*, in_delivery_notes_own_*). Another company's order is rejected with 422.

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