Requires read_markets for queries and both read_markets as well as write_markets for mutations.

Creates a new market.


The properties of the new market.


Was this section helpful?

The market object.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation marketCreate($input: MarketCreateInput!) {
  marketCreate(input: $input) {
    market {
      # Market fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "input": {
    "enabled": true,
    "handle": "<your-handle>",
    "name": "<your-name>",
    "regions": [
      {
        "countryCode": "AC"
      }
    ]
  }
}
input MarketCreateInput {
  enabled: Boolean
  handle: String
  name: String!
  regions: [MarketRegionCreateInput!]!
}

input MarketRegionCreateInput {
  countryCode: CountryCode!
}