User authentication and session management for B2B integrations
- Get notification settings in a location
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
| Number | Title |
|---|---|
| 1 | Delivered |
| 2 | Not delivered |
| 4 | Sent to phone |
| 8 | Transferred to the operator |
| 16 | Rejected by operator |
| 52 | Not enough funds |
In the event of an error, the corresponding HTTP status code is returned. In some cases, a descriptive error message is also included in the response. The following error codes may be returned by all API methods:
| error code | Http status code | Title | Description |
|---|---|---|---|
| 5 | 400 | ENTITY_VALIDATION_ERROR | The request body did not pass validation |
| 10 | 400 | FIELD_VALIDATION_ERROR | Parameter not validated |
| 15 | 403 | ACCESS_FORBIDDEN | The action is not available, the application does not have the required permissions. |
| 20 | 401 | INVALID_PARTNER_TOKEN | partner_token missing or invalid |
| 30 | 404 | RESOURCE_NOT_FOUND | The resource at the requested path does not exist |
When sending SMS, the delivery_callback_url attribute is passed in the request - this is the url to which message statuses should be sent.
Use it to send message statuses. Url to which message statuses should be sent - https://app.alteg.io/smsprovider/status/callback/{partner_token}
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/delivery/status
- Productionhttps://api.alteg.io/api/v1/delivery/status
- 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/delivery/status \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"id": "232674",
"status": 1,
"payment_sum": 0.045,
"currency_iso": "EUR",
"parts_amount": 2
}
]'- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/notification_settings/{location_id}/notification_types
- Productionhttps://api.alteg.io/api/v1/notification_settings/{location_id}/notification_types
- 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/notification_settings/{location_id}/notification_types' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects
{ "success": true, "data": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ], "meta": { "count": 9 } }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/notification_settings/{location_id}/users/{user_id}
- Productionhttps://api.alteg.io/api/v1/notification_settings/{location_id}/users/{user_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/notification_settings/{location_id}/users/{user_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Object with data
{ "success": true, "data": { "mode": "staff", "notification_types": [ … ] }, "meta": [] }