Public API documentation
Ultra B2B API V1
Public V1 endpoints for partner integrations. The API covers authentication,
product catalog data, stock quantities, catalog changes, brands, categories, and orders.
All routes use the /api base path.
Basics
Base URL
Use your assigned Ultra host with the API prefix:
https://eshop.ultra.md/api
Headers
Send JSON and include the bearer token on protected endpoints:
Accept: application/json
Content-Type: application/json
Authorization: Bearer <access_token>
X-API-Token: <access_token> is also accepted for protected V1 routes.
Authentication
POST /api/auth/token and POST /api/auth/refresh are public.
All other V1 routes in this document require a valid bearer token and use the
bearer-api throttle. Access tokens expire after 1 hour. Refresh tokens expire
after 1 hour and rotate on every refresh.
Protected routes share a limit of 100 requests per hour per user, including requests made with different tokens or through V2. Issuing a new token does not reset this limit. A limit violation returns 429 Too Many Requests; respect the Retry-After response header.
Creating tokens replaces the access and active refresh tokens previously issued through this authentication flow. Refreshing replaces the access token and revokes the refresh token used. Integrations sharing one account must coordinate token storage and rotation.
Create tokens
username must be a valid account email address; password is required. Invalid credentials return 401, while invalid or missing fields return 400.
POST /api/auth/token
Request body:
{
"username": "dealer@example.com",
"password": "secret"
}
Response status: 200 OK
{
"access_token": "1|plain-access-token",
"refresh_token": "plain-refresh-token",
"expires_in": 3600,
"token_type": "Bearer",
"user_email": "dealer@example.com",
"user_id": 10
}
| Response field | Description |
|---|---|
access_token | Bearer token used in protected V1 API requests. |
refresh_token | Token used only to request a new access token; expires 1 hour after issuance. |
expires_in | Access token lifetime in seconds. |
token_type | Always Bearer. |
user_email | Email of the authenticated account. |
user_id | Internal user ID for support and integration diagnostics. |
Refresh access token
POST /api/auth/refresh
Request body:
{
"refresh_token": "plain-refresh-token"
}
Response status: 200 OK
{
"access_token": "2|new-plain-access-token",
"refresh_token": "new-plain-refresh-token",
"expires_in": 3600,
"token_type": "Bearer"
}
Revoke access token
With an empty payload, the current access token is revoked. This endpoint does not revoke refresh tokens.
POST /api/auth/revoke
Request body:
{}
To revoke a specific access token owned by the current user, pass the plain token value:
Request body:
{
"token": "2|plain-access-token"
}
Response status: 200 OK
{
"message": "Token revoked successfully"
}
Endpoints
| Method | Path | Authentication | Success status | Purpose |
|---|---|---|---|---|
| POST | /api/auth/token | No | 200 OK | Create access and refresh tokens. |
| POST | /api/auth/refresh | No | 200 OK | Rotate refresh token and get a new access token. |
| POST | /api/auth/revoke | Bearer | 200 OK | Revoke the current or specified access token. |
| GET | /api/health | Bearer | 200 OK | Check API service status. |
| GET | /api/product | Bearer | 200 OK | List products with filters and pagination. |
| POST | /api/product/batch | Bearer | 200 OK | Fetch products by identifiers. |
| GET | /api/product/{id} | Bearer | 200 OK | Fetch one product by ultra_code or ultra_uuid. |
| GET | /api/category | Bearer | 200 OK | List categories. |
| GET | /api/category/extra-prices | Bearer | 200 OK | List category extra prices for the authenticated user's store. |
| GET | /api/category/{id} | Bearer | 200 OK | Fetch one category by ultra_code or ultra_uuid. |
| GET | /api/quantity | Bearer | 200 OK | List product quantities with pagination. |
| POST | /api/quantity/batch | Bearer | 200 OK | Fetch quantities by identifiers. |
| GET | /api/quantity/{id} | Bearer | 200 OK | Fetch one product quantity. |
| GET | /api/brand | Bearer | 200 OK | List brands. |
| GET | /api/brand/{id} | Bearer | 200 OK | Fetch one brand by ultra_code or ultra_uuid. |
| GET | /api/changes | Bearer | 200 OK | Read incremental catalog changes. |
| POST | /api/order | Bearer | 200 OK | Create an order. |
| GET | /api/order | Bearer | 200 OK | List current user's orders. |
| GET | /api/order/{id} | Bearer | 200 OK | Fetch one current-user order with items. |
| GET | /api/orders/all | Bearer | 200 OK | List store-associated orders when permitted. |
Products
Product endpoints return the catalog available through the API. Use product codes or UUIDs to request individual products and keep your catalog up to date through the list and changes endpoints.
Products may have an empty image_urls array. URLs containing SERVER1C and empty URLs are omitted from this array; this does not exclude the product. Image URLs are not checked for file availability.
article_code is always included. The main product image is first in image_urls when available; the remaining images keep their gallery order. These fields do not require additional API permissions.
List products
| Query parameter | Type | Default | Description |
|---|---|---|---|
category | string | null | Category ultra_uuid or ultra_code. Matches the directly linked category; descendants are not included automatically. |
brand | string | null | Brand ultra_uuid or ultra_code. |
min_price | number | null | Minimum Online price, a non-negative number. This filter uses the catalog price rather than your personal price. |
max_price | number | null | Maximum Online price, a non-negative number. Must be greater than or equal to min_price. Currently, min_price must also be supplied (use 0 for no lower bound). |
min_quantity | integer | null | Minimum quantity, a non-negative integer. |
in_stock | boolean | null | When true, returns products with quantity greater than 0. |
updated_since | date | null | Returns products updated after this date. |
sort | enum | updated_at_desc | price_asc, price_desc, updated_at_desc, or updated_at (also descending). Price sorting uses the Online catalog price. Sorting by name is currently unavailable. |
limit | integer | 100 | Page size from 1 to 1000. |
offset | integer | 0 | Number of matching products to skip after the query filters. Products are not filtered by image availability. |
Category and brand identifiers accept up to 255 characters. updated_since uses a strict “updated after” comparison; an equal timestamp is excluded. Use an explicit timezone in date parameters. in_stock accepts standard boolean values such as true, false, 1, and 0.
The response is a plain array, without count, has_more, or pagination links. Continue by increasing offset by limit until a page contains fewer items than requested.
GET /api/product?category=CAT-001&in_stock=true&limit=50&offset=0
Response status: 200 OK
[
{
"ultra_code": "PRD-001",
"ultra_uuid": "product-uuid",
"article_code": "ART-001",
"url": "https://eshop.ultra.md/product/prd-001",
"product_name": "{\"ro\":\"Produs\",\"ru\":\"Product\"}",
"description": "Description",
"description_by_language": {
"romanian": "Descriere",
"russian": "Opisanie",
"english": "Description"
},
"quantity": 12,
"image_urls": ["https://cdn.example.com/product.jpg"],
"brand": {
"uuid": "brand-uuid",
"name": "Brand",
"updated_at": "2026-06-15T10:30:00"
},
"category": {
"uuid": "category-uuid",
"active": true,
"name": {"ro": "Categorie", "ru": "Category"},
"updated_at": "2026-06-15T10:30:00",
"level": null,
"hierarchy": []
},
"user_price": null,
"fixed_price": {
"amount": 100,
"currency": {"code": "840", "name": "USD", "rate": 17.5},
"price_uuid": "a9b7a81a-799a-11e4-a7d6-00155d0eeb01",
"price_type_uuid": "a9b7a81a-799a-11e4-a7d6-00155d0eeb01"
},
"promo_b2b": null,
"property_groups": [],
"updated_at": "2026-06-15T10:30:00",
"created_at": "2026-06-01T10:30:00"
}
]
| Response field | Where it maps on the site |
|---|---|
ultra_code | Public product code used by integrations and usually shown as the product code/reference. |
ultra_uuid | Internal stable product UUID. Use it when your system stores UUID identifiers. |
article_code | Product article/reference. Always included; may be null when no article is assigned. |
product_name | JSON-encoded string containing localized titles, for example {"ro":"Produs","ru":"Product"}. Decode the string to access language values. |
url | Product page URL, or null if unavailable. |
description | Main product description used on the product details page. |
description_by_language | Localized description values for Romanian, Russian, and English when available. |
quantity | Available stock used for availability labels and quantity checks before ordering. |
image_urls | Non-empty product gallery image URLs, with the main image first when available. |
brand.uuid, brand.name | Brand attached to the product; used for brand filters and brand pages. |
category.uuid, category.name | Category attached to the product; used for category pages, filters, and breadcrumbs. |
category.active | Boolean activity flag of the linked category. This is normally true for returned categories. If the category is unavailable, the entire category field is null. |
category.hierarchy | Category tree used to build navigation or breadcrumbs when hierarchy data exists. |
user_price | Dealer-specific price visible to the authenticated user when configured. |
fixed_price | Online catalog price with currency information; null if unavailable. |
promo_b2b | B2B promotional price when available. Its presence alone does not indicate an active promotion. |
property_groups | Grouped product characteristics/specifications shown on product pages. |
updated_at, created_at | Timestamps for synchronization, cache invalidation, and freshness checks. |
Responses may contain additional fields. Integrations should accept unknown fields and use the documented fields below.
Price objects
Each price field is null when that price is unavailable. Otherwise it contains amount (number) and currency, an object with code, name, and rate. Currency fields may be null if currency metadata is unavailable. Amounts are returned in the source currency without conversion.
| Price field | Source and additional fields |
|---|---|
user_price | The user’s assigned price type. Adds price_uuid (price type UUID) and, when available, price_type (price type identifier or label). |
fixed_price | Online price. Adds price_uuid and price_type_uuid, both identifying the Online type. |
promo_b2b | B2B promotional price. Contains only amount and currency; presence is not a promotion activity check. |
Property groups
property_groups is an array ordered by group_order. Within each group, properties are ordered by sort_order. Localized names are returned as JSON-encoded strings.
[
{
"group_code": "GRP-001",
"group_uuid": "group-uuid",
"group_name": "{\"ro\":\"Caracteristici\",\"ru\":\"Характеристики\"}",
"group_order": 1,
"properties": [
{
"property_name": "{\"ro\":\"Culoare\",\"ru\":\"Цвет\"}",
"property_code": "property-uuid",
"property_type": "string",
"value": "Negru",
"value_name": "Negru",
"sort_order": 1
}
]
}
]
property_code contains the property UUID despite its name. property_type is boolean, integer, float, color, or string. value is the raw string value and may be null; value_name falls back from the string/display value to a typed boolean, number, or color value.
Fetch one product
GET /api/product/PRD-001
Response status: 200 OK
category.active is included in product list, detail, and batch responses, including their /api/v2 equivalents. It describes the linked category, not the product itself. Items in category.hierarchy contain code, name, and uuid; they do not include active.
The response is a single product object with the same fields as the list endpoint. If the product does not exist or is unavailable through the API, the response is 404 Not Found.
Fetch products in batch
ultra_codes accepts 1 to 1000 strings, each up to 255 characters. Each value can be an ultra_code or ultra_uuid. A JSON array is recommended; a string containing a JSON array or comma-separated identifiers is also accepted.
POST /api/product/batch
Request body:
{
"ultra_codes": ["PRD-001", "PRD-002"]
}
Response status: 200 OK
The response is an array of product objects with the same fields as GET /api/product. Unknown identifiers and products unavailable through the API are omitted. Duplicate identifiers are collapsed; response order is not guaranteed to match request order. If no products match, the response is an empty array.
Categories
Category products and product_count cover products available through the API and linked directly to that category. Descendant categories are not included automatically. Categories with no matching products remain in the response with product_count: 0.
List and detail queries return only active categories. Their responses include active, the category activity flag. A request for an inactive category returns 404 Not Found. This flag is separate from product activity and product_count.
List categories
Use code to filter by category ultra_code.
GET /api/category?code=CAT-001
Response status: 200 OK
[
{
"uuid": "category-uuid",
"code": "CAT-001",
"name": {"ro": "Categorie", "ru": "Category"},
"product_count": 120,
"active": true,
"updated_at": "2026-06-15T10:30:00",
"parent_category_code": "parent-category-uuid"
}
]
| Response field | Where it maps on the site |
|---|---|
uuid | Stable category UUID used by integrations and product filters. |
code | Category code used in API filters and external catalog synchronization. |
name | Localized category title shown in navigation, category pages, and filters. |
product_count | Number of products available through the API and linked directly to this category. |
active | Category activity flag. Included in both GET /api/category and GET /api/category/{id}, independently of include_products. |
updated_at | Category freshness timestamp for synchronization. |
parent_category_code | Parent category UUID, despite the field name. Always included in the category list; null for root categories. |
Fetch one category
Pass include_products=true to include a compact products list. Otherwise products is an empty array, while product_count still reports the number of matching products.
GET /api/category/CAT-001?include_products=true
Response status: 200 OK
{
"uuid": "category-uuid",
"code": "CAT-001",
"name": {"ro": "Categorie", "ru": "Category"},
"product_count": 1,
"active": true,
"updated_at": "2026-06-15T10:30:00",
"products": [
{
"ultra_code": "PRD-001",
"product_name": "Produs",
"quantity": 12,
"price": {
"amount": 100,
"currency": "USD"
},
"article": "ART-001",
"url": "https://eshop.ultra.md/product/prd-001"
}
]
}
Compact product_name is a localized string. Its price uses the user’s price first, then Online, then the stored product price. price.currency is the currency name, or null if unavailable. Each compact product row always includes article (the product article, or null) and url (the product page URL). These fields do not require additional API permissions.
products contains compact product rows for category previews or quick category synchronization. Product detail pages should still use GET /api/product/{id}.
Category extra prices
The authenticated user must be associated with a store; otherwise this endpoint returns 400 Bad Request with User has no associated store. The optional code parameter is validated but does not filter extra price rules.
GET /api/category/extra-prices
Response status: 200 OK
[
{
"id": 1,
"category": {
"uuid": "category-uuid",
"code": "CAT-001",
"active": true,
"name": {"ro": "Categorie", "ru": "Category"}
},
"price_extra": 5
}
]
| Response field | Where it maps on the site |
|---|---|
category | Category to which the store-specific extra price rule applies. |
category.active | Boolean activity flag of the category associated with the extra price rule. Returns false if the related category is missing. Included in both V1 and V2 responses. |
price_extra | Extra price percentage/value configured for the authenticated user's store and category. |
V2 compatibility: GET /api/v2/category and GET /api/v2/category/extra-prices also include category activity. The current GET /api/v2/category/{id} response does not include active.
Quantities
Quantity identifiers can be ultra_code or ultra_uuid. Quantity endpoints return stock information for products available through the API. An unavailable product returns 404 for a single lookup and is omitted from batch results. Batch input uses the same 1–1000 identifier rules as product batch; no matches returns an empty array.
| Endpoint | Parameters or payload | Response |
|---|---|---|
GET /api/quantity | category, low_stock, limit, page | Paginated object with data, links, and meta. |
GET /api/quantity/{id} | Path identifier. | One quantity object. |
POST /api/quantity/batch | {"ultra_codes": ["PRD-001"]} | Array of quantity objects. |
List quantities
| Query parameter | Type | Default | Description |
|---|---|---|---|
category | string | null | Filter by category ultra_uuid. |
low_stock | integer | null | Return products with quantity greater than or equal to this value. A value of 0 does not add a quantity filter. |
limit | integer | 100 | Items per page, from 1 to 1000. |
page | integer | 1 | Page number, starting at 1. |
Results are ordered by product ID. Use links.next to request the next page; pagination links retain the query filters and limit. Invalid limit or page values return 400 Bad Request.
GET /api/quantity?category=category-uuid&low_stock=5&limit=1&page=1
Response status: 200 OK
{
"data": [
{
"ultra_code": "PRD-001",
"product_name": "{\"ro\":\"Produs\",\"ru\":\"Product\"}",
"quantity": 12,
"updated_at": "2026-06-15T10:30:00"
}
],
"links": {
"first": "https://example.com/api/quantity?category=category-uuid&low_stock=5&limit=1&page=1",
"last": "https://example.com/api/quantity?category=category-uuid&low_stock=5&limit=1&page=2",
"prev": null,
"next": "https://example.com/api/quantity?category=category-uuid&low_stock=5&limit=1&page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [
{"url": null, "label": "« Previous", "active": false},
{"url": "https://example.com/api/quantity?category=category-uuid&low_stock=5&limit=1&page=1", "label": "1", "active": true},
{"url": "https://example.com/api/quantity?category=category-uuid&low_stock=5&limit=1&page=2", "label": "2", "active": false},
{"url": "https://example.com/api/quantity?category=category-uuid&low_stock=5&limit=1&page=2", "label": "Next »", "active": false}
],
"path": "https://example.com/api/quantity",
"per_page": 1,
"to": 1,
"total": 2
}
}
The example URLs use example.com; responses use your API host. The single-quantity and batch endpoints keep their existing response formats.
Fetch one quantity
GET /api/quantity/PRD-001
Response status: 200 OK
The single lookup returns one object (without an array wrapper):
{
"ultra_code": "PRD-001",
"product_name": "{\"ro\":\"Produs\",\"ru\":\"Product\"}",
"quantity": 12,
"updated_at": "2026-06-15T10:30:00"
}
Fetch quantities in batch
POST /api/quantity/batch
Request body:
{
"ultra_codes": ["PRD-001", "PRD-002"]
}
Response status: 200 OK
[
{
"ultra_code": "PRD-001",
"product_name": "{\"ro\":\"Produs\",\"ru\":\"Product\"}",
"quantity": 12,
"updated_at": "2026-06-15T10:30:00"
}
]
| Response field | Where it maps on the site |
|---|---|
ultra_code | Product code used to match stock data with products in your system. |
product_name | JSON-encoded string of localized product titles, matching the product endpoint’s title format. |
quantity | Available stock used for "in stock" labels, quantity selectors, and order validation. |
updated_at | Last product stock update timestamp. |
Brands
Use GET /api/brand to list brands and GET /api/brand/{id} to fetch one brand. The optional code list filter accepts a brand code or UUID. product_count counts products available through the API and linked to the brand. Brands with no matching products remain in the result.
GET /api/brand?code=BR-001
Response status: 200 OK
[
{
"code": "BR-001",
"uuid": "brand-uuid",
"name": "Brand",
"product_count": 25,
"updated_at": "2026-06-15T10:30:00"
}
]
Fetch one brand
GET /api/brand/BR-001
Response status: 200 OK
The response is a single brand object with the same fields as the list endpoint.
| Response field | Where it maps on the site |
|---|---|
code | Brand code used in API filters and external synchronization. |
uuid | Stable brand UUID used to connect products to a brand. |
name | Brand name shown in product cards, product pages, brand filters, and brand pages. |
product_count | Number of products available through the API and linked to this brand. |
updated_at | Brand freshness timestamp for synchronization. |
Changes
Use GET /api/changes for incremental synchronization. Start with a
since timestamp. While has_more is true, pass the returned
next_cursor as the next request's cursor parameter.
Keep the original since, entity, and limit unchanged
throughout the pagination cycle. The same pagination rules apply to GET /api/v2/changes.
| Parameter | Type | Required | Description |
|---|---|---|---|
since | date | Yes, on every page | Return changes after this date. Use ISO 8601 with an explicit timezone, preferably UTC with Z, for example 2026-06-15T00:00:00Z. |
entity | enum | No | product, price, quantity, category, or brand. |
limit | integer | No | 1 to 1000. Default is 100. |
cursor | string | For continuation pages | Copy next_cursor from the previous response. Omit on the first request. Treat it as an opaque value; do not construct or modify it. |
A change notification does not guarantee that the referenced item is still available when you reload it. Handle 404 Not Found by removing the item from your local catalog.
This endpoint does not provide deletion notifications. Products that become unavailable may disappear from subsequent catalog responses without a deleted event. Periodically reconcile your stored catalog with a complete product listing to remove records that are no longer returned.
First page
GET /api/changes?since=2026-06-15T00:00:00Z&entity=product&limit=1
Response status: 200 OK
{
"changes": [
{
"entity": "product",
"action": "updated",
"entity_id": "PRD-001",
"changed_at": "2026-06-15T10:30:00.000000Z",
"fields_changed": ["product"]
}
],
"next_since": "2026-06-15T10:30:00.000000Z",
"next_cursor": "opaque-cursor-from-response",
"has_more": true
}
Next page
In this example, opaque-cursor-from-response represents the actual
next_cursor string returned by the server. URL-encode query parameter values.
GET /api/changes?since=2026-06-15T00:00:00Z&entity=product&limit=1&cursor=opaque-cursor-from-response
Process each page and repeat with its new next_cursor until
has_more is false. A cursor identifies a position within changes that share
the same timestamp, so even more than 1000 changes at the same time can be read in bounded pages.
Two consecutive pages may have the same next_since; this is expected.
After successfully processing all pages, save the last non-empty page's next_since
as the starting since for the next synchronization cycle, without a cursor.
If no changes were returned, keep your existing checkpoint.
Using only next_since to paginate can skip remaining changes with the same timestamp.
| Response field | Where it maps on the site |
|---|---|
changes | List of catalog entities that changed and should be refreshed in your local system. |
entity | Changed entity type: product, price, quantity, category, or brand. |
action | created when the record was created after the original since; otherwise updated. No deletion events are emitted. |
entity_id | Business code of the changed entity. Product, price, and quantity events identify a product; reload price data through the product endpoint. There is no separate price lookup endpoint. |
changed_at | Timestamp of the change in UTC, identified by the Z suffix. |
fields_changed | Identifies the affected data group, for example ["product"]. Reload the corresponding item to obtain its current values. |
next_since | UTC timestamp of the last returned change. Save as a checkpoint after completing the pagination cycle. It is not a page cursor. |
next_cursor | Pass as cursor to continue after the last returned change. Null when the page is empty. |
has_more | When true, request the next page using next_cursor. When false, finish the current cycle. |
Invalid cursors and cursors earlier than since return 400 Bad Request.
Response timestamps stay in UTC regardless of the server's local timezone;
clients do not need to convert them to local time.
Orders
Create order
| Field | Type | Required | Description |
|---|---|---|---|
delivery | string or integer | Yes | standard (1), nova_poshta (2), pickup (3), or muvi_express (4). Numeric values 1–4 and their string equivalents are also accepted. |
payment | string | Yes | cash, card, or online. Numeric payment values are rejected. |
shipping_data | object | No | Optional customer, store, branch, address, city, and recipient data. |
shipping_data.description | string | No | Order comment exported to 1C as text. |
products | array | Yes | 1 to 1000 order lines. |
products.*.ultra_uuid | string | Conditional | Required when ultra_code is not provided. |
products.*.ultra_code | string | Conditional | Required when ultra_uuid is not provided. |
products.*.quantity | integer | Yes | Quantity, minimum 1. |
POST /api/order
All listed shipping fields are optional strings: storeId, filialId, name, phone, city, and recipient allow up to 255 characters; address and description allow 500; client_type allows 10. Product identifiers allow up to 255 characters.
Request body:
{
"delivery": "pickup",
"payment": "cash",
"shipping_data": {
"storeId": "1",
"filialId": "2",
"client_type": "1",
"name": "Customer Name",
"phone": "+37300000000",
"address": "Street 1",
"city": "Chisinau",
"recipient": "Customer Name",
"description": "Order comment for 1C"
},
"products": [
{"ultra_code": "PRD-001", "quantity": 2},
{"ultra_uuid": "product-uuid", "quantity": 1}
]
}
Response status: 200 OK
{
"message": "Order created successfully",
"order_id": 12345
}
| Response field | Where it maps on the site |
|---|---|
message | Human-readable order creation result. |
order_id | Internal order ID used to open the order with GET /api/order/{id} and for support communication. |
The user must have an associated store or supply shipping_data.storeId. Missing shipping fields default to the user’s first store/branch and contact details. Products must be available for ordering and have enough stock. Invalid methods, missing products, or insufficient stock return 400 Bad Request.
The server calculates prices and totals; the client does not supply them. Duplicate product lines are not merged. Submit each product once with its total required quantity.
Read orders
GET /api/orderreturns orders that belong to the authenticated user.GET /api/order/{id}returns one authenticated-user order and includes its items.GET /api/orders/allreturns all orders for administrators, or orders associated with the stores of a dealer/store manager. A dealer or manager with no stores receives an empty array; other roles receive403 Forbidden.
Both list endpoints return plain arrays without pagination. GET /api/order omits user_id, user_name, items, and associated-order identifiers. GET /api/orders/all includes user_id, user_name, ultra_uuid, reserve_ultra_uuid, store_id, and order_code, but omits items. Only the single-order endpoint includes items.
Delivery and payment are returned as stored, without converting codes back to names. For orders created through this API, delivery is 1–4 as listed above and payment is 1 (cash), 2 (card), or 3 (online).
GET /api/order
GET /api/order/12345
GET /api/orders/all
Response status: 200 OK. Example single-order response:
{
"order_id": 12345,
"user_id": 10,
"delivery": 3,
"payment": 1,
"total": 1200.5,
"status": 1,
"created_at": "2026-06-15T10:30:00",
"updated_at": "2026-06-15T10:45:00",
"shipping_data": {
"phone": "+37300000000",
"name": "Customer Name",
"storeId": "1",
"filialId": "2",
"client_type": "1",
"delivery_status": null,
"destination": null
},
"exchange_rate": null,
"items": [
{
"product_ultra_uuid": "product-uuid",
"product_name": "{\"ro\":\"Produs\",\"ru\":\"Product\"}",
"quantity": 2,
"price": 600.25,
"url": "https://eshop.ultra.md/product/prd-001"
}
]
}
| Response field | Where it maps on the site |
|---|---|
order_id | Order ID shown in order history and used for order details. |
user_id, user_name | Customer/dealer owner of the order. Some fields are returned only for detailed or associated-order views. |
delivery | Stored delivery code; API-created orders use 1 standard, 2 nova_poshta, 3 pickup, or 4 muvi_express. |
payment | Stored payment code; API-created orders use 1 cash, 2 card, or 3 online. |
total | Order total shown in order history and order details. |
status | Numeric order status used to render the current order state. |
shipping_data | Delivery/contact data captured during checkout. |
ultra_uuid, reserve_ultra_uuid, store_id, order_code | External/order-system identifiers returned for store-associated order views when available. |
exchange_rate | Exchange rate used for the order when applicable. |
items | Order line items returned by GET /api/order/{id}. |
items.*.product_ultra_uuid | Product UUID for each ordered item. |
items.*.product_name | JSON-encoded string of localized titles, or an empty string if the linked product is unavailable. |
items.*.quantity | Ordered quantity for the item. |
items.*.url | Product page URL, or null when the linked product is unavailable. |
items.*.price | Unit price stored on the order item. |
Health
GET /api/health
Response status: 200 OK
{
"status": "healthy",
"version": "1.0.0",
"timestamp": "2026-06-15T10:30:00",
"services": {
"database": "healthy",
"cache": "healthy",
"auth": "healthy"
},
"uptime_seconds": 1
}
| Response field | Description |
|---|---|
status | Overall API health: healthy or degraded. |
version | Application version configured on the server. |
timestamp | Server-side health check timestamp. |
services.database | Database connectivity status. |
services.cache | Cache service read/write status. |
services.auth | Authentication provider configuration status. |
uptime_seconds | Request/runtime uptime value reported by the application. |
Errors and Status Codes
Error format
{
"message": "Bad Request",
"errors": {
"field": ["Validation message"]
}
}
{
"message": "Invalid or expired token."
}
Status codes
400: validation or business rule error.401: missing, invalid, expired, or revoked token.403: authenticated user is not allowed to access the resource.404: product, category, brand, order, or token was not found.429: rate limit exceeded.500: internal server error.
Integration notes
- Keep access tokens in server-side storage and rotate them through
/auth/refreshbefore expiry. - Use
limitandoffsetfor large catalog reads. For/changes, uselimitandcursor; the maximum page size is 1000. - Prefer
/changesfor regular synchronization instead of repeatedly downloading the full catalog. - Retry
429responses with backoff. Do not retry validation errors without changing the request. - Use stable identifiers:
ultra_codefor business integrations andultra_uuidwhen the UUID is already stored in your system.