Skip to content

Get a client

Request

Returns a single client. Contact fields (phone, additional_phone, email) require clients:read_contact plus the subject's permission to see phone numbers in the client card; surname and patronymic require the subject's permission to see client surnames; comment requires the subject's permission to see client card comments, independently of contact access. A withheld field is returned as null and listed in redacted_fields instead of exposing its value.

A client of another Location (including a Location of the same chain), a deleted client and, for a subject limited to the clients of one team member, a client without an appointment with that team member all return the same 404 resource_not_found.

Security
OAuth2(Required scopes: clients:read) or ApiKey
Path
location_idintegerrequired

Identifier of the Location. Verified against the credential on every call — a Location the credential cannot access responds with 404.

client_idintegerrequired

Identifier of the client.

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/clients/{client_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The client.

Headers
RateLimit-Remaininginteger, (int32), >= 0

Requests left in the most constrained policy window that applies to this request.

RateLimit-Resetinteger, (int32), >= 0

On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.

RateLimit-Policystring

Most constrained policy applied to the request, as <limit>;w=<window in seconds>.

Example:"10;w=60"
X-Request-Idstring

Request identifier for support and log correlation.

Bodyapplication/json
idintegerread-onlyrequired
objectstringread-onlyrequired
Value:"client"
namestring or nullrequired

Name as entered in the client card (a business without the surname field often enters the full name here), HTML entities decoded; null when empty.

surnamestring or nullrequired

Surname. null when empty, when the Location has the surname field turned off, or when withheld — see redacted_fields.

patronymicstring or nullrequired

Patronymic or middle name. null when empty, when the Location has the patronymic field turned off, or when withheld — see redacted_fields.

phonestring or nullrequired

Phone number in international format with a leading +. null when absent or withheld — see redacted_fields.

additional_phonestring or nullrequired

Additional phone number in international format with a leading +. Uses the same contact access as phone; null when absent or withheld.

emailstring or nullrequired

Email address. null when absent or withheld — see redacted_fields.

commentstring or nullrequired

Comment from the client card, HTML entities decoded, available to partner frontends with the client card comment permission (clients_card_comment_access). Independent of contact access; null when empty or withheld — see redacted_fields.

card_numberstring or nullrequired

Card number as stored in the client card, HTML entities decoded; null when empty.

genderstring or nullrequired

Gender stored in the client card; null when unspecified.

Enum:"male""female"null
importancestring or nullrequired

Importance level stored in the client card; null when unspecified. This is not a recalculated loyalty tier.

Enum:"bronze""silver""gold"null
birth_dayinteger or null, [ 1 .. 31 ]required

Stored day of birth; null when unknown or outside the range. Returned independently of the other birth parts without constructing a date.

birth_monthinteger or null, [ 1 .. 12 ]required

Stored month of birth; null when unknown or outside the range.

birth_yearinteger or null, [ 1 .. 9999 ]required

Stored year of birth; null when unknown or outside the range. No substitute year is invented.

discount_percentnumber, [ 0 .. 100 ]required

Personal discount set in the client card, percent; 0 when none.

visits_countintegerread-onlyrequired

Number of visits the client attended (marked as arrived), as in the client base of the Location.

first_visit_atstring or null, (date-time)read-onlyrequired

Start of the first attended visit, Location-local offset; null without attended visits.

last_visit_atstring or null, (date-time)read-onlyrequired

Start of the latest attended visit, Location-local offset; null without attended visits.

sold_amount_minorintegerread-onlyrequired

Lifetime sold amount, as in the client base of the Location: services of attended appointments and goods sold to the client, plus the amount imported with the client. Integer minor units of currency.

currencystringread-onlyrequired

ISO 4217, server-controlled by the Location.

created_atstring or null, (date-time)read-onlyrequired

UTC; null for legacy records without a creation date.

updated_atstring or null, (date-time)read-onlyrequired

UTC. Last change of the client card; null for legacy records without a change date.

redacted_fieldsArray of stringsread-onlyrequired

Names of fields withheld for this object: phone, additional_phone and email without contact access, surname and patronymic without the permission to see client surnames, and comment without the client card comment permission. A withheld field is always returned as null — never as a masked, shortened or empty string, so an integration cannot write a mask back. An empty array means nothing was withheld and a null value simply means no value is stored.

Response
{ "id": 789, "object": "client", "name": "Demo", "surname": "Client", "patronymic": null, "phone": "+351210000175", "additional_phone": null, "email": "demo.client@example.com", "comment": null, "card_number": null, "gender": null, "importance": null, "birth_day": 12, "birth_month": 4, "birth_year": 1990, "discount_percent": 5, "visits_count": 12, "first_visit_at": "2025-11-02T10:00:00+00:00", "last_visit_at": "2026-07-09T11:30:00+01:00", "sold_amount_minor": 1250000, "currency": "EUR", "created_at": "2025-11-02T09:57:15Z", "updated_at": "2026-07-09T09:57:15Z", "redacted_fields": [] }