User authentication and session management for B2B integrations
- Search Event Services
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.
Request
A request for duplication can be made in 3 ways:
Specifying a list of dates and times to duplicate
Specifying the ID of the repetition strategy
By specifying all repetition parameters
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/activity/{location_id}/{event_id}/duplicate
- Productionhttps://api.alteg.io/api/v1/activity/{location_id}/{event_id}/duplicate
- 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/1/2/duplicate \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'{ "success": true, "data": [ { … } ], "meta": { "count": 2 } }
- 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
{ "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
- 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'{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }