Skip to main content

Update a customer

PATCH 

/customers/:id

Partial update as the acting user: a field that is absent keeps its value; null clears it.

  • An empty string is 400 on email, card_number, birthday and origin_outlet_id; name and phone cannot be cleared.
  • A field that is not listed below, such as points_balance, is ignored.
  • 409 DUPLICATE_PHONE or 409 DUPLICATE_CARD_NUMBER when another live customer uses the value.
  • Concurrent updates: the last write wins.

Request​

Responses​

The customer