Skip to content
myela

POST, not PATCH — the update convention across this API. Only the fields you send change. externalId is the one exception: it can be filled in here if the customer has none, but never changed once set — that is 409. Re-sending the value it already has is fine and changes nothing. customFields is **replace-on-write**: sending it replaces the whole array (same rules as on create), so include every field you want kept. null and [] both clear the list. Omitting the key changes nothing.

Update customer

POST/v1/customers/{customer_id}Link

POST, not PATCH — the update convention across this API. Only the fields you send change.

externalId is the one exception: it can be filled in here if the customer has none, but never changed once set — that is 409. Re-sending the value it already has is fine and changes nothing.

customFields is replace-on-write: sending it replaces the whole array (same rules as on create), so include every field you want kept. null and [] both clear the list. Omitting the key changes nothing.

SandboxSecret keycustomers.update

Request fields

Edit a field and the generated request updates immediately.

Path parameters
stringrequired

The customer that owns or receives this resource.

Request body
Optional fields1
stringoptional

A human-readable name.

Response contract

The successful wire shape and errors an integration should branch on.

200

Customer

application/json
idstringrequired
Unique customer identifier.
object"customer"required
Stable resource discriminator.
emailstring
Customer email.
namestring
Customer name.
phonestring
Customer phone.
externalIdstring
Your own id for this customer. Write-once.
customFieldsobject[]
Your own typed fields, up to 20 rows of {name, type, value}. Omitted when none are set. Replace-on-write.
createdAtstringrequired
ISO 8601 creation timestamp.
Example response
{
  "id": "cus_01JEXAMPLE",
  "object": "customer",
  "email": "ada@example.com",
  "name": "Ada Lovelace",
  "phone": "+15555550123",
  "externalId": "acct-8812",
  "customFields": [
    {
      "name": "Plan tier",
      "type": "text",
      "value": "gold"
    },
    {
      "name": "Seats",
      "type": "number",
      "value": "12"
    }
  ],
  "createdAt": "2026-08-10T20:49:51.653Z"
}
Error responses
401authentication_failed

The key is missing, malformed, revoked, or invalid for this environment.

403permission_denied

The key does not have customers.update.

404not_found

The resource does not exist for this merchant.

422invalid_request

One or more request fields are invalid.