- Adding a Client
Get a list of clients
Get a client
Edit client
Delete client
Bulk adding clients
List client card comments
Add a client card comment
Delete a comment for a client
List client card files
Upload a completed document to a client card
Delete a client card file
Search by customer history
Get client loyalty summary
Deprecated. Get full client profiles in a location
Adding a Client
Security
BearerPartnerUser
Client patronymic (middle name). Like surname, it is ignored unless the Business User may edit client surnames and patronymics.
Example:"James"
Additional client phone. Must differ from phone and must not belong to another client of the Location. Send an empty string to clear it. It is not returned in the client card response, but quick_search in client search matches it.
Client national ID: CPF for Brazil, IIN for Kazakhstan. For a location in Kazakhstan the value must be a valid individual IIN — 12 digits with a correct check digit — otherwise the request is rejected with 422 Unprocessable Entity. Optional.
Example:"950315300129"
Consent flags. Applied only when client agreements are enabled for the Location.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/{location_id}
- Productionhttps://api.alteg.io/api/v1/clients/{location_id}
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/{location_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: */*' \
-d '{
"name": "James",
"surname": "Smith",
"patronymic": "James",
"phone": 13155550179,
"email": "j.smith@example.com",
"sex_id": 1,
"discount": 15,
"importance_id": 1,
"card": 555888666,
"birth_date": "952041600",
"comment": "throws show-off",
"sms_check": 0,
"sms_not": 0,
"spent": 1000,
"balance": -200,
"categories": [
101,
102
],
"custom_fields": {
"key-1": "value-1"
},
"national_id": "950315300129"
}'Response
{ "success": true, "data": { "id": 1121412, "name": "James", "surname": "Smith", "patronymic": "James", "phone": 13155550179, "email": "j.smith@example.com", "categories": [], "sex": "Male", "sex_id": 1, "discount": 15, "importance_id": 1, "importance": "Bronze", "card": 555888666, "birth_date": "952041600", "comment": "throws show-off", "sms_check": 0, "sms_not": 0, "spent": 1000, "balance": -1200, "visits": 0, "last_change_date": "2026-05-01T12:00:00-0500", "custom_fields": { … }, "national_id": "950315300129" }, "meta": [] }