REST API - Specialized Users
Sales Staff
Get Sales Staff
This API request returns a list of sales staff. See the List Sales Staffs API reference for a full list of query parameters.
Example Request:
Get a Sales Staff
If you need an individual Sales Staff details, this is the API request you will want to use because a salesStaffId is required as part of the query.
Example Request:
The response will return Sales Staff user details such as sales staff ID, name, email, phone number, and a list of assigned companies.
Update a Sales Staff
This API request is used to update a sales staff company assignment.
Example Request:
The request body requires the following fields:
companyId- the B2B Edition company that the sales staff will be assigned to or unassignedassignStatus- a value of true or false will determine whether the company is assigned or unassigned to the specified sales staff
Example Body:
Super Admin
The Super Admin IDs related to the API requests in this section are all B2B Edition IDs, not BigCommerce customer IDs.
Get a Company’s Super Admins
This API request will return a list of all the Super Admin users assigned to a specified company.
Example Request:
Update a Company’s Super Admins
This API request will create or delete the super admin relationships of a company.
Example Request:
The request body requires two fields:
superAdminId- a unique Super Admin IDisAssigned- true or false, this will create or delete a relationship
Example Body:
Create a Super Admin User
This API request will create a new super admin user with no company assigned. This request does not accept any parameters to immediately assign companies. Another request to update the Super Admin’s company assignments is required.
Example Request:
The request body requires the following fields in order to correctly create a Super Admin user.
firstNamelastNameemail
Additionally, you can provide a BigCommerce uuid to give a BigCommerce user access to B2B Edition and make them a Super Admin user. If you just want to create a brand new Super Admin user, the uuid field can be left blank as shown in the example body below.
Example Body:
Update a Super Admin
This API request will not update a company relationship, but should be used to update user information for a Super Admin.
Example Request:
You can include any of the following fields to update a Super Admin user’s information.
firstNamelastNameuuid- a super admin ID, specific to B2B EditionphonechannelIds
Example Body:
Get Super Admin information with Company Count
This API request will return a list of Super Admin user information and the amount of companies they are assigned.
Example Request:
Get Companies of a Super Admin
This API request will return a list of companies assigned to the specified Super Admin user. The response will show the companyId, companyName, and companyEmail of each assigned company.
Example Request: