User authentication and session management for B2B integrations
- List Event Duplication Strategies
Search Events
Search Event Dates
Get Event Date Range
Get Event Search Filters
Duplicate Event
Search Event Services
Create Event Duplication Strategy
Update Event Duplication Strategy
Deprecated. Get Event
Deprecated. Update Event
Deprecated. Delete Event
Deprecated. Create Event
List Event Duplication St...
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/activity/{location_id}/services
- Productionhttps://api.alteg.io/api/v1/activity/{location_id}/services
- 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/activity/4564/services?staff_id=0&term=string' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
Example: [{"id":1209148,"title":"Fitness test","capacity":5,"price_min":2,"price_max":3,"is_multi":true,"category":{"id":1285356,"title":"Group services"},"staff":[{"id":37695,"name":"Kim Kardashian","length":7200}],"resources":[{"id":464,"title":"massage room","salon_id":4564}]}]
Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }
Request
Duplication of Events occurs based on a set of parameters combined in the "duplication strategy" entity
| Field | Type | Description |
|---|---|---|
| title | string | Strategy name |
| repeat_mode_id | integer | Repeat mode |
| days | integer[] | List of days of the week: 0 Sun, 6 Fri |
| interval | integer | Break in searching for dates, in units of type |
| content_type | integer | Duplicate appointments? 1 - no, 2 - yes |
The repeat mode can take the values
| Meaning | Description | Break unit |
|---|---|---|
| 1 | Daily | Day |
| 2 | Weekdays | - |
| 3 | Mon Wed Fri | - |
| 4 | Tue Thu | - |
| 5 | Every week | Week |
| 6 | Every month | Month |
| 7 | Every year | Year |
The days field is relevant only for mode 5 - week, for specifying specific days of repetition If you specify repeat_mode = 5, days = [1,4], interval = 2, then the Event will be repeat every 3rd week on Mon and Thu
Security
BearerPartner
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/activity/{location_id}/duplication_strategy
- Productionhttps://api.alteg.io/api/v1/activity/{location_id}/duplication_strategy
- 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/activity/4564/duplication_strategy \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
-H 'Content-Type: string'Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/activity/{location_id}/duplication_strategy
- Productionhttps://api.alteg.io/api/v1/activity/{location_id}/duplication_strategy
- 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/activity/{location_id}/duplication_strategy' \
-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": 3, "company_id": 4564, "title": "Test duplication strategy", "repeat_mode_id": 5, "repeat_mode": { … }, "days": [ … ], "interval": 2, "content_type": 1 }, "meta": [] }