Skip to main content

Update Customer

Update an existing customer record.

Endpointโ€‹

PATCH /v1/customers/{id}

Authenticationโ€‹

Requires an API key with the customers:write scope.

Parametersโ€‹

ParameterTypeLocationDescription
idintegerpathThe customer ID

Request Bodyโ€‹

All fields are optional. Only provided fields will be updated.

FieldTypeDescription
first_namestringFirst name (max 255 characters)
last_namestringLast name (max 255 characters)
is_organizationbooleanSet true when the customer is an organization (company/club/group) booking on behalf of others
organization_namestringOrganization name โ€” the display identity for organization customers
parent_customer_idintegerID of the organization customer this person belongs to (must belong to your supplier)
emailstringEmail address (must be unique per supplier)
phonestringPhone number
phone_country_codestringPhone country code
genderstringmale, female, or other
date_of_birthstringDate of birth (YYYY-MM-DD)
address_line_1stringStreet address line 1
address_line_2stringStreet address line 2
citystringCity
statestringState/province
postcodestringPostal/ZIP code
countrystringISO 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โ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks customers:write scope
403forbiddenCustomer belongs to different supplier
404resource_not_foundCustomer does not exist
422validation_errorInvalid request data