Update Customer
Update an existing customer record.
Endpointโ
PATCH /v1/customers/{id}
Authenticationโ
Requires an API key with the customers:write scope.
Parametersโ
| Parameter | Type | Location | Description |
|---|---|---|---|
id | integer | path | The customer ID |
Request Bodyโ
All fields are optional. Only provided fields will be updated.
| Field | Type | Description |
|---|---|---|
first_name | string | First name (max 255 characters) |
last_name | string | Last name (max 255 characters) |
is_organization | boolean | Set true when the customer is an organization (company/club/group) booking on behalf of others |
organization_name | string | Organization name โ the display identity for organization customers |
parent_customer_id | integer | ID of the organization customer this person belongs to (must belong to your supplier) |
email | string | Email address (must be unique per supplier) |
phone | string | Phone number |
phone_country_code | string | Phone country code |
gender | string | male, female, or other |
date_of_birth | string | Date of birth (YYYY-MM-DD) |
address_line_1 | string | Street address line 1 |
address_line_2 | string | Street address line 2 |
city | string | City |
state | string | State/province |
postcode | string | Postal/ZIP code |
country | string | ISO 3166-1 alpha-2 country code |
Example Requestโ
curl -X PATCH "https://app.equipdash.com/api/v1/customers/256" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"phone": "0412000000",
"address_line_1": "456 New Street"
}'
Responseโ
Success (200 OK)โ
Returns the updated customer resource. See Get Customer for response structure.
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 401 | invalid_api_key | Invalid API key |
| 403 | insufficient_scope | API key lacks customers:write scope |
| 403 | forbidden | Customer belongs to different supplier |
| 404 | resource_not_found | Customer does not exist |
| 422 | validation_error | Invalid request data |