Factuarea APIDevelopers

List all warehouses

List your warehouses with cursor-based pagination.

  • Filter by status, type, code, name and whether it is the default one, search free text over code and name, and sort by creation, code or name.
  • Archived warehouses are returned as well: filter by status when you only want the ones in use.
  • Each warehouse comes back with its address broken down and the number of locations it currently has active, counted in the same read, so a listing already answers how each warehouse is laid out inside.
GET
/companies/{company}/warehouses

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

Warehouse status: active or archived. Archiving frees the code for reuse. Exact match on status.

Value in"active" | "archived"
status[in]?string

Warehouse status: active or archived. Archiving frees the code for reuse. Comma-separated list. Any of the values matches.

type?string

Operational nature: own, external (third-party site), store (point of sale) or transit. Exact match on type.

Value in"own" | "external" | "store" | "transit"
type[in]?string

Operational nature: own, external (third-party site), store (point of sale) or transit. Comma-separated list. Any of the values matches.

code?string

Short code of the warehouse (up to 20 characters), unique per company among the live ones. Use search for partial matching. Exact match on code.

code[in]?string

Short code of the warehouse (up to 20 characters), unique per company among the live ones. Use search for partial matching. Comma-separated list. Any of the values matches.

name?string

Human-readable label of the warehouse (up to 120 characters). Exact match on name.

name[contains]?string

Human-readable label of the warehouse (up to 120 characters). Partial case-insensitive match (LIKE %term%) on name.

is_default?boolean

true returns only the default warehouse of the company and false the rest. Only true, false, 1 and 0 are accepted. Exact match on is_default.

sort?string

Sort order: created, code, name ascending, or with a - prefix for descending (default -created).

Value in"created" | "-created" | "code" | "-code" | "name" | "-name"
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