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/sms/clients/by_id/{location_id}
- Productionhttps://api.alteg.io/api/v1/sms/clients/by_id/{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/sms/clients/by_id/{location_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"client_ids": [
1,
2,
3,
4,
5
],
"text": "Dear clients, we congratulate you on being our clients! You are very lucky!"
}'Response
application/json
{ "success": true, "meta": { "message": "Accepted" } }
Request
The object for creating SMS mailing has the following fields:
| Field | Type | Description |
|---|---|---|
| text | string | SMS text message |
- fullname:'Joh' (optional, string) - Name (part of name) to filter clients
- phone:'1315' (optional, string) - Phone (part of the number) to filter clients
- email:'test@' (optional, string) - Email (part) for client filtering
- card:'5663rt' (optional, string) - Card (part) to filter customers by loyalty card number
Attention: If there are no filters, SMS mailing will go to the entire database!
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/sms/clients/by_filter/{location_id}
- Productionhttps://api.alteg.io/api/v1/sms/clients/by_filter/{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/sms/clients/by_filter/{location_id}?fullname=%27Joh%27&phone=%271315%27&email=%27test%40%27' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"text": "Dear clients, we congratulate you on being our clients! You are very lucky!"
}'Response
application/json
{ "success": true, "meta": { "message": "Accepted" } }