BSS B2B Solution
  • 🚀Getting Started
    • App Overview
  • Wholesale Pricing
    • Quantity/Amount Break
      • Set different price for different quantity range
      • Settings for Quantity/Amount Break
      • Display discounted prices
      • Import/Export Quantity/Amount Break rules
    • Custom Pricing
      • Set different prices for Wholesale customers
      • Display Custom Pricing prices
      • Import/Export Custom Pricing rules
    • Price List per Customer
      • Set customized pricing per product per customer
      • Display Custom Pricing prices
      • Import/Export Price List rules
    • More
      • Shipping Rate
        • Set up your Wholesale shipping rate
      • Extra Fees
        • Add fee to your customer's orders
        • Settings for Extra Fee
  • Customer Management
    • Registration Forms
      • Set up Wholesale Registration Form
      • Set up Multi-step form
      • Publish form to the storefront
      • Manage, approve and notify your customers
      • Email sender settings
      • Import Customers
      • Translate form for cross-border wholesalers
    • Auto Tags Orders/Customers
      • Automatically tag orders and customers
  • Tax
    • Tax Incl/Excl Display
      • Display prices with and without taxes
    • Tax Exempt
      • Tax exempt for eligible customers and orders
  • Order management
    • Manual Orders
      • Create an order in Backend with discounts
      • Edit an order from Backend
    • Order Limits
      • Set minimum or maximum quantity/amount your customer can buy
    • Quantity Increments
      • Make your product buy-able in only increments
    • Orders Custom Fields
      • Allow customers to add custom notes to the orders
    • Net terms
      • Set up Net terms
      • Email notifications
  • Other modules
    • Discount Code
      • Set Discount Codes on your orders
    • Buy One Get One
      • Set discounted price for a product when buying another product
    • Multi Currency
      • Show prices in different currencies
  • API Integration
    • Public APIs
      • Public APIs for Uploading
      • Public APIs for Quantity Breaks (QB)
      • Public APIs for Custom Pricing (CP)
      • Public APIs for Price List (PL)
      • Public APIs for Registration form (RF)
  • Integration
    • Shopify POS
    • Klaviyo
    • EasyCSV
    • Sufio
    • Order Printer Pro
    • Zapiet Pickup + Delivery
    • Shopify theme
  • Use case & FAQ
    • General
      • Can I get a discount on special cases?
      • Can I get a trial for the app?
      • Can I subscribe to an annual plan?
      • Can I cancel the app at any time?
      • How to uninstall the app and remove the code?
      • Can I request a refund?
      • Can I change my plan?
      • Do you offer free installation and support?
      • What are your supporting hours?
      • Does it cost an extra fee for support?
      • Does our app support all Shopify themes?
      • How to submit a request for additional customization?
      • How can I grant access to our app for BSS Commerce?
      • How to fix display problem in Dashboard?
      • How to see the store's collaborator code
    • Usecases
      • How do Quantity Increment Calculation and Quantity Limit work in your Shopify store?
      • How to calculate the total price when customers are qualified for Custom Pricing and Quantity Break?
      • How can I restrict customers to access the page? After approving, how can I show the custom pricing?
      • How to exempt tax for non-registered VAT customers?
      • Can my customers still use discount codes at checkout?
      • How to limit order quantity/amount and offer tiered pricing with Order Limit and Quantity Break?
      • How to add notes/additional information to Orders created by the B2B/Wholesale Solution app?
      • How to avoid duplicated discount if I create b2c discount rule with another app?
      • How to limit order quantity/amount and set product increment with Order Limit and Quantity Increment
  • Policy
    • Discount policy
Powered by GitBook
On this page
  • I. Upload Custom Pricing rules
  • II. Upload Quantity/Amount Breaks rules
  • III. Upload Price List rules

Was this helpful?

  1. API Integration
  2. Public APIs

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

Name
Type
Description

domain*

String

Your store's myshopify domain

accessKey*

String

Your API Access Key

Example request body:

{ 
  "domain": "bsscommerce-store.myshopify.com", 
  "accessKey": "yt1pRFAU8ARdwQORhz/Ww7vyS+xxxxxxxxxxxxxx" 
}

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

Name
Type
Description

domain*

String

Your store's myshopify domain

accessKey*

String

Your API Access Key

Example request body:

{ 
  "domain": "bsscommerce-store.myshopify.com", 
  "accessKey": "yt1pRFAU8ARdwQORhz/Ww7vyS+xxxxxxxxxxxxxx" 
}

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

Name
Type
Description

domain*

String

Your store's myshopify domain

accessKey*

String

Your API Access Key

Example request body:

{ 
  "domain": "bsscommerce-store.myshopify.com", 
  "accessKey": "yt1pRFAU8ARdwQORhz/Ww7vyS+xxxxxxxxxxxxxx" 
}

How do we upload data to Shopify?

  • Data will be saved into a maximum of 10 keys metafield.

  • Each key data type is JSON and has a limit size of 2.000.000 characters. Then, the data rule max size will be around 20.000.000 characters, all data exceed will not be uploaded.

  • The data uploaded to the storefront contains mostly rules data and some data on settings (but the setting data is small).

  • Only active rules will be uploaded.

Last updated 11 months ago

Was this helpful?