User authentication and session management for B2B integrations
- Update a service
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.
Technical break duration in seconds.
- If not provided, defaults to null
- null = use location default (Settings → Appointment Log → Technical Breaks)
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
Technical break duration in seconds.
- If not provided, defaults to null
- null = use location default (Settings → Appointment Log → Technical Breaks)
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
team members who provide the service, along with the duration of the service for each team member
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/services/{location_id}
- Productionhttps://api.alteg.io/api/v1/services/{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/services/{location_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorizarion: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Men'\''s haircut",
"category_id": 83167,
"price_min": 1300,
"price_max": 1300,
"duration": 3600,
"discount": 0,
"comment": "",
"weight": 6,
"active": 1,
"api_id": "00000000042",
"staff": [
{
"id": 5905,
"seance_length": 2700
},
{
"id": 5907,
"seance_length": 3600
},
{
"id": 8973,
"seance_length": 3600
},
{
"id": 13616,
"seance_length": 3600
},
{
"id": 16681,
"seance_length": 3600
},
{
"id": 1796,
"seance_length": 3600
},
{
"id": 34006,
"seance_length": 3600
}
]
}'Created
Object with data
{ "success": true, "data": { "id": 83169, "title": "Men's haircut", "category_id": 83167, "price_min": 1300, "price_max": 1300, "duration": 3600, "discount": 0, "comment": "", "weight": 6, "active": 1, "api_id": "00000000042", "staff": [ … ] }, "meta": [] }
Technical break duration in seconds.
- If not provided, defaults to null
- null = use location default (Settings → Appointment Log → Technical Breaks)
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
Technical break duration in seconds.
- If not provided, defaults to null
- null = use location default (Settings → Appointment Log → Technical Breaks)
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
team members who provide the service, along with the duration of the service for each team member
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/services/{location_id}/{service_id}
- Productionhttps://api.alteg.io/api/v1/services/{location_id}/{service_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/services/{location_id}/{service_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Men'\''s haircut",
"category_id": 83167,
"price_min": 1300,
"price_max": 1300,
"duration": 3600,
"discount": 0,
"comment": "",
"weight": 6,
"active": 1,
"api_id": "00000000042",
"staff": [
{
"id": 5905,
"seance_length": 2700
},
{
"id": 5907,
"seance_length": 3600
},
{
"id": 8973,
"seance_length": 3600
},
{
"id": 13616,
"seance_length": 3600
},
{
"id": 16681,
"seance_length": 3600
},
{
"id": 1796,
"seance_length": 3600
},
{
"id": 34006,
"seance_length": 3600
}
]
}'OK
Object with data
{ "success": true, "data": { "id": 83169, "salon_service_id": 322888, "title": "Men's haircut", "category_id": 83167, "price_min": 1300, "price_max": 1300, "duration": 3600, "discount": 0, "comment": "", "weight": 6, "active": 1, "api_id": "00000000042", "staff": [ … ] }, "meta": [] }
Start of period is the appointment available, in seconds
End of period is the appointment available, in seconds
Technical break duration in seconds.
- If not provided, defaults to null
- null = use location default (Settings → Appointment Log → Technical Breaks)
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
Technical break duration in seconds.
- If not provided, defaults to null
- null = use location default (Settings → Appointment Log → Technical Breaks)
- Must be in multiples of 300 (5-minute intervals)
- Maximum value is 3600 (1 hour)
List of team members providing the service and session duration
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/services/{location_id}/{service_id}
- Productionhttps://api.alteg.io/api/v1/services/{location_id}/{service_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/services/{location_id}/{service_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Men'\''s haircut",
"booking_title": "Men'\''s haircut",
"category_id": 83167,
"price_min": 1300,
"price_max": 1300,
"duration": 3600,
"discount": 0,
"tax_variant": 1,
"vat_id": 3,
"is_multi": false,
"is_need_limit_date": true,
"date_from": "2022-09-19",
"date_to": "2022-09-30",
"seance_search_start": 36000,
"seance_search_finish": 84600,
"step": 300,
"seance_search_step": 900,
"comment": "",
"weight": 6,
"active": 1,
"api_id": "00000000042",
"staff": [
{
"id": 5905,
"seance_length": 2700
},
{
"id": 5907,
"seance_length": 3600
},
{
"id": 8973,
"seance_length": 3600
},
{
"id": 13616,
"seance_length": 3600
},
{
"id": 16681,
"seance_length": 3600
},
{
"id": 1796,
"seance_length": 3600
},
{
"id": 34006,
"seance_length": 3600
}
]
}'OK
{ "success": true, "data": { "booking_title": "Men's haircut", "tax_variant": 0, "vat_id": 2, "print_title": "Men's haircut", "service_type": 1, "api_service_id": 0, "repeat_visit_days_step": "null", "seance_search_start": 1800, "seance_search_finish": 84600, "seance_search_step": 900, "step": 300, "is_need_limit_date": true, "date_from": "2022-09-19", "date_to": "2022-09-30", "schedule_template_type": 2, "online_invoicing_status": 0, "is_abonement_autopayment_enabled": 0, "autopayment_before_visit_time": 0, "abonement_restriction_value": 0, "is_chain": false, "is_price_managed_only_in_chain": false, "is_comment_managed_only_in_chain": false, "price_prepaid_amount": 0, "price_prepaid_percent": 100, "id": 10832934, "salon_service_id": 12192004, "title": "Men's haircut", "category_id": 10832928, "price_min": 250, "price_max": 1200, "discount": 0, "comment": "", "weight": 0, "active": 1, "api_id": 0, "prepaid": "forbidden", "is_multi": false, "capacity": 0, "image_group": [], "staff": [ … ], "dates": [ … ], "duration": 3600, "resources": [], "is_online": true }, "meta": [] }