User authentication and session management for B2B integrations
- Get a list of locations
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.
For authorized user only. If you need locations that the user has rights to manage
If you need to get only locations with an active license and an available appointment
If you need to get only moderated locations, whose content is checked for publication
Include date and time of the next free session in the location (ISO8601)
Include in the location object a list of chains that this location belongs to
Include in the location object a list of location online booking forms
Hide locations with individual appointment
Hide locations with group appointment
Include additional data in the location object
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/companies
- Productionhttps://api.alteg.io/api/v1/companies
- 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/companies?id=4564&group_id=83&my=1&active=1&moderated=1&forBooking=1&show_groups=1&city_id=2&showBookforms=1&min_id=1000&show_deleted=1&hide_record_type_single=1&hide_record_type_activity=1&hide_record_type_mixed=1&business_group_id=1&business_type_id=1&include=staff%2Cpositions&count=0&page=0' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects
{ "success": true, "data": [ { … } ], "meta": [] }
ID of the country in which the location is located (method to get a list of countries)
Identifier of the city in which the location is located (method to get a list of cities)
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/companies
- Productionhttps://api.alteg.io/api/v1/companies
- 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/companies \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "James Smith LLC",
"country_id": 7,
"city_id": 2,
"address": "New York, 787 Jackson Drive",
"site": "james-smith-company.com",
"coordinate_lat": 40.73061,
"coordinate_lot": -73.935242,
"business_type_id": 1,
"short_descr": "Beauty studio"
}'Created
data object
{ "success": true, "data": { "id": 1050, "title": "James Smith LLC", "short_descr": "Beauty studio", "logo": "https://app.alteg.io/images/no-master.png", "active": 1, "phone": "+13155550175", "country_id": 7, "schedule": "", "country": "United States", "city_id": 181, "city": "New York", "timezone_name": "America/New_York", "address": "New York, 787 Jackson Drive", "coordinate_lat": 40.73061, "coordinate_lon": -73.935242, "phone_confirmation": true, "active_staff_count": 2, "app_ios": "", "app_android": "", "currency_short_title": "R" }, "meta": [] }
For authorized user only. If you need additional data for the location that the user has rights to manage
Date and time of the next free session in the location (ISO8601).
Include in the location object a list of chains that this location belongs to
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}
- Productionhttps://api.alteg.io/api/v1/company/{location_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/37532?my=1&forBooking=1&show_groups=1&showBookforms=1&bookform_id=19203' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
-H 'Content-Type: string'OK
Object with data
{ "success": true, "data": { "id": 37532, "title": "James Smith LLC", "country_id": 7, "country": "United States", "city_id": 181, "city": "New York", "timezone_name": "America/New_York", "address": "New York, 787 Jackson Drive", "zip": "11435", "coordinate_lat": 40.73061, "coordinate_lon": -73.935242, "short_descr": "Beauty studio", "social": { … }, "site": "james-smith-company.com", "business_type_id": 1, "description": "The <strong>James Smith</strong> location", "phone_confirmation": true, "active_staff_count": 2, "next_slot": "2026-03-23T10:10:00-05:00", "group_priority": 900, "push_notification_phone_confirm": 1, "main_group_id": 9206, "main_group": { … }, "groups": { … }, "bookforms": [ … ], "online_sales_form_url": "https://o1.alteg.io", "access": {} }, "meta": [] }