Create a price list
POST
/price_listsAuthorization
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonseller_idintegerrequiredThe seller this price list belongs to.
namestringrequiredHuman-readable label for this price list.
prices_include_taxbooleanWhether prices in this list already include tax.
use_price_comparison_for_vol_discountsbooleanUse price comparison values when computing volume discounts.
contact_group_idsinteger[]Contact groups this price list applies to. On update, this list is additive (existing group ids are not removed).
taxobjectShow propertiesHide properties
namestringratenumberTax rate, between 0 and 1.
Responses
201Price list created
_linksHalLinksidintegernamestringcurrency_codestringprices_include_taxbooleanuse_price_comparison_for_vol_discountsbooleantaxnumbercontact_groups_countintegercreated_onstring<date-time>updated_onstring<date-time>Request
curl -X POST "https://api.onbolder.com/v2/price_lists" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"seller_id": 7,
"name": "Wholesale EUR",
"prices_include_tax": false
}'const response = await fetch("https://api.onbolder.com/v2/price_lists", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"seller_id": 7,
"name": "Wholesale EUR",
"prices_include_tax": false
})
});import requests
response = requests.post(
"https://api.onbolder.com/v2/price_lists",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"seller_id": 7,
"name": "Wholesale EUR",
"prices_include_tax": False
},
)Response
{
"id": 10,
"name": "Wholesale EUR",
"currency_code": "EUR",
"created_on": "2024-01-15T10:00:00Z",
"_links": {
"self": {
"href": "https://api.onbolder.com/v2/price_lists/10"
},
"products:add_price_item": {
"href": "https://api.onbolder.com/v2/price_lists/10/items",
"method": "post"
}
}
}