Public API v2: Volume Pricing
Quantity breaks and value breaks: the more a customer buys, the lower the price.
| Scopes | volume-pricing:read, volume-pricing:write |
| Plan | Plans with Volume Pricing; otherwise 403 |
| Takes effect | Saved in the app; reaches the storefront at the next upload. |
Every response has the same envelope (success, status, data, meta; see Responses). Returns below describes data. The examples are real calls; the rules were created disabled.
Good to know
Section titled “Good to know”- A table has 1–50 rows in ascending order. Ranges include both ends and must not overlap —
[1–10]then[10–20]overlap; use[1–9],[10–20]. Only the last row may leave its upper boundnull. - To change a few fields of many rules, such as their tiers, use
POST /volume-pricing/rules/bulk-update: 250 rules in one request, and every field you leave out stays as it is. It saves in the app only; call the upload route once afterwards. product_condition_type = by_variantsgoes withrule_typeorderorvariantonly.
Volume Pricing API endpoints
- GET/api/v2/volume-pricing/rules# List rules
- POST/api/v2/volume-pricing/rules# Create a rule
- GET/api/v2/volume-pricing/rules/{id}# Get a rule
- PUT/api/v2/volume-pricing/rules/{id}# Replace a rule
- DEL/api/v2/volume-pricing/rules/{id}# Delete a rule
- POST/api/v2/volume-pricing/rules/bulk-upsert# Create or replace rules in bulk
- POST/api/v2/volume-pricing/rules/bulk-update# Update rules in bulk
- POST/api/v2/volume-pricing/rules/bulk-delete# Delete rules in bulk
- POST/api/v2/volume-pricing/rules/upload# Upload rules to the storefront
The rule object
Section titled “The rule object”What every read returns. Lists come back as [] when empty, never null.
idstringread-only
Rule id.
namestring
Rule name.
priorityinteger
Lower number wins; see Rules.
statusenum
disabled rules are kept but not applied. One of disabled, enabled.
CustomersCommon object
Who gets the rule.
Show fields
apply_toenum
all everyone, logged in or not · logged_in any logged-in customer · non_logged_in visitors who are not logged in · customer_ids the listed customers · customer_tags customers with any of the tags · company_location the listed B2B company locations. Accepted here: all, logged_in, non_logged_in, customer_ids, customer_tags, company_location.
customer_ids[string]
Used when apply_to is customer_ids; required and not empty then.
customer_tags[string]
Used when apply_to is customer_tags; required and not empty then.
company_location_ids[string]
Used when apply_to is company_location; required and not empty then.
exclude_fromenum
none (default) · customer_tags · customer_ids · company_location. Excluded customers stay out even when apply_to includes them. Accepted here: none, customer_tags, customer_ids, company_location.
exc_customer_tags[string]
Used when exclude_from is customer_tags.
exc_customers[string]
Used when exclude_from is customer_ids.
exc_company_location_ids[string]
Used when exclude_from is company_location.
ProductsCommon object
Which products the rule covers.
Show fields
product_condition_typeenum
all every product · by_ids · by_collections · by_tags · by_variants. Accepted here: all, by_ids, by_collections, by_tags, by_variants.
product_ids[string]
Used when the type is by_ids; required and not empty then.
product_collections[string]
Used when the type is by_collections; required and not empty then.
product_tags[string]
Used when the type is by_tags; required and not empty then.
variant_ids[string]
Used when the type is by_variants; required and not empty then.
exc_product_typeenum
none (default) or one of the types above: these products are left out. Accepted here: none, by_ids, by_collections, by_tags, by_variants.
exc_specific_products[string]
Used when exc_product_type is by_ids.
exc_product_collections[string]
Used when exc_product_type is by_collections.
exc_product_tags[string]
Used when exc_product_type is by_tags.
exc_product_variants[string]
Used when exc_product_type is by_variants.
MarketsCommon object
Which markets the rule covers.
Show fields
market_condition_typeenum
all (default) every market · by_ids the listed markets. Accepted here: all, by_ids.
market_ids[string]
Shopify market ids.
rule_typeenum
One of product, order, variant, collection.
rule_settingenum
One of quantity, value.
table_typeenum
One of full_range_discounts, from_discounts_with_prices_1, full_range_prices, from_prices_1, from_prices_2, from_discounts, from_discounts_with_prices_2, legacy_1, legacy_2, from_prices_and_total.
qty_table[object]
[] unless rule_setting is quantity.
Show fields
qty_frominteger
qty_tointeger or null
discount_typeenum
One of apply_fixed, decrease_fixed, decrease_percentage.
discount_valuestring
amount_table[object]
[] unless rule_setting is value.
Show fields
amount_fromstring
amount_tostring or null
discount_typeenum
One of apply_fixed, decrease_fixed, decrease_percentage.
discount_valuestring
ScheduleCommon object
When the rule applies.
Show fields
start_atstring
UTC date and time ending in Z; null or left out: starts at once.
end_atstring
After start_at; null or left out: never ends.
created_atstring or nullread-only
UTC, ending in Z.
updated_atstring or nullread-only
UTC, ending in Z.
{ "id": "27213", "name": "Buy more, save more", "priority": 1, "status": "disabled", "apply_to": "customer_tags", "customer_ids": [], "customer_tags": [ "vip" ], "company_location_ids": [], "exclude_from": "none", "exc_customer_tags": [], "exc_customers": [], "exc_company_location_ids": [], "product_condition_type": "by_collections", "product_ids": [], "product_collections": [ "482901234567" ], "product_tags": [], "variant_ids": [], "exc_product_type": "none", "exc_specific_products": [], "exc_product_collections": [], "exc_product_tags": [], "exc_product_variants": [], "market_condition_type": "all", "market_ids": [], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5.00" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10.00" } ], "amount_table": [], "start_at": "2026-10-31T17:00:00.000Z", "end_at": null, "created_at": "2026-10-21T09:33:13.000Z", "updated_at": "2026-10-21T09:33:13.000Z"}List rules
GET/api/v2/volume-pricing/rules
List rules, newest first, with their tables.
Query parameters
Section titled “Query parameters”limitinteger
1–250, default 50. See Paging.
cursorstring
next_cursor or prev_cursor of the last page; leave out for the first page. Keep the same filters on every page.
filter_statusenum
One of disabled, enabled.
filter_namestring
Part of the name, any case. 1–200 characters.
filter_rule_settingenum
One of quantity, value.
filter_rule_typeenum
One of product, order, variant, collection.
Returns
Section titled “Returns”data[Rule]
The rules of this page; [] when there are none.
meta.paginationobject
limit, next_cursor, prev_cursor and links to the next and previous pages.
curl -X GET "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules?limit=2&filter_name=Buy" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com"{ "success": true, "status": "success", "data": [ { "id": "27213", "name": "Buy more, save more", "priority": 1, "status": "disabled", "apply_to": "customer_tags", "customer_ids": [], "customer_tags": [ "vip" ], "company_location_ids": [], "exclude_from": "none", "exc_customer_tags": [], "exc_customers": [], "exc_company_location_ids": [], "product_condition_type": "by_collections", "product_ids": [], "product_collections": [ "482901234567" ], "product_tags": [], "variant_ids": [], "exc_product_type": "none", "exc_specific_products": [], "exc_product_collections": [], "exc_product_tags": [], "exc_product_variants": [], "market_condition_type": "all", "market_ids": [], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5.00" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10.00" } ], "amount_table": [], "start_at": "2026-10-31T17:00:00.000Z", "end_at": null, "created_at": "2026-10-21T09:33:13.000Z", "updated_at": "2026-10-21T09:33:13.000Z" } ], "meta": { "timestamp": "2026-10-21T09:33:16.186Z", "version": "v2", "request_id": "553b0210-5cbc-48c7-92af-2285fbec3273", "rate_limit": { "cost": 10, "limit": 600, "remaining": 590, "restore_rate": 10 }, "pagination": { "limit": 2, "next_cursor": null, "prev_cursor": null, "links": { "self": "/api/v2/volume-pricing/rules?limit=2&filter_name=Buy", "next": null, "prev": null } } }}Create a rule
POST/api/v2/volume-pricing/rules
Create a rule.
The body of POST /rules, PUT /rules/{id} and each element of bulk-upsert (add id to replace a rule). PUT replaces the whole rule: optional fields left out go back to their defaults. Fields not listed here are refused with 422.
Arguments
Section titled “Arguments”namestringrequired
Rule name. 1–200 characters.
priorityintegerrequired
Lower number wins; see Rules. 0–99.
statusenumrequired
disabled rules are kept but not applied. One of disabled, enabled.
CustomersCommon objectrequired
Who gets the rule.
Show fields
apply_toenum
all everyone, logged in or not · logged_in any logged-in customer · non_logged_in visitors who are not logged in · customer_ids the listed customers · customer_tags customers with any of the tags · company_location the listed B2B company locations. Accepted here: all, logged_in, non_logged_in, customer_ids, customer_tags, company_location.
customer_ids[string]
Used when apply_to is customer_ids; required and not empty then.
customer_tags[string]
Used when apply_to is customer_tags; required and not empty then.
company_location_ids[string]
Used when apply_to is company_location; required and not empty then.
exclude_fromenum
none (default) · customer_tags · customer_ids · company_location. Excluded customers stay out even when apply_to includes them. Accepted here: none, customer_tags, customer_ids, company_location.
exc_customer_tags[string]
Used when exclude_from is customer_tags.
exc_customers[string]
Used when exclude_from is customer_ids.
exc_company_location_ids[string]
Used when exclude_from is company_location.
ProductsCommon objectrequired
Which products the rule covers.
Show fields
product_condition_typeenum
all every product · by_ids · by_collections · by_tags · by_variants. Accepted here: all, by_ids, by_collections, by_tags, by_variants.
product_ids[string]
Used when the type is by_ids; required and not empty then.
product_collections[string]
Used when the type is by_collections; required and not empty then.
product_tags[string]
Used when the type is by_tags; required and not empty then.
variant_ids[string]
Used when the type is by_variants; required and not empty then.
exc_product_typeenum
none (default) or one of the types above: these products are left out. Accepted here: none, by_ids, by_collections, by_tags, by_variants.
exc_specific_products[string]
Used when exc_product_type is by_ids.
exc_product_collections[string]
Used when exc_product_type is by_collections.
exc_product_tags[string]
Used when exc_product_type is by_tags.
exc_product_variants[string]
Used when exc_product_type is by_variants.
MarketsCommon object
Which markets the rule covers.
Show fields
market_condition_typeenum
all (default) every market · by_ids the listed markets. Accepted here: all, by_ids.
market_ids[string]
Shopify market ids.
rule_typeenumrequired
product: Count the quantity or value of all matching products in the cart together.order: Count the whole cart.variant: Count each variant on its own.
rule_settingenumrequired
quantity: Breaks by quantity; sendqty_table.value: Breaks by amount; sendamount_table.
table_typeenumrequired
full_range_discounts: Table “Full range & discounts”.from_discounts_with_prices_1: Table “From & discounts with discounted prices 1”.full_range_prices: Table “Full range & discounted prices”.from_prices_1: Table “From & discounted prices 1”.from_prices_2: Table “From & discounted prices 2”.from_discounts: Table “From & discounts”.from_discounts_with_prices_2: Table “From & discounts with discounted prices 2”.legacy_1,legacy_2: Tables “Legacy 1” and “Legacy 2”.
qty_table[object]
Required when rule_setting is quantity; rows ascend and do not overlap. 1–50 items.
Show fields
qty_fromintegerrequired
1–2,147,483,647.
qty_tointeger
null or left out: no upper bound, last row only. 1–2,147,483,647.
discount_typeenumrequired
apply_fixed: Fixed price: the price per item becomes the value.decrease_fixed: Fixed-amount decrease.decrease_percentage: Percentage decrease (at most 100).
discount_valuestringrequired
Decimal string, up to 2 decimals.
amount_table[object]
Required when rule_setting is value; rows ascend and do not overlap. 1–50 items.
Show fields
amount_fromstringrequired
amount_tostring
null or left out: no upper bound, last row only.
discount_typeenumrequired
apply_fixed: Fixed price: the price per item becomes the value.decrease_fixed: Fixed-amount decrease.decrease_percentage: Percentage decrease (at most 100).
discount_valuestringrequired
Decimal string, up to 2 decimals.
ScheduleCommon object
When the rule applies.
Show fields
start_atstring
UTC date and time ending in Z; null or left out: starts at once.
end_atstring
After start_at; null or left out: never ends.
Returns
Section titled “Returns”dataRule
The new rule.
curl -X POST "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com" \ -H "Content-Type: application/json" \ -d '{ "name": "Buy more, save more", "priority": 1, "status": "disabled", "apply_to": "customer_tags", "customer_tags": [ "vip" ], "product_condition_type": "by_collections", "product_collections": [ "482901234567" ], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10" } ], "start_at": "2026-10-31T17:00:00Z", "end_at": null}'{ "success": true, "status": "success", "data": { "id": "27213", "name": "Buy more, save more", "priority": 1, "status": "disabled", "apply_to": "customer_tags", "customer_ids": [], "customer_tags": [ "vip" ], "company_location_ids": [], "exclude_from": "none", "exc_customer_tags": [], "exc_customers": [], "exc_company_location_ids": [], "product_condition_type": "by_collections", "product_ids": [], "product_collections": [ "482901234567" ], "product_tags": [], "variant_ids": [], "exc_product_type": "none", "exc_specific_products": [], "exc_product_collections": [], "exc_product_tags": [], "exc_product_variants": [], "market_condition_type": "all", "market_ids": [], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5.00" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10.00" } ], "amount_table": [], "start_at": "2026-10-31T17:00:00.000Z", "end_at": null, "created_at": "2026-10-21T09:33:13.000Z", "updated_at": "2026-10-21T09:33:13.000Z" }, "meta": { "timestamp": "2026-10-21T09:33:13.539Z", "version": "v2", "request_id": "6ab93546-a5f0-4661-bd39-f72521b3919b", "rate_limit": { "cost": 11, "limit": 600, "remaining": 589, "restore_rate": 10 } }}Get a rule
GET/api/v2/volume-pricing/rules/{id}
Get a rule.
Path parameters
Section titled “Path parameters”idstringrequired
Rule id.
Returns
Section titled “Returns”dataRule
The rule. An id that does not exist answers 404 RESOURCE_NOT_FOUND.
curl -X GET "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules/27213" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com"{ "success": true, "status": "success", "data": { "id": "27213", "name": "Buy more, save more", "priority": 1, "status": "disabled", "apply_to": "customer_tags", "customer_ids": [], "customer_tags": [ "vip" ], "company_location_ids": [], "exclude_from": "none", "exc_customer_tags": [], "exc_customers": [], "exc_company_location_ids": [], "product_condition_type": "by_collections", "product_ids": [], "product_collections": [ "482901234567" ], "product_tags": [], "variant_ids": [], "exc_product_type": "none", "exc_specific_products": [], "exc_product_collections": [], "exc_product_tags": [], "exc_product_variants": [], "market_condition_type": "all", "market_ids": [], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5.00" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10.00" } ], "amount_table": [], "start_at": "2026-10-31T17:00:00.000Z", "end_at": null, "created_at": "2026-10-21T09:33:13.000Z", "updated_at": "2026-10-21T09:33:13.000Z" }, "meta": { "timestamp": "2026-10-21T09:33:14.865Z", "version": "v2", "request_id": "94655135-7603-44e5-95f2-94303300ce22", "rate_limit": { "cost": 10, "limit": 600, "remaining": 590, "restore_rate": 10 } }}Replace a rule
PUT/api/v2/volume-pricing/rules/{id}
Replace a rule and its table; optional fields left out go back to their defaults.
Path parameters
Section titled “Path parameters”idstringrequired
Rule id.
Arguments
Section titled “Arguments”The same fields as Create a rule.
Returns
Section titled “Returns”dataRule
The rule after the change.
curl -X PUT "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules/27213" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com" \ -H "Content-Type: application/json" \ -d '{ "name": "Buy more, save more (updated)", "priority": 2, "status": "disabled", "apply_to": "customer_tags", "customer_tags": [ "vip" ], "product_condition_type": "by_collections", "product_collections": [ "482901234567" ], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10" } ], "start_at": "2026-10-31T17:00:00Z", "end_at": null}'{ "success": true, "status": "success", "data": { "id": "27213", "name": "Buy more, save more (updated)", "priority": 2, "status": "disabled", "apply_to": "customer_tags", "customer_ids": [], "customer_tags": [ "vip" ], "company_location_ids": [], "exclude_from": "none", "exc_customer_tags": [], "exc_customers": [], "exc_company_location_ids": [], "product_condition_type": "by_collections", "product_ids": [], "product_collections": [ "482901234567" ], "product_tags": [], "variant_ids": [], "exc_product_type": "none", "exc_specific_products": [], "exc_product_collections": [], "exc_product_tags": [], "exc_product_variants": [], "market_condition_type": "all", "market_ids": [], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5.00" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10.00" } ], "amount_table": [], "start_at": "2026-10-31T17:00:00.000Z", "end_at": null, "created_at": "2026-10-21T09:33:13.000Z", "updated_at": "2026-10-21T09:33:17.000Z" }, "meta": { "timestamp": "2026-10-21T09:33:17.532Z", "version": "v2", "request_id": "f7d58cea-979f-4c0d-928f-bbfc7ccf3630", "rate_limit": { "cost": 11, "limit": 600, "remaining": 589, "restore_rate": 10 } }}Delete a rule
DEL/api/v2/volume-pricing/rules/{id}
Delete a rule.
Path parameters
Section titled “Path parameters”idstringrequired
Rule id.
Returns
Section titled “Returns”data.idstring
Id of the deleted rule.
data.deletedboolean
true.
curl -X DELETE "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules/27213" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com"{ "success": true, "status": "success", "data": { "id": "27213", "deleted": true }, "meta": { "timestamp": "2026-10-21T09:33:21.514Z", "version": "v2", "request_id": "f8a3e35b-f27f-4581-a422-d62a656679f7", "rate_limit": { "cost": 11, "limit": 600, "remaining": 589, "restore_rate": 10 } }}Create or replace rules in bulk
POST/api/v2/volume-pricing/rules/bulk-upsert
Create or replace up to 250 rules; each one succeeds or fails on its own.
See Bulk & idempotency.
Arguments
Section titled “Arguments”rules[object]required
1–250 rules, each with the fields of Create a rule.
Show fields
idstring
Set it to replace that rule, as Replace a rule does; leave it out to create one.
Returns
Section titled “Returns”data.results[object]
One entry per rule, in the order sent.
Show fields
indexinteger
Position of the rule in rules.
idstring
Rule id.
resultenum
created, updated or error.
errorobject
code and message, only when result is error.
data.summaryobject
total, succeeded, failed.
curl -X POST "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules/bulk-upsert" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com" \ -H "Content-Type: application/json" \ -d '{ "rules": [ { "name": "Buy more, save more B", "priority": 1, "status": "disabled", "apply_to": "customer_tags", "customer_tags": [ "vip" ], "product_condition_type": "by_collections", "product_collections": [ "482901234567" ], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10" } ], "start_at": "2026-10-31T17:00:00Z", "end_at": null }, { "name": "Buy more, save more (bulk)", "priority": 1, "status": "disabled", "apply_to": "customer_tags", "customer_tags": [ "vip" ], "product_condition_type": "by_collections", "product_collections": [ "482901234567" ], "rule_type": "product", "rule_setting": "quantity", "table_type": "from_prices_1", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5" }, { "qty_from": 10, "qty_to": null, "discount_type": "decrease_percentage", "discount_value": "10" } ], "start_at": "2026-10-31T17:00:00Z", "end_at": null, "id": "27213" } ]}'{ "success": true, "status": "success", "data": { "results": [ { "index": 0, "id": "27214", "result": "created" }, { "index": 1, "id": "27213", "result": "updated" } ], "summary": { "total": 2, "succeeded": 2, "failed": 0 } }, "meta": { "timestamp": "2026-10-21T09:33:18.877Z", "version": "v2", "request_id": "c76bb488-1231-4563-a365-659ad354f9f8", "rate_limit": { "cost": 11, "limit": 600, "remaining": 589, "restore_rate": 10 } }}Update rules in bulk
POST/api/v2/volume-pricing/rules/bulk-update
Change some fields of up to 250 rules in one request. Send each rule’s id and only the fields to change; every field you leave out stays as it is. To replace a whole rule, use Create or replace rules in bulk.
Each rule succeeds or fails on its own; see Bulk & idempotency.
Arguments
Section titled “Arguments”rules[object]required
1–250 rules. Each holds its id and any fields of Create a rule to change, with the same values. A list or a table you send replaces the stored one.
Show fields
idstringrequired
Rule id.
Some fields are checked together with the stored rule:
- A type and its list: send
apply_to: customer_tagswithcustomer_tags. Sending only a list, such ascustomer_tags, checks it against the storedapply_to. start_atandend_at: a newstart_atmust still come before the storedend_at.rule_settingand its table: a rule readsqty_tablewhenrule_settingisquantityandamount_tablewhen it isvalue. To switch, sendrule_settingwith the new table. Sending the table the rule does not read fails that rule. If the stored rule has no tiers in the table it reads, send that table with the patch.- Markets: a rule saved in the app for all company locations applies in every market, so a market change other than
market_condition_type: allfails that rule.
Returns
Section titled “Returns”data.results[object]
One entry per rule, in the order sent.
Show fields
indexinteger
Position of the rule in rules.
idstring
Rule id.
resultenum
updated or error.
errorobject
code, message and, for a wrong field, details, only when result is error.
data.summaryobject
total, succeeded, failed.
A rule fails on its own, and stays as it was, when it does not exist (RESOURCE_NOT_FOUND) or when a field is wrong or does not fit the rest of the rule (VALIDATION_ERROR, with the field in details). The whole request is refused with 422 when rules is empty or holds more than 250 rules.
curl -X POST "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules/bulk-update" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com" \ -H "Content-Type: application/json" \ -d '{ "rules": [ { "id": "90718", "qty_table": [ { "qty_from": 1, "qty_to": 9, "discount_type": "decrease_percentage", "discount_value": "5" }, { "qty_from": 10, "discount_type": "decrease_percentage", "discount_value": "10" } ] }, { "id": "90719", "name": "Wholesale tiers 2027", "status": "disabled" }, { "id": "90720", "amount_table": [ { "amount_from": "100", "discount_type": "decrease_fixed", "discount_value": "7.50" } ] } ]}'{ "success": true, "status": "success", "data": { "results": [ { "index": 0, "id": "90718", "result": "updated" }, { "index": 1, "id": "90719", "result": "updated" }, { "index": 2, "id": "90720", "result": "error", "error": { "code": "VALIDATION_ERROR", "message": "Validation failed", "details": [ { "field": "amount_table", "message": "Not read when rule_setting is quantity" } ] } } ], "summary": { "total": 3, "succeeded": 2, "failed": 1 } }, "meta": { "timestamp": "2026-11-16T09:17:55.274Z", "version": "v2", "request_id": "d9890014-8137-4715-b3e2-51d036fbc28d", "rate_limit": { "cost": 12, "limit": 600, "remaining": 588, "restore_rate": 10 } }}Delete rules in bulk
POST/api/v2/volume-pricing/rules/bulk-delete
Delete up to 250 rules; an unknown id fails on its own.
See Bulk & idempotency.
Arguments
Section titled “Arguments”ids[string]required
1–250 rule ids.
Returns
Section titled “Returns”data.results[object]
One entry per id: index, id, result (deleted or error) and error (code, message) when it failed.
data.summaryobject
total, succeeded, failed.
curl -X POST "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules/bulk-delete" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "27214", "999999999" ]}'{ "success": true, "status": "success", "data": { "results": [ { "index": 0, "id": "27214", "result": "deleted" }, { "index": 1, "id": "999999999", "result": "error", "error": { "code": "RESOURCE_NOT_FOUND", "message": "Resource not found" } } ], "summary": { "total": 2, "succeeded": 1, "failed": 1 } }, "meta": { "timestamp": "2026-10-21T09:33:20.198Z", "version": "v2", "request_id": "be9f1b05-7340-4770-9167-b1dcecf7d7b9", "rate_limit": { "cost": 11, "limit": 600, "remaining": 589, "restore_rate": 10 } }}Upload rules to the storefront
POST/api/v2/volume-pricing/rules/upload
Upload the rules to the storefront, as the app does.
The body is empty. See Upload.
Returns
Section titled “Returns”data.statusenum
uploaded, or partial_success when some rules did not reach the storefront.
data.skippedobject
capacity_exceeded, write_failed and rule_id_range; see Upload.
curl -X POST "https://solution-public-api.bss-b2b.solutions/api/v2/volume-pricing/rules/upload" \ -H "X-API-Key: $B2B_API_KEY" \ -H "X-Shop-Domain: your-store.myshopify.com"Answer of the Net Terms upload; every module answers in this shape.
{ "success": true, "status": "success", "data": { "status": "uploaded", "skipped": { "capacity_exceeded": 0, "write_failed": 0, "rule_id_range": null } }, "meta": { "timestamp": "2026-10-21T09:34:46.663Z", "version": "v2", "request_id": "db2079e7-e134-412e-9943-e2c2b29a9e8c", "rate_limit": { "cost": 20, "limit": 600, "remaining": 580, "restore_rate": 10 } }}- Public API v2: Authentication & keysCreate Public API v2 keys with per-module permissions, send them with every request, and keep them safe.
- Public API v2: Auto TagRules that tag customers and orders, add notes or mark a customer tax exempt when an event happens.
- Public API v2: Buy X Get YBuy X Get Y offers: what the customer buys, what they get, and the discount on it.
- Public API v2: Bulk & idempotencyCreate, replace or delete up to 250 rules in one Public API v2 request, and retry POST requests safely.