Skip to content
BolderBolder API
Esc
navigateopen⌘Jpreview

Get a variant

GET/products/{product_id}/variants/{id}
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
product_idstringrequired
idstringrequired
Variant ID or SKU
Responses
200Variant details
_linksHalLinks
idinteger
product_idinteger
namestring
Display name, computed from option1/option2/option3.
statusstring
Allowed:visiblehidden
skustring
barcode_numberstring
option1string
option2string
option3string
currency_codestring
regular_priceinteger
Regular price in cents
sale_priceinteger | null
Sale price in cents
priceinteger
Effective price in cents (sale_price if set, else regular_price)
online_stockinteger
all_stockinteger
available_if_no_stockboolean
weight_in_gramsinteger
unit_quantitynumber
colorstring
costinteger
profitinteger
stocksobject[]
Per-location stock breakdown
Show properties
Array of object
location_idinteger
available_unitsinteger
total_unitsinteger
404Variant not found
Request
curl -X GET "https://api.onbolder.com/v2/products/string/variants/string" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "id": 201,
  "product_id": 101,
  "name": "Small",
  "sku": "WH-001-S",
  "regular_price": 8999,
  "price": 8999,
  "online_stock": 10
}