Get a product
GET
/products/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredProduct ID or slug
Responses
200Product entity
_linksHalLinksidintegernamestringProduct display name.
slugstringclass_namestringstatusstringAllowed:
visiblehiddendescriptionstringshort_descriptionstringis_bundlebooleanis_deliverablebooleanhas_optionsbooleantagsstring[]currency_codestringbundle_price_modestringAllowed:
pricesumbundle_discountnumberregular_pricenumberIn cents
pricenumberEffective price in cents
sale_pricenumberIn cents
sale_price_starts_atstring<date-time>sale_price_ends_atstring<date-time>has_multiple_pricesbooleandiscount_percentagenumbersafety_stockintegeravailablebooleanstockintegerCurrent stock
online_stockintegerall_stockintegerStock across all locations
vendorstringvariant_optionsobject[]Show propertiesHide properties
Array of
objectnamestringvaluestringglobal_tagsstring[]stocksobjectstocks_per_locationobjectcart_max_quantityintegercart_quantity_multipleintegerlist_pricesobject[]Show propertiesHide properties
Array of
objectprice_list_idintegerpricenumbercreated_onstring<date-time>updated_onstring<date-time>403Access denied (hidden product of another account)
404Product not found
Request
curl -X GET "https://api.onbolder.com/v2/products/string" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.onbolder.com/v2/products/string", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.onbolder.com/v2/products/string",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"id": 101,
"name": "Wireless Headphones",
"slug": "wireless-headphones",
"status": "visible",
"regular_price": 11999,
"sale_price": 8999,
"price": 8999,
"currency_code": "USD",
"description": "Premium wireless headphones with noise cancellation.",
"tags": [
"electronics",
"audio"
],
"_links": {
"self": {
"href": "https://api.onbolder.com/v2/products/101"
},
"products:update": {
"href": "https://api.onbolder.com/v2/products/101",
"method": "put"
},
"products:delete": {
"href": "https://api.onbolder.com/v2/products/101",
"method": "delete"
}
}
}Access denied (hidden product of another account)
Product not found