Public APIs for Registration form (RF)
Last updated
Was this helpful?
Last updated
Was this helpful?
These APIs are REST APIs. You can use them to manage customer pricing rules, calculate variants' prices based on rules, search for customers, get products, etc. Detailed instructions on how to do it are shown below:
After you install the B2B/Wholesale Solution Shopify app. Go to the Public API page, and click on the Copy button.
GET
https://b2b-solution-public-api.bsscommerce.com/api/v1/rf/form/:id
Headers
Content-Type
application/json
x-bss-b2b-api-key
Your access key
Params
domain
Your store domain (i.e. abc.myshopify.com)
Response
POST
https://b2b-solution-public-api.bsscommerce.com/api/v1/rf/wholesaler/register
Headers
Content-Type
application/json
x-bss-b2b-api-key
Your access key
Params
domain
Your store domain (i.e. abc.myshopify.com)
Body
Response
POST
https://b2b-solution-public-api.bsscommerce.com/api/v1/rf/wholesaler/filter
Headers
Content-Type
application/json
Request body params
domain
Your store domain (i.e. abc.myshopify.com)
accessKey
Your access key
status
Status of customers that you want to get (i.e. pending/approved/rejected
start_date
Format: yyyy-mm-dd
end_date
Format: yyyy-mm-dd
Example
Response
POST
https://b2b-solution-public-api.bsscommerce.com/api/v1/rf/wholesaler/
:action
Replace ":action" with:
"approve" (if you want to approve the wholesaler account)
or "reject" (if you want to reject the wholesaler account)
Headers
Content-Type
application/json
Request body params
domain
Your store domain (i.e. abc.myshopify.com)
accessKey
Your access key
emails
List of customer emails
Maximum: 50 emails
Example
Response