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
400onemail,card_number,birthdayandorigin_outlet_id;nameandphonecannot be cleared. - A field that is not listed below, such as
points_balance, is ignored. 409 DUPLICATE_PHONEor409 DUPLICATE_CARD_NUMBERwhen another live customer uses the value.- Concurrent updates: the last write wins.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
The customer
Error envelope
Error envelope
Error envelope
Error envelope
Error envelope
Error envelope