User authentication and session management for B2B integrations
- Delete a comment for a client
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.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/{location_id}/clients/{client_id}/comments
- Productionhttps://api.alteg.io/api/v1/clients/{location_id}/clients/{client_id}/comments
- 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/clients/123/clients/123/comments \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"text": "Comment for a client"
}'{ "success": true, "data": { "id": 123, "create_date": "2026-01-01T12:12:12-05:00", "update_date": "2026-01-01T12:12:12-05:00", "type": "default", "text": "Comment for a client", "files": [], "user": { … } }, "meta": {} }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/{location_id}/clients/{client_id}/comments/{comment_id}
- Productionhttps://api.alteg.io/api/v1/clients/{location_id}/clients/{client_id}/comments/{comment_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/123/clients/123/comments/123 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json'{ "success": true, "data": null, "meta": {} }
Request
A list of uploaded client files can be retrieved by providing both the location ID and the client ID in the request. The client ID can be obtained from the client collection.
The response returns an array of client files.
Each client file has the following structure:
| Field | Type | Description | | -----------------| ------- | -------------------------------------------------- ------------------------ | | id | number | File ID | | client_id | number | Client ID | | name | string | Filename with extension | | description | string | File description | | extension | string | File name extension | | mime | string | MIME file type | | link | string | File download link | | date_create | string | File upload date in ISO8601 format | | size | string | Formatted file size string | | username | string | The name of the user who uploaded the file | | user_avatar | string | Avatar of the user who uploaded the file | | can_edit | boolean | Is there a right to change and delete the file? true - there is a right, false - there is no right |
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/clients/files/{client_id}
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/clients/files/{client_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/company/{location_id}/clients/files/{client_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
{ "success": true, "data": [ { … }, { … } ], "meta": { "count": 2 } }