Inventory

Inventory Locations

An InventoryLocation is a physical bucket within a site against which stock counts and adjustments are recorded — for example, "Treatment store", "Retail floor", or "Back of house".

get/inventory/locations

List inventory locations

listInventoryLocations

Returns the paginated list of inventory locations the caller can see, optionally filtered by site. Use this to populate the location picker on stock-count and adjustment flows.

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

  • per_pageintegeroptional

    The number of results to return per page

  • pageintegeroptional

    The page to retrieve results from

Responses

  • 200

    Locations were successfully retrieved.

  • 401

    The user is unauthenticated

post/inventory/locations

Create a new inventory location

createInventoryLocation

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

Request body

  • namestringrequired

    A display name for the location.

Responses

  • 201

    A single inventory location.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

get/inventory/locations/{locationId}

Get the details of a single inventory location

getInventoryLocation

Returns the canonical record for a single inventory location.

Path parameters

  • locationIduuidrequired

    The ID of the inventory location.

Responses

  • 200

    A single inventory location.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

put/inventory/locations/{locationId}

Update an existing inventory location

updateInventoryLocation

Updates the display name of an inventory location. Stock counts and adjustments already recorded against the location are unaffected.

Path parameters

  • locationIduuidrequired

    The ID of the inventory location.

Request body

  • namestringoptional

    A display name for the location.

Responses

  • 200

    A single inventory location.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/inventory/locations/{locationId}

Delete an inventory location

deleteInventoryLocation

Soft-deletes an inventory location so it no longer appears in location pickers or new stock movements. Historical stock adjustments, stocktakes and order items already attached to the location remain intact and continue to reference the deleted record by ID.

Path parameters

  • locationIduuidrequired

    The ID of the inventory location.

Responses

  • 204

    The inventory location was successfully deleted.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

get/inventory/locations/{locationId}/adjustments

List adjustments for a single inventory location

listInventoryLocationAdjustments

Returns the paginated list of stock adjustments scoped to a single inventory location. Use this for a per-location audit trail of stock movement.

Path parameters

  • locationIduuidrequired

    The ID of the inventory location.

Query parameters

  • per_pageintegeroptional

    The number of results to return per page

  • pageintegeroptional

    The page to retrieve results from

Responses

  • 200

    Adjustments were successfully retrieved.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found