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

companyCreate

Example Query
1mutation ExampleMutation($companyData: CompanyInputType) {
2 companyCreate(companyData: $companyData) {
3 company {
4 id
5 companyName
6 bcGroupName
7 description
8 catalogId
9 companyStatus
10 addressLine1
11 addressLine2
12 city
13 state
14 }
15 }
16}
Variables
1{
2 "companyData": {
3 "storeHash": "example",
4 "customerId": "example",
5 "customerEmail": "example",
6 "companyName": "example",
7 "companyEmail": "example",
8 "addressLine1": "example",
9 "addressLine2": "example",
10 "city": "example",
11 "companyPhoneNumber": "example",
12 "country": "example"
13 }
14}
Example response
1{
2 "data": {
3 "companyCreate": {
4 "company": {
5 "id": "example",
6 "companyName": "example",
7 "bcGroupName": "example",
8 "description": "example",
9 "catalogId": "example",
10 "companyStatus": 0,
11 "addressLine1": "example",
12 "addressLine2": "example",
13 "city": "example",
14 "state": "example"
15 }
16 }
17 }
18}
Create a company using a customer id.
Was this page helpful?
Previous

superAdminEndMasquerade

Next

login

Built with

Arguments

companyDataCompanyInputTypeOptional

Returns

an optional CompanyCreate
companyCompanyType