User authentication and session management for B2B integrations
- Search products and categories
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
You can retrieve a list of products and product categories by providing the location ID. Use the search_term parameter to filter:
- Product categories by name or article
- Products by name, article, or barcode
Limit the number of results using the max_count parameter.
If search_term is not provided, the response will return a list of root categories for the specified location. In this case, the max_count parameter is ignored. If search_term is provided, the system will first search among categories. If fewer than max_count results are found, the search will continue among products to fill the remaining count.
The result is returned as an array of products tree elements.
Product tree element has the following structure:
| Field | Type | Description | | -------------| ------- | -------------------------------------------------- ----------------------------------------- | | parent_id | number | Parent element ID (0 for root elements) | | item_id | number | Item ID (0 if item is a category) | | category_id | number | Product category ID (0 if the item is a product) | | title | string | Product name or product category | | is_chain | boolean | Is the element chain-bound? true - the element is connected to the chain, false - not connected | | is_category | boolean | Is the element a category? true - category, false - product | | is_item | boolean | Is the item a product? true - product, false - category |
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/goods/search/{location_id}
- Productionhttps://api.alteg.io/api/v1/goods/search/{location_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/goods/search/{location_id}?term=string&count=0' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array with data objects
{ "success": true, "data": [ { … }, { … } ], "meta": { "count": 2 } }
Request
term: Name, article or barcode
page (number,
1) - Page number (not used if product_id is passed)count (number,
25) - Number of products on the page (not used if product_id is passed)category_id (number,
777) - Id of the product category (not used if product_id is passed)changed_after (string) - filtering products changed/created since a specific date and time (not used if product_id is passed)
changed_before (string) - filtering products changed/created before a specific date and time (not used if product_id is passed)
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/goods/{location_id}/{product_id}
- Productionhttps://api.alteg.io/api/v1/goods/{location_id}/{product_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/goods/{location_id}/{product_id}?term=string&page=1&count=25&category_id=0&changed_after=2026-09-21T23%3A00%3A00.000-05%3A00&changed_before=2026-01-01T12%3A00%3A00-0500' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Product data object
{ "success": true, "data": [ { … } ], "meta": [] }
The ratio of the unit of measure for sale to the unit of measure for write-off
An array of rules for converting units of measurement (required if there are inventory operations for the product)
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/goods/{location_id}/{product_id}
- Productionhttps://api.alteg.io/api/v1/goods/{location_id}/{product_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/goods/{location_id}/{product_id}' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Shampoo",
"print_title": "Shampoo",
"article": "123",
"barcode": "123",
"category_id": 289632,
"cost": 1000,
"actual_cost": 500,
"sale_unit_id": 216762,
"service_unit_id": 216762,
"unit_equals": 100,
"critical_amount": 1,
"desired_amount": 1,
"netto": 200,
"brutto": 250,
"comment": "Test comment 123",
"tax_variant": 0,
"vat_id": 3,
"correction_rules": [
{
"type": 1,
"base_unit": "service"
},
{
"type": 2,
"base_unit": "service"
},
{
"type": 3,
"base_unit": "sale"
},
{
"type": 4,
"base_unit": "sale"
},
{
"type": 5,
"base_unit": "sale"
}
]
}'OK
Product data object
{ "success": true, "data": [ { … } ], "meta": [] }