Mutation
mutation CreateCustomer($request: CreateCustomerCommandRequestInput!) {
CreateCustomer(request: $request) {
customerId
}
}Variables
{
"request": {
"customerGroupId": "id",
"billingAddress": {
"street": "string",
"city": "string",
"countryIso": "string"
}
}
}Response
{
"data": {
"CreateCustomer": {
"customerId": "id"
}
}
}Mutations
CreateCustomer
Creates a new customer.
If a request with this mutation’s Idempotency-Key was already completed, the response’s extensions contains an idempotency.{responseName} entry with wasReplayed: true.
MUTATION
CreateCustomer(request: CreateCustomerCommandRequestInput!): CreateCustomerCommandResponse!Arguments
request
required
Returns
customerId
ID!
Unique ID of the newly created customer.
Mutation
mutation CreateCustomer($request: CreateCustomerCommandRequestInput!) {
CreateCustomer(request: $request) {
customerId
}
}Variables
{
"request": {
"customerGroupId": "id",
"billingAddress": {
"street": "string",
"city": "string",
"countryIso": "string"
}
}
}Response
{
"data": {
"CreateCustomer": {
"customerId": "id"
}
}
}Was this page helpful?