For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • About Our APIs
  • REST
    • Overview
  • GraphQL
    • Overview
      • Playground
          • MUTproductUpload
          • MUTproductAnonUpload
          • MUTupdateAccountSettings
          • MUTupdateCustomerAccountSettings
          • MUTinvoicePdf
          • MUTinvoicesExport
          • MUTinvoiceCreateBcCart
          • MUTinvoiceFinishBcPayment
          • MUTcreateOrder
          • MUTshoppingListsCreate
          • MUTshoppingListsUpdate
          • MUTshoppingListsDelete
          • MUTshoppingListsDuplicate
          • MUTshoppingListsItemsCreate
          • MUTshoppingListsItemsUpdate
          • MUTshoppingListsItemsDelete
          • MUTcustomerShoppingListsCreate
          • MUTcustomerShoppingListsUpdate
          • MUTcustomerShoppingListsDelete
          • MUTcustomerShoppingListsDuplicate
          • MUTcustomerShoppingListsItemsCreate
          • MUTcustomerShoppingListsItemsUpdate
          • MUTcustomerShoppingListsItemsDelete
          • MUTquoteCreate
          • MUTquoteUpdate
          • MUTquoteCheckout
          • MUTquoteOrdered
          • MUTquoteEmail
          • MUTquotePdfExport
          • MUTquoteAttachFileDelete
          • MUTquoteAttachFileCreate
          • MUTquoteFrontendPdf
          • MUTsuperAdminBeginMasquerade
          • MUTsuperAdminEndMasquerade
          • MUTcompanyCreate
          • MUTlogin
          • MUTcheckoutLogin
          • MUTauthorization
          • MUTuserCreate
          • MUTuserUpdate
          • MUTuserDelete
          • MUTstoreFrontToken
          • MUTcustomerCreate
          • MUTcustomerSubscribersCreate
          • MUTuserMasqueradingCompanyBegin
          • MUTuserMasqueradingCompanyEnd
          • MUTaddressCreate
          • MUTaddressUpdate
          • MUTaddressDelete
          • MUTcustomerAddressCreate
          • MUTcustomerAddressUpdate
          • MUTcustomerAddressDelete
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLB2BMutations

authorization

Example Query
1mutation ExampleMutation($authData: UserAuthType) {
2 authorization(authData: $authData) {
3 result {
4 token
5 user
6 loginType
7 storefrontLoginToken
8 permissions
9 }
10 }
11}
Variables
1{
2 "authData": {
3 "bcToken": "example",
4 "channelId": 0
5 }
6}
Example response
1{
2 "data": {
3 "authorization": {
4 "result": {
5 "token": "example",
6 "user": {
7 "id": null,
8 "createdAt": null,
9 "updatedAt": null,
10 "firstName": null,
11 "lastName": null,
12 "email": null,
13 "phone": null,
14 "bcId": null,
15 "role": null,
16 "masqueradingCompanyId": null
17 },
18 "loginType": 0,
19 "storefrontLoginToken": "example",
20 "permissions": [
21 {
22 "code": null,
23 "permissionLevel": null
24 }
25 ]
26 }
27 }
28 }
29}
Authorize using a Bigcommerce token.
Was this page helpful?
Previous

checkoutLogin

Next

userCreate

Built with

Arguments

authDataUserAuthTypeRequired
An object with a bigcommerce token and channel id. This field is required.

Returns

an optional UserAuthorization
resultUserAuthResultType