← API reference
Mutation / commerce

updateCustomer

Update a customer. Only provided fields are changed. Requires customer:write permission.

Arguments

Customer ID to update

Fields to update — only provided fields are changed

Returns UpsertCustomerPayload!

Explore in a view

Order Intake
View exact SDL
"""
Update a customer. Only provided fields are changed. Requires customer:write permission.
"""
updateCustomer(
  """Customer ID to update"""
  id: CustomerID!
  """Fields to update — only provided fields are changed"""
  input: UpdateCustomerInput!
): UpsertCustomerPayload! @topic(names: ["commerce"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.