List products

GET /api/v1/inventory/products

Retrieve all products with optional filtering and pagination.

Operation ID: list_products_api_v1_inventory_products_get · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Query

type string

Filter by product type ('manual' or 'shopify')

category string

Filter by category (e.g. 'Finished Goods', 'Ingredients', 'Packaging')

include_variants boolean default: False

Whether to include variant details

archived boolean

Filter by archived status (true/false/null for all)

cursor string

Cursor for pagination

limit integer

Pagination limit

direction string default: next

Pagination direction: 'next' or 'prev'

include_total_count boolean default: False

Whether to include total count (expensive - avoid if possible)

sort_by string

Column name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.

descending boolean default: True

Sort direction: true for descending (newest/largest first), false for ascending

Responses

200 Successful Response

items array · ProductResponse requiredProductResponse

List of items

12 fields
id string required

Product UUID.

business_id string required

Business UUID.

created_at string · date-time required

Creation timestamp.

updated_at string · date-time required

Last update timestamp.

name string required

Product name.

type string required

Product type: 'manual' or 'shopify'.

category string

Product category (e.g. 'Finished Goods', 'Intermediate Goods', 'Ingredients').

stripe_product_id string

Stripe product ID if synced to Stripe.

shopify_product_id string

Shopify product ID if synced from Shopify.

archived boolean

Whether product is archived (hidden from lists).

variant_count integer

Number of variants this product has.

variants array · VariantResponse

List of product variants (when include_variants=true).

total integer

Total number of items (null when not calculated for performance)

limit integer

Pagination limit

next_cursor string

Cursor for next page

prev_cursor string

Cursor for previous page

has_next boolean required

Whether there are more items

has_prev boolean required

Whether there are previous items

404 Business not found

422 Invalid query parameters