🔗Public APIs for Registration form (RF)

These REST APIs let you work with your wholesale registration flow: fetch form definitions, create wholesalers, filter registrants, and change approval status.

Requirements

  • Install the BSS B2B Solution Shopify app

  • Get your Access Key from the app (see below)


🔑 Get the Access Key

  1. Open the BSS B2B Solution app in Shopify.

  2. Go to Public API.

  3. Click Copy to copy your accessKey.

  4. Include it in the request body for endpoints that require it.


📄 Form Endpoints

Get a form by ID

Purpose Fetch form data only. Validation logic used on the storefront is not returned.

GET

https://b2b-solution-public-api.bsscommerce.com/api/v1/rf/form/:id

Path Params

  • :id – Form ID

Query Params

  • domain – your myshopify domain

Headers

  • x-bss-b2b-api-key – your access key

Example Request

Response (example)

</details>


🧑‍💼 Wholesaler Endpoints

Create wholesaler

POST

Body

name is the field ID in the form. value is the submitted customer information.

Response


POST

Request Body Params

  • domain – your myshopify domain

  • accessKey – your access key

  • status – status to filter (example below)

  • start_date – start date (YYYY-MM-DD)

  • end_date – end date (YYYY-MM-DD)

Example Request

Response (example)

Response (no results)


POST

Action Path Param

  • Replace :action with approve or reject

Important

  • You can only change status for accounts currently in PENDING status.

Request Body Params

  • domain – your myshopify domain

  • accessKey – your access key

  • emails – array of customer emails to update

Example Request

Response (approve with partial errors)

Response (reject)

Response (no results)


⚙️ Notes & Behavior

  • Form fetch returns the schema/fields only; it does not include storefront validation logic.

  • Status change endpoints operate only on PENDING accounts.

  • Some endpoints require domain and accessKey in the request body (see examples above).

Last updated