update

PATCH /api/v1/accounts/:account_id/customers/:id

Update a customer

Updates an existing customer’s details. To add stamps or redeem rewards, use the customer cards endpoints instead.

Parameters

Name Type Required Description
account_id Must be a number. Required

Store (account) ID

id Must be a number. Required

Customer ID

customer Must be a Hash Required

Customer attributes to update

customer[first_name] Must be a String Optional

Customer’s first name

customer[last_name] Must be a String Optional

Customer’s last name

customer[email] Must be a String Optional

Customer’s email address (unique per store)

customer[phone] Must be a String Optional

Customer’s phone number (unique per store)

customer[birthday] Must be a String Optional

Customer’s birthday (YYYY-MM-DD)

Error Codes

Code Description
401 Unauthorized – invalid or missing API token
404 Store or customer not found
422 Validation failed – check `errors` for details