How to sign up/create a new customer

The signUp-mutation is used for creating a customer. If the sign up is successful, the customer may be logged on and an authentication token will be returned

signUp-inputsignUp-mutationsignUp-output
Copy
Copied
{
  "input": {
    "billingAddress": {
      "city": {
        "value": "Test"
      },
      "co": {
        "value": ""
      },
      "countryCode": {
        "value": "SE"
      },
      "firstName": {
        "value": "Jane"
      },
      "lastName": {
        "value": "Doe"
      },
      "mobilePhone": {
        "value": ""
      },
      "phone": {
        "value": ""
      },
      "postalCode": {
        "value": "781293"
      },
      "streetName": {
        "value": "Test street"
      }
    },
    "consents": [],
    "emailAddress": "Jane.doe@test.se",
    "externalId": "",
    "password": "test",
    "pid": "110779410122",
    "type": "PRIVATE"
  }
}
Copy
Copied
mutation SignUp($input: SignUpInput!) {
  signUp(input: $input) {
    token {
      value
      __typename
    }
    __typename
  }
}
Copy
Copied
{
  "data": {
    "login": {
      "token": {
        "value": "235-length string"
      }
    }
  }
}
Copyright © Norce 2023. All right reserved.