User authentication and session management for B2B integrations
- Adding a Client
Get a list of clients
Get a client
Edit client
Delete client
Bulk adding clients
List of a comments for a client
Add a comment for a client
Delete a comment for a client
Sample Request to Get a List of Client Files
Delete request example
Search by customer history
Deprecated. Get a list of clients
Adding a Client
Business Management (1.0.0)
Full-featured B2B API for business operations.
Base URL: https://api.alteg.io/api
V1 will be gradually deprecated. We recommend using V2 API for new integrations. V1 endpoints are maintained for backward compatibility, but new features will be released in V2 only.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developer.alteg.io/_mock/en/b2b-v1/openapi/
Production
https://api.alteg.io/api/v1/
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/{location_id}
- Productionhttps://api.alteg.io/api/v1/clients/{location_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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 '[object Object]'Response
application/json
{ "success": true, "data": { "id": 1121412, "name": "James", "surname": "Smith", "middle_name": "James", "phone": 13155550179, "email": "j.smith@example.com", "categories": [], "gender": "Male", "gender_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": { … } }, "meta": [] }
Bodyapplication/jsonrequired
What field to sort by
Enum"id""name""phone""email""discount""first_visit_date""last_visit_date""sold_amount""visit_count"
Example: "name"
Filters for searching by customers
Example: [{"type":"id","state":{"value":[1,2,3]}},{"type":"sold_amount","state":{"from":0,"to":100.77}},{"type":"quick_search","state":{"value":"James Smith"}},{"type":"importance","state":{"value":[0,1,2,3]}},{"type":"has_mobile_app","state":{"value":true}},{"type":"category","state":{"value":[1,7]}},{"type":"has_passteam_card","state":{"value":true}},{"type":"passteam_card_ids","state":{"value":["111122223333aaaabbbbcccc"]}},{"type":"birthday","state":{"from":"1990-01-01 00:00:00","to":"2000-01-01 23:59:59"}},{"type":"gender","state":{"value":[0,1,2]}},{"type":"record","state":{"staff":{"value":[1,2]},"service":{"value":[2,3]},"service_category":{"value":[4,5]},"status":{"value":[1]},"created":{"from":"2026-01-01 00:00:00","to":"2026-01-01 23:59:59"},"records_count":{"from":1,"to":99999},"sold_amount":{"from":1.001,"to":99999.09}}},{"type":"client","state":{"id":{"value":[1,2,3]},"birthday":{"from":"1990-01-01 00:00:00","to":"2000-01-01 23:59:59"}}},{"type":"sale","state":{"abonement_balance":{"from":2,"to":3}}}]
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/clients/search
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/clients/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/clients/search' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"page": 1,
"page_size": 3,
"fields": [
"id",
"name"
],
"order_by": "name",
"order_by_direction": "desc",
"operation": "AND",
"filters": [
{
"type": "id",
"state": {
"value": [
1,
2,
3
]
}
},
{
"type": "sold_amount",
"state": {
"from": 0,
"to": 100.77
}
},
{
"type": "quick_search",
"state": {
"value": "James Smith"
}
},
{
"type": "importance",
"state": {
"value": [
0,
1,
2,
3
]
}
},
{
"type": "has_mobile_app",
"state": {
"value": true
}
},
{
"type": "category",
"state": {
"value": [
1,
7
]
}
},
{
"type": "has_passteam_card",
"state": {
"value": true
}
},
{
"type": "passteam_card_ids",
"state": {
"value": [
"111122223333aaaabbbbcccc"
]
}
},
{
"type": "birthday",
"state": {
"from": "1990-01-01 00:00:00",
"to": "2000-01-01 23:59:59"
}
},
{
"type": "gender",
"state": {
"value": [
0,
1,
2
]
}
},
{
"type": "record",
"state": {
"staff": {
"value": [
1,
2
]
},
"service": {
"value": [
2,
3
]
},
"service_category": {
"value": [
4,
5
]
},
"status": {
"value": [
1
]
},
"created": {
"from": "2026-01-01 00:00:00",
"to": "2026-01-01 23:59:59"
},
"records_count": {
"from": 1,
"to": 99999
},
"sold_amount": {
"from": 1.001,
"to": 99999.09
}
}
},
{
"type": "client",
"state": {
"id": {
"value": [
1,
2,
3
]
},
"birthday": {
"from": "1990-01-01 00:00:00",
"to": "2000-01-01 23:59:59"
}
}
},
{
"type": "sale",
"state": {
"abonement_balance": {
"from": 2,
"to": 3
}
}
}
]
}'Response
application/json
{ "success": true, "data": [ { … }, { … }, { … } ], "meta": { "total_count": 908 } }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/client/{location_id}/{id}
- Productionhttps://api.alteg.io/api/v1/client/{location_id}/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/client/{location_id}/{id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'Response
application/json
{ "success": true, "data": { "id": 16, "name": "James", "surname": "Smith", "middle_name": "James", "phone": 13155550178, "email": "", "categories": [], "gender": "unknown", "discount": 0, "importance": "No importance class", "card": "", "birth_date": null, "comment": "", "sms_check": 0, "sms_not": 0, "spent": 0, "balance": 0, "visits": 3, "last_change_date": "2026-03-01T12:00:00-0500", "custom_fields": [] }, "meta": [] }