BOM Variants API

Get access to your bom variants data through Cloudbox's v1 API.

Retrieving BOM Variants

Named alternate BOMs for a SKU (e.g. "Summer" vs "Winter"). At most one is active; when none is, new MOs use the base BOM.

Use GET /api/v1/bom-variants to page through every record in your organization, or GET /api/v1/bom-variants/{id} to fetch a single record with its related data. The id is a UUID, and a 404 means it doesn't exist in your organization.

API Endpoint

GET
/api/v1/bom-variants
GET
/api/v1/bom-variants/{id}

Required Headers

Every request must include the following:

Header Key
Description
org-api-key
Your Organization API key. Contact Cloudbox Support For Access: support@cloudboxapp.com.
user-api-key
Your User API Key

Requests missing either header will return 401 Unauthorized

Example Request

bash curl -X GET "https://app.cloudboxapp.com/api/v1/bom-variants?limit=100" \ -H "org-api-key: YOUR_ORG_API_KEY" \ -H "user-api-key: YOUR_USER_API_KEY" \ -H "Accept: application/json"

Response Schema

Column
Type
Description
id
string (uuid)
Unique ID
sku_id
string
References SKU. Filterable (exact)
name
string
Sortable
is_active
boolean
Filterable (exact)
created_at
string (ISO 8601)
Creation timestamp (UTC). Sortable
lines
array of objects
Detail endpoint only. Related records: id, sku_id, product_id, variant_id, ingredient_product_id, quantity, uom, liquid_fluid_ounce_quantity, notes, sort_order, created_at, ingredient

Filters

limitPage size (default 100, max 1000)
offsetNumber of records to skip (default 0)
sortOne of: name, created_at
orderasc | desc
sku_idVariants for this SKU
is_activeOnly the active (true) or inactive (false) variants (boolean)
default sortname ascending

Errors

Cloudbox uses standard HTTP status codes to indicate API success or failure:

  • 200–299 – Request succeeded
  • 400 – Bad request (missing parameters, invalid values)
  • 401 – Unauthorized (missing or invalid API keys)
  • 404 – Resource not found
  • 429 – Too many requests (rate limited)