Inventory

Inventory Categories

An InventoryCategory represents a category for inventory items.

get/inventory/categories

List Inventory Categories

listInventoryCategories

This endpoint retrieves a list of all the inventory categories for the given organisation.

Query parameters

  • site_iduuidrequired

    Filter inventory categories by site.

  • archivedbooleanoptional

    Whether to include archived resources in the response. When true, archived resources are returned; when false or omitted, only non-archived resources are returned.

  • querystringoptional

    A search query to filter inventory categories by. This will search the category name.

  • pageintegeroptional

    The page to retrieve results from

  • per_pageintegeroptional

    The number of results to return per page

Responses

  • 200

    The inventory categories were successfully retrieved

  • 401

    The user is unauthenticated

post/inventory/categories

Create an Inventory Category

createInventoryCategory

This endpoint creates an inventory category for the given organisation.

Request body

  • namestringrequired

    Human-readable name for the inventory category, used to group related inventory products in the admin UI and on reports. Trimmed; 1-120 characters.

Responses

  • 201

    The inventory category was successfully retrieved

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

put/inventory/categories/order

Reorder Inventory Categories

updateInventoryCategoriesOrder

This endpoint persists the display order of inventory categories for a given site. The position of each ID in the category_ids array is stored as that category's order. All IDs must belong to the caller's site and organisation and must not be archived.

Request body

  • site_iduuidrequired

    Identifier of the site whose inventory categories are being reordered. All IDs in category_ids must belong to this site; the caller's API key must have access to it.

  • category_idsstring[]required

    The inventory category IDs in the desired display order. Each category's position in this array is stored as its order.

Responses

  • 204

    The inventory categories were successfully reordered.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

get/inventory/categories/{categoryId}

Show an Inventory Category

getInventoryCategory

This endpoint retrieves an inventory category for the given organisation.

Path parameters

  • categoryIduuidrequired

    The ID of the InventoryCategory

Responses

  • 200

    The inventory category was successfully retrieved

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

put/inventory/categories/{categoryId}

Update an Inventory Category

updateInventoryCategory

This endpoint updates an inventory category for the given organisation.

Path parameters

  • categoryIduuidrequired

    The ID of the InventoryCategory

Request body

  • namestringoptional

    Human-readable name for the inventory category, used to group related inventory products in the admin UI and on reports. Trimmed; 1-120 characters.

Responses

  • 200

    The inventory category was successfully retrieved

  • 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/categories/{categoryId}

Archive an Inventory Category

deleteInventoryCategory

This endpoint soft deletes an inventory category for the given organisation.

Path parameters

  • categoryIduuidrequired

    The ID of the InventoryCategory

Responses

  • 204

    The inventory category was successfully archived.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

post/inventory/categories/{categoryId}/restore

Restore an Inventory Category

restoreInventoryCategory

This endpoint restores an archived (soft-deleted) inventory category by ID.

Path parameters

  • categoryIduuidrequired

    The ID of the InventoryCategory

Responses

  • 200

    The inventory category was successfully retrieved

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found