Factuarea APIDevelopers

List the locations of a warehouse

List the locations of one warehouse — its aisles, shelves or bays — with cursor-based pagination, taking the warehouse from the path.

  • Filter by status and by parent location to walk the hierarchy one level at a time, and sort by creation, code or name.
  • Archived locations are returned as well: filter by status when you only want the ones in use.
  • An archived warehouse still serves its locations, and a warehouse of another company answers as not found.
GET
/companies/{company}/warehouses/{warehouse}/locations

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

Public identifier (UUID v7) of the warehouse.

Formatuuid

Query Parameters

parent_id?string

Public ID of the parent location whose children are listed; omit it to list every location of the warehouse in the path. Exact match on parent_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

Location status: active or archived. Unfiltered, the listing returns both. Exact match on status.

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

Location status: active or archived. Unfiltered, the listing returns both. Comma-separated list. Any of the values matches.

sort?string

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

Value in"created" | "-created" | "code" | "-code" | "name" | "-name"

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