Zack Saadioui
1/23/2025
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
graphql
mutation {
  customerCreate(input: {
    firstName:  "John"
    lastName:   "Doe"
    email:      "john.doe@example.com"
    password:   "password"
  }) {
    customer {
      id
      firstName
      lastName
    }
    userErrors {
       field
       message
    }
  }
}1
customerUpdate1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
graphql
mutation {
    customerUpdate(input: {
      id: "gid://shopify/Customer/XXXX"
      email: "new.email@example.com"
      firstName: "Jane"
    }) {
      customer {
        id
        firstName
        email
      }
      userErrors {
        field
        message
      }
    }
}1
customerDelete1
2
3
4
5
6
7
8
9
10
graphql
mutation {
  customerDelete(id: "gid://shopify/Customer/XXXX") {
      deletedCustomerId
      userErrors {
        field
        message
      }
  }
}Copyright © Arsturn 2025