200 Successful Response
Schema: VariantsListResponse
-
itemsarray · VariantResponse requiredVariantResponse -
List of items
24 fields
-
idstring required -
Variant UUID.
-
product_idstring required -
Parent product UUID.
-
business_idstring required -
Business UUID.
-
created_atstring · date-time required -
Creation timestamp.
-
updated_atstring · date-time required -
Last update timestamp.
-
namestring required -
Variant name.
-
skustring -
Stock Keeping Unit.
-
manufacturer_skustring -
Manufacturer's SKU.
-
archivedboolean -
Whether variant is archived.
-
pricenumber -
Unit price in dollars (legacy field, prefer unit_price).
-
costnumber -
Unit cost in dollars (legacy field, prefer unit_cost).
-
inventory_quantityinteger -
Current inventory quantity (legacy, prefer inventory.on_hand).
-
shopify_variant_idstring -
Shopify variant ID if synced from Shopify.
-
stripe_price_idstring -
Stripe price ID if synced to Stripe.
-
stripe_product_idstring -
Stripe product ID if synced to Stripe.
-
unit_priceinteger -
Sale price in cents.
-
unit_costinteger -
Cost price in cents.
-
unit_cost_precisenumber -
Precise unit cost in dollars with sub-cent precision.
-
uomstring -
Unit of measure: EA, LB, G, KG, OZ, etc.
-
default_vendor_idstring -
Preferred vendor UUID.
-
inventoryInventorySummary -
Detailed inventory breakdown.
-
product_namestring -
Parent product name (resolved).
-
margin_centsinteger required -
Profit margin in cents (unit_price - unit_cost).
-
margin_percentagenumber required -
Profit margin as percentage of sale price.
-
-
totalinteger -
Total number of items (null when not calculated for performance)
-
limitinteger -
Pagination limit
-
next_cursorstring -
Cursor for next page
-
prev_cursorstring -
Cursor for previous page
-
has_nextboolean required -
Whether there are more items
-
has_prevboolean required -
Whether there are previous items