Get a volume discount
Returns a single volume discount by ID.
GET
/volume_discounts/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idintegerrequiredID of the volume discount to retrieve.
Responses
200Volume discount details
_linksHalLinksidintegernamestringdiscount_typestringapply_modestringrepeating_tierbooleantiersobjectKeyed by tier boundary — not an array.
cumulativebooleancumulative_modestringavailable_forstringcreated_atstring<date-time>updated_atstring<date-time>404Volume discount not found
Request
curl -X GET "https://api.onbolder.com/v2/volume_discounts/30" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.onbolder.com/v2/volume_discounts/30", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.onbolder.com/v2/volume_discounts/30",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"id": 30,
"name": "Buy 5+ get 10% off",
"discount_type": "percentage",
"tiers": {
"5": 10
},
"cumulative": false,
"_links": {
"self": {
"href": "https://api.onbolder.com/v2/volume_discounts/30"
}
}
}Volume discount not found