Factuarea APIDevelopers

Retrieve storefront availability

Get the units of an article a shopper can still buy: physical quantity MINUS what is committed by live reservations (expired ones commit nothing) and by delivery notes of a sales order not delivered yet. - Authenticated with the publishable storefront key; the answer has only four fields: article, variant, available total and whether stock is tracked. - No per-warehouse breakdown, cost or supplier is exposed; an untracked article returns an empty total, which is not a selling limit.

GET
/companies/{company}/storefront/availability

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

product_id*string

Public ID of the article asked about. Required. The figure is physical stock minus live reservations and undelivered sales-order delivery notes.

Formatuuid
variant_id?|

Public ID of the variant asked about. Without it the figure is the article's as a whole; an empty value counts as absent.

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