Skip to main content

customerUpdate Mutation

Updates an existing customer.

Requires the MANAGE_USERSpermission.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A new customer account was updated.
  • CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated.
customerUpdate(
externalReference: String
id: ID
input: CustomerInput!
): CustomerUpdate
Show return type

Arguments

externalReference ● String

External ID of a customer to update.

id ● ID

ID of a customer to update.

input ● CustomerInput!

Fields required to update a customer.

Type

CustomerUpdate

Updates an existing customer.

Requires the MANAGE_USERSpermission.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A new customer account was updated.
  • CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated.