Public APIs for Uploading
When you create rules using Public APIs, it's essential to follow these steps to upload them to your store and make them effective. Below are the API Requests to upload rules
I. Upload Custom Pricing rules
Upload all the Custom Pricing rules to your store.
POST
https://b2b-solution-public-api.bsscommerce.com/api/v1/rule/upload
When the request is sent, all enabled rules will be uploaded to the active theme.
This request has a rate limit of 5 mins/request.
Request Body
domain*
String
Your store's myshopify domain
accessKey*
String
Your API Access Key
Example request body:
II. Upload Quantity/Amount Breaks rules
Upload all the Quantity/Amount Breaks rules to your store.
POST
https://b2b-solution-public-api.bsscommerce.com/api/v1/qb/rule/upload
When the request is sent, all enabled rules will be uploaded to the active theme.
This request has a rate limit of 5 mins/request.
Request Body
domain*
String
Your store's myshopify domain
accessKey*
String
Your API Access Key
Example request body:
III. Upload Price List rules
Upload all the Price List rules to your store.
POST
https://b2b-solution-public-api.bsscommerce.com/api/v1/pl/rule/upload
When the request is sent, all enabled rules will be uploaded to the active theme.
This request has a rate limit of 5 mins/request.
Request Body
domain*
String
Your store's myshopify domain
accessKey*
String
Your API Access Key
Example request body:
Last updated
Was this helpful?