v1

latestSwagger 2.02026-07-17148179252.3 KB
Customers

Update Customers

Updates Customers. Subresource updates are not supported. Multiple customers can be updated in one call. Required Fields

  • id -- ID of the Customer This must be included in the request body Read Only Fields
  • id
  • registration_ip_address
  • date_created
  • date_modified Notes Attributes Values can not be updated using Update a Customer. Use the Update a Customer Attribute Values endpoint.
put/customers

Request body

emailstring

The email of the customer. Must be unique.

first_namestring

The first name of the customer.

last_namestring

The last name of the customer.

companystring

The company of the customer.

phonestring

The phone number of the customer.

registration_ip_addressstring

The IP address from which this customer was registered.

notesstring

The customer notes.

tax_exempt_categorystring

The tax exempt category code for the customer.

customer_group_idinteger

Id of the group which this customer belongs to.

idinteger required

The unique numeric ID of the customer.

accepts_product_review_abandoned_cart_emailsboolean

It determines if the customer is signed up to receive either product review or abandoned cart emails or recieve both emails.

Example request

[
  {
    "store_credit_amounts": [
      {
        "amount": 43.18
      }
    ]
  }
]

Response

OK

Example response

{
  "data": [
    {
      "authentication": {
        "force_password_reset": true
      },
      "addresses": [
        {
          "address_type": "residential"
        }
      ],
      "store_credit_amounts": [
        {
          "amount": 43.18
        }
      ]
    }
  ]
}