Change a customer
Changes a customer's name or blocks them. Send only the fields to change. There is no endpoint that makes a customer: making a booking makes its customer.
Keys: a key that may read and change. Any other key gets 403.
apiKeyAuthorizationBearer wo_live_...A key from the shop's admin. Secret keys start with wo_live_, public keys with wo_pub_.
id*stringThe object's id.
uuidIdempotency-Key?stringAny unique text, such as a UUID. A retry with the same key and the same request gets the first answer back and changes nothing twice. Kept for 24 hours.
length <= 255application/json- body
blocked?booleanTrue stops online bookings from this customer. Bookings they have stay.
name?string1 <= length <= 120The request worked.
application/json- response
A person who booked at the shop.
blocked*booleanThe shop no longer takes online bookings from them.
created_at*stringWhen the shop first saw this customer.
date-timeemail*|nullhas_account*booleanWhether they sign in on the shop's site.
id*stringThe customer's id.
uuidlocale*stringThe language their mail goes out in.
name*stringAs the customer or staff typed it.
no_show_count*integerHow many bookings staff marked as not shown up.
object*stringphone*stringE.164.
postal_code*|nullupdated_at*stringWhen the record last changed.
date-timecurl -X PATCH 'https://api.weerom.com/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "blocked": true}'{ "blocked": false, "created_at": "2026-04-11T09:05:22.000Z", "email": "[email protected]", "has_account": true, "id": "5f0c9d3a-7b2e-4c61-8a4d-9e1f3b6c2d75", "locale": "nl", "name": "Lotte Peeters", "no_show_count": 0, "object": "customer", "phone": "+32470123456", "postal_code": "9000", "updated_at": "2026-11-18T14:02:11.000Z"}Details
Keys
Write key
Any other kind of key answers 403 key_not_allowed.
What it does
- Send
name,blockedor both. Anameis trimmed, and a name that is empty after trimming is ignored. blocked: truestops online bookings from the customer. Bookings they already hold stay.blocked: falselets them book again.- A customer change sends no webhook. Read changes with
GET /customers?updated_after=....
Errors
Besides 401 for a missing, unknown or removed key, 403 plan_required, 429 rate_limited and 500 internal_error, which every endpoint can answer. Errors has all of them.
| Status | code | When | What to do |
|---|---|---|---|
| 400 | invalid_request | The body holds nothing to change, or a field is malformed. | Send name, blocked or both. param is body when the request held neither. |
| 404 | not_found | No object has this id, or the id is not a UUID. | Check the id. Ids are UUIDs from a list or from an earlier answer. |
| 409 | idempotency_mismatch | The Idempotency-Key was used before for a request with another method, path or body. | Make a new Idempotency-Key for a new request. |
| 409 | request_in_progress | The first request with this Idempotency-Key still runs. | Wait a second and send the same request with the same key again. |