Inventory
DayZero's inventory module covers products, variants, purchase orders, shipments, warehouse locations, transfers, and production. This feature requires the Commerce add-on.
All inventory routes are under /api/v1/inventory.
Products
Create a Product
bash
curl -X POST "https://api.ondayzero.com/api/v1/inventory/products" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "Widget Pro",
"type": "physical"
}'List Products
bash
curl "https://api.ondayzero.com/api/v1/inventory/products?type=physical&include_variants=true" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID"| Parameter | Type | Description |
|---|---|---|
type |
string | Filter by product type |
include_variants |
boolean | Embed variant data in each product |
archived |
boolean | Include archived products |
Variants
Products can have multiple variants (sizes, colors, etc.):
bash
curl -X POST "https://api.ondayzero.com/api/v1/inventory/products/variants" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID" \
-H "Content-Type: application/json" \
-d '{
"product_id": "PRODUCT_UUID",
"name": "Widget Pro - Large",
"sku": "WP-LG-001",
"price_cents": 2999
}'Orders
Purchase and sales orders for inventory management:
bash
curl "https://api.ondayzero.com/api/v1/inventory/orders?status=open" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID"Locations
Warehouse and storage locations:
bash
curl "https://api.ondayzero.com/api/v1/inventory/locations" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID"Shipments
Track inbound and outbound shipments tied to orders:
bash
curl "https://api.ondayzero.com/api/v1/inventory/shipments" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID"Transfers
Move inventory between locations:
bash
curl -X POST "https://api.ondayzero.com/api/v1/inventory/transfers" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID" \
-H "Content-Type: application/json" \
-d '{
"from_location_id": "LOCATION_UUID_1",
"to_location_id": "LOCATION_UUID_2",
"items": [
{"variant_id": "VARIANT_UUID", "quantity": 10}
]
}'Adjustments
Record manual inventory adjustments (shrinkage, corrections, etc.):
bash
curl -X POST "https://api.ondayzero.com/api/v1/inventory/adjustments" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID" \
-H "Content-Type: application/json" \
-d '{
"location_id": "LOCATION_UUID",
"items": [
{"variant_id": "VARIANT_UUID", "quantity_change": -5, "reason": "Damaged in transit"}
]
}'Production
Manage recipes and production runs for manufactured goods:
bash
curl "https://api.ondayzero.com/api/v1/inventory/production/recipes" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID"Import
Bulk import inventory data from spreadsheets using a 3-phase AI-assisted flow:
bash
curl -X POST "https://api.ondayzero.com/api/v1/inventory/import" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID" \
-H "Content-Type: application/json" \
-d '{"s3_key": "uploaded-spreadsheet.xlsx"}'