Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Identity__create Customer

{ permissions: ['*', 'create'], collectionName: 'identity__Customer', } Requires a signed-in staff user. Needs the `identity__Customer` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONidentity__createCustomer(input: CreateCustomerInput!, tenant: String): CommonMutationResponse!

{ permissions: ['*', 'create'], collectionName: 'identity__Customer', } Requires a signed-in staff user. Needs the identity__Customer create permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*
tenant?String

Returns

  1. identity__createCustomer
_id*ID!
Example Request
mutation Identity__createCustomer($input: CreateCustomerInput!) {  identity__createCustomer(input: $input) {    _id  }}
Variables
{  "input": {    "name": "string",    "phoneNumber": "string"  }}
Example Response
{  "data": {    "identity__createCustomer": {      "_id": "1"    }  }}