User authentication and session management for B2B integrations
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/staff/{location_id}/{team_member_id}
- Productionhttps://api.alteg.io/api/v1/staff/{location_id}/{team_member_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/staff/{location_id}/{team_member_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'Bodyapplication/json
ID of a position that should be linked to a team member.
Example: 123
Phone number of a user that should be linked to a team member (without "+", 9 to 15 digits).
Example: 11234567890
Email address of the user to be created or linked to the team member.
Example: "john.johnson@example.com"
User phone number (without "+", 9 to 15 digits). Can be the same as phone_number or different for user account login.
Example: 11234567890
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/staff/quick
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/staff/quick
- 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/123/staff/quick \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "John Johnson",
"specialization": "Cosmetologist",
"position_id": 123,
"phone_number": 11234567890,
"user_email": "john.johnson@example.com",
"user_phone": 11234567890,
"is_user_invite": false
}'Response
application/json
{ "success": true, "data": { "id": 123, "name": "John Johnson", "company_id": 123, "specialization": "Master", "avatar": "https://app.alteg.io/images/no-master-sm.png", "avatar_big": "https://app.alteg.io/images/no-master.png", "position": { … } }, "meta": {} }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/staff/{team_member_id}
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/staff/{team_member_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/company/{location_id}/staff/{team_member_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Team member data object
Example: {"id":1001539,"name":"team member 1","company_id":176275,"specialization":"team member","position":{"id":1,"title":"Administrator"},"avatar":"https://app.alteg.io/images/no-master-sm.png","avatar_big":"https://app.alteg.io/images/no-master.png","fired":0,"status":0,"hidden":0,"user_id":12345}
Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "total_count": 1 } }