Authentication
Storefront authentication for the BigCommerce B2B Edition API
Get Storefront authToken within Stencil
POST https://api-b2b.bigcommerce.com/api/v2/loginRequest
Get a storefront authToken. You need a BigCommerce Current Customer JWT to make the request. See the B2B Edition Authentication article for more details.
Equivalent Storefront GraphQL API Mutation: authorization
. For more information, see the GraphQL Playground.
Body
object | application/json
bcTokenstring
requiredBigCommerce JWT tokencustomerIdinteger
Customer IDstoreHashstring
Store HashchannelIdinteger
BigCommerce channel ID
example-1
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
example-1
Get a Storefront authToken for a Specific Customer
POST https://api-b2b.bigcommerce.com/api/io/auth/customersRequest
Get an authentication token for a specific BigCommerce customer.
Equivalent Storefront GraphQL API Mutation: login
. For more information, see the GraphQL Playground.
Body
object | application/json
storeHashstring
required>= 1 charactersemailstring
requiredBigCommerce customer email>= 1 characterspasswordstring
requiredBigCommerce customer password>= 1 characterschannelIdnumber
requiredStore channel IDnamestring
required>= 1 characters
example-1
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
example-1
See something you can improve? Edit this file on GitHub
Did you find what you were looking for?