v1

latestOpenAPI 3.1.02026-07-2689175245.8 KB
Customers

Update Customer

Update a customer.

put/customers/{id}

Path parameters

idinteger required
Example:67329889100573

The unique identifier for the customer, created by Loop.

Request body

external_idstring nullable

The identifier used by an external source to identify the customer.

sales_channelstring required

If a channel with this name is not already associated with the shop, it will be used to create a new channel.

first_namestring nullable

The customer's given name.

last_namestring nullable

The customer's surname.

emailstring email nullable

The customer's email address.

phonestring nullable

The customer's phone number.

tagsTagRequestData[] nullable

An array of tags used to classify and group customers.

Example request

{
  "external_id": "71263csss-12uhsdfh-2138dja",
  "sales_channel": "shopify",
  "first_name": "Edgar",
  "last_name": "Martinez",
  "email": "sample@example.com",
  "phone": "678-999-8212",
  "tags": [
    "FirstPurchase",
    "ReturnCustomer"
  ]
}

Response

Success

Example response

{
  "customer": {
    "id": 9007199254740991,
    "external_id": "71263csss-12uhsdfh-2138dja",
    "sales_channel": "shopify",
    "first_name": "Edgar",
    "last_name": "Martinez",
    "email": "sample@example.com",
    "phone": "678-999-8212",
    "tags": [
      "FirstPurchase",
      "ReturnCustomer"
    ]
  }
}