Skip to main content

addCustomerAttributes

Set custom attribute values on a customer.

Business Rules​

  • Each entry names its definition by id or by handle.
  • A customer holds one value per definition. Use updateCustomerAttributes to change a value it already has.
  • The same definition may not appear twice in one request.

Error Scenarios​

  • **BAD_REQUEST**: the customer does not belong to this company; the list is empty; an entry names neither a definition nor a handle; the definition does not exist for this company; a value is blank; a definition is repeated; or the customer already holds a value for that definition.

Permissions Required​

  • customers:add_attribute permission.
addCustomerAttributes(
input: AddCustomerAttributesInput!
): AddCustomerAttributesPayload

Arguments​

addCustomerAttributes.input ● AddCustomerAttributesInput! non-null input common​

Parameters for AddCustomerAttributes

Type​

AddCustomerAttributesPayload object common​

Autogenerated return type of AddCustomerAttributes.