Preview

createAccount is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

createAccount

Create a new marketplace account (company)

This page contains

    Authorization Rules

    This request requires authorization with at least one of the following scopes:

    Scopes

    ROLE_CHANNEL_ADMIN

    ROLE_CHANNEL_SUPPORT

    ROLE_CORPORATE_ADMIN

    ROLE_PARTNER

    ROLE_SALES_SUPPORT

    ROLE_RESELLER_MANAGER

    Arguments

    input CreateAccountInput! PREVIEW

    Specifies attributes for a new marketplace account (company)

    CreateAccountInput fields

    name String!

    Name of the account

    countryCode String!

    Country code of the account

    accessTypes [AccountAccessType!]

    The type of access that members of this account (company) have

    firstUser FirstUserInput! PREVIEW

    The input required to specify or define the first user of the account.

    allowLogin Boolean

    Optional. Default is "true". When set to "true", the marketplace company allows users, including the first user, to login to the marketplace and receive emails from the marketplace. Users can purchase and assign products within the company. Products can also be purchased on their behalf, and assigned to them. When set to "false", the marketplace company does not allow company members, including the first user, to login to the marketplace or receive email notifications from the marketplace. Products are purchased and assigned on users behalf, and they access those products directly through the product interface.

    resellerAccountId String

    Reseller company uuid to associate with customer company. If not provided, then reseller association will not be done

    Return Fields

    account Account PREVIEW
    userErrors [CreateAccountError!] PREVIEW

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.