InventoryLocations

Create a new inventory location

Creates a new inventory location at the given site. Locations are the buckets against which stock counts and adjustments are recorded.

post/inventory/locations

Request body

site_idstring uuid

Site the new inventory location belongs to. Locations are scoped to a single site so that stock counts and adjustments stay isolated per site, even when sites share the same product catalogue.

namestring required

A display name for the location.

Example request

{
  "site_id": "5dcb47800000000000000010",
  "name": "Treatment store"
}

Response

A single inventory location.

Example response

{
  "data": {
    "id": "10000000-0000-0000-0000-000000000000",
    "organisation_id": "20000000-0000-0000-0000-000000000000",
    "site_id": "30000000-0000-0000-0000-000000000000",
    "name": "Treatment store",
    "created_at": "2019-01-15T12:00:00.000Z",
    "updated_at": "2019-01-15T12:00:00.000Z"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.