Authentication
API auth manage
Get Server to Server Tokens
POST https://api-b2b.bigcommerce.com/api/io/auth/backendRequest
Get Server to Server Tokens.
Administrators are the only role allowed to create API tokens.
Authentication
- authToken in header
Body
object | application/json
storeHashstring
requiredYour store unique store_hash>= 1 charactersemailstring
requiredYou can use the backend user email to log into the B2B Edition APP.>= 1 characterspasswordstring
requiredYou can use the backend user password to log into the B2B Edition APP.>= 1 charactersnamestring
requiredThe token name, if you want to specify it.
example-1
Response
OK
Body
object | application/json
codenumber
requireddataarray[object]
required
example-1
Delete Backend API Tokens
DELETE https://api-b2b.bigcommerce.com/api/io/auth/backendRequest
Delete backend API tokens.
Authentication
- authToken in header
Body
object | application/json
emailstring
>= 1 charactersThe backend user email is the credential you use to log into the B2B Edition APP, which will be used as a query parameter.
namestring
The token name, which will be used as a query parameter.idinteger
requiredToken ID
example
Response
OK
Body
object | application/json
Response for successful request
codeinteger
Response code of success request.Example: 200dataarray[]
example-1
Get All Server to Server Tokens
GET https://api-b2b.bigcommerce.com/api/io/backend/tokensRequest
Get all Server to Server tokens
Authentication
- authToken in header
Parameters
- limit in query with default of 10 - integerPagination limit
- offset in query0 - integerPagination offset
example
Response
OK
Body
object | application/json
codeinteger
dataarray[object]
example-1
Get a Storefront API authToken
GET https://api-b2b.bigcommerce.com/api/io/auth/storefrontRequest
Get a storefront API authToken
Authentication
- authToken in header
Parameters
- jwtToken in query - stringrequiredBC JWT token
- channelId in query - stringThe BigCommerce channel ID. Do not use this parameter if you do not have an opened multi-storefront.
example
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
example-1
Get Storefront authToken with Credentials
POST https://api-b2b.bigcommerce.com/api/io/auth/customersRequest
BigCommerce customer gets an authentication token
Authentication
- authToken in header
Body
object | application/json
storeHashstring
requiredYour store unique store_hash>= 1 charactersemailstring
requiredBC customer email>= 1 characterspasswordstring
requiredBC customer password>= 1 characterschannelIdnumber
requiredBigCommerce channel IDnamestring
requiredThe token name, if you want to specify it.>= 1 characters
example-1
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
example-1
Get a B2B Storefront Token
POST https://api-b2b.bigcommerce.com/api/io/auth/customers/storefrontRequest
Get B2B storefront token by v3 io token
Authentication
- authToken in header
Body
object | application/json
customerIdinteger
requiredBigCommerce customer IDchannelIdinteger
BigCommerce channel IDcustomerAccessTokenobject
BigCommerce Customer Access Token
Example 1
Response
OK
Body
object | application/json
codenumber
dataobject
Example 1
See something you can improve? Edit this file on GitHub
Did you find what you were looking for?