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 fieldDescription
access_tokenBearer token used in protected V1 API requests.
refresh_tokenToken used only to request a new access token; expires 1 hour after issuance.
expires_inAccess token lifetime in seconds.
token_typeAlways Bearer.
user_emailEmail of the authenticated account.
user_idInternal 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/tokenNo200 OKCreate access and refresh tokens.
POST/api/auth/refreshNo200 OKRotate refresh token and get a new access token.
POST/api/auth/revokeBearer200 OKRevoke the current or specified access token.
GET/api/healthBearer200 OKCheck API service status.
GET/api/productBearer200 OKList products with filters and pagination.
POST/api/product/batchBearer200 OKFetch products by identifiers.
GET/api/product/{id}Bearer200 OKFetch one product by ultra_code or ultra_uuid.
GET/api/categoryBearer200 OKList categories.
GET/api/category/extra-pricesBearer200 OKList category extra prices for the authenticated user's store.
GET/api/category/{id}Bearer200 OKFetch one category by ultra_code or ultra_uuid.
GET/api/quantityBearer200 OKList product quantities with pagination.
POST/api/quantity/batchBearer200 OKFetch quantities by identifiers.
GET/api/quantity/{id}Bearer200 OKFetch one product quantity.
GET/api/brandBearer200 OKList brands.
GET/api/brand/{id}Bearer200 OKFetch one brand by ultra_code or ultra_uuid.
GET/api/changesBearer200 OKRead incremental catalog changes.
POST/api/orderBearer200 OKCreate an order.
GET/api/orderBearer200 OKList current user's orders.
GET/api/order/{id}Bearer200 OKFetch one current-user order with items.
GET/api/orders/allBearer200 OKList 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 parameterTypeDefaultDescription
categorystringnullCategory ultra_uuid or ultra_code. Matches the directly linked category; descendants are not included automatically.
brandstringnullBrand ultra_uuid or ultra_code.
min_pricenumbernullMinimum Online price, a non-negative number. This filter uses the catalog price rather than your personal price.
max_pricenumbernullMaximum 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_quantityintegernullMinimum quantity, a non-negative integer.
in_stockbooleannullWhen true, returns products with quantity greater than 0.
updated_sincedatenullReturns products updated after this date.
sortenumupdated_at_descprice_asc, price_desc, updated_at_desc, or updated_at (also descending). Price sorting uses the Online catalog price. Sorting by name is currently unavailable.
limitinteger100Page size from 1 to 1000.
offsetinteger0Number 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 fieldWhere it maps on the site
ultra_codePublic product code used by integrations and usually shown as the product code/reference.
ultra_uuidInternal stable product UUID. Use it when your system stores UUID identifiers.
article_codeProduct article/reference. Always included; may be null when no article is assigned.
product_nameJSON-encoded string containing localized titles, for example {"ro":"Produs","ru":"Product"}. Decode the string to access language values.
urlProduct page URL, or null if unavailable.
descriptionMain product description used on the product details page.
description_by_languageLocalized description values for Romanian, Russian, and English when available.
quantityAvailable stock used for availability labels and quantity checks before ordering.
image_urlsNon-empty product gallery image URLs, with the main image first when available.
brand.uuid, brand.nameBrand attached to the product; used for brand filters and brand pages.
category.uuid, category.nameCategory attached to the product; used for category pages, filters, and breadcrumbs.
category.activeBoolean 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.hierarchyCategory tree used to build navigation or breadcrumbs when hierarchy data exists.
user_priceDealer-specific price visible to the authenticated user when configured.
fixed_priceOnline catalog price with currency information; null if unavailable.
promo_b2bB2B promotional price when available. Its presence alone does not indicate an active promotion.
property_groupsGrouped product characteristics/specifications shown on product pages.
updated_at, created_atTimestamps 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 fieldSource and additional fields
user_priceThe user’s assigned price type. Adds price_uuid (price type UUID) and, when available, price_type (price type identifier or label).
fixed_priceOnline price. Adds price_uuid and price_type_uuid, both identifying the Online type.
promo_b2bB2B 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 fieldWhere it maps on the site
uuidStable category UUID used by integrations and product filters.
codeCategory code used in API filters and external catalog synchronization.
nameLocalized category title shown in navigation, category pages, and filters.
product_countNumber of products available through the API and linked directly to this category.
activeCategory activity flag. Included in both GET /api/category and GET /api/category/{id}, independently of include_products.
updated_atCategory freshness timestamp for synchronization.
parent_category_codeParent 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 fieldWhere it maps on the site
categoryCategory to which the store-specific extra price rule applies.
category.activeBoolean 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_extraExtra 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.

EndpointParameters or payloadResponse
GET /api/quantitycategory, low_stock, limit, pagePaginated 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 parameterTypeDefaultDescription
categorystringnullFilter by category ultra_uuid.
low_stockintegernullReturn products with quantity greater than or equal to this value. A value of 0 does not add a quantity filter.
limitinteger100Items per page, from 1 to 1000.
pageinteger1Page 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": "&laquo; 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 &raquo;", "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 fieldWhere it maps on the site
ultra_codeProduct code used to match stock data with products in your system.
product_nameJSON-encoded string of localized product titles, matching the product endpoint’s title format.
quantityAvailable stock used for "in stock" labels, quantity selectors, and order validation.
updated_atLast 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 fieldWhere it maps on the site
codeBrand code used in API filters and external synchronization.
uuidStable brand UUID used to connect products to a brand.
nameBrand name shown in product cards, product pages, brand filters, and brand pages.
product_countNumber of products available through the API and linked to this brand.
updated_atBrand 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.

ParameterTypeRequiredDescription
sincedateYes, on every pageReturn changes after this date. Use ISO 8601 with an explicit timezone, preferably UTC with Z, for example 2026-06-15T00:00:00Z.
entityenumNoproduct, price, quantity, category, or brand.
limitintegerNo1 to 1000. Default is 100.
cursorstringFor continuation pagesCopy 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 fieldWhere it maps on the site
changesList of catalog entities that changed and should be refreshed in your local system.
entityChanged entity type: product, price, quantity, category, or brand.
actioncreated when the record was created after the original since; otherwise updated. No deletion events are emitted.
entity_idBusiness 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_atTimestamp of the change in UTC, identified by the Z suffix.
fields_changedIdentifies the affected data group, for example ["product"]. Reload the corresponding item to obtain its current values.
next_sinceUTC timestamp of the last returned change. Save as a checkpoint after completing the pagination cycle. It is not a page cursor.
next_cursorPass as cursor to continue after the last returned change. Null when the page is empty.
has_moreWhen 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

FieldTypeRequiredDescription
deliverystring or integerYesstandard (1), nova_poshta (2), pickup (3), or muvi_express (4). Numeric values 1–4 and their string equivalents are also accepted.
paymentstringYescash, card, or online. Numeric payment values are rejected.
shipping_dataobjectNoOptional customer, store, branch, address, city, and recipient data.
shipping_data.descriptionstringNoOrder comment exported to 1C as text.
productsarrayYes1 to 1000 order lines.
products.*.ultra_uuidstringConditionalRequired when ultra_code is not provided.
products.*.ultra_codestringConditionalRequired when ultra_uuid is not provided.
products.*.quantityintegerYesQuantity, 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 fieldWhere it maps on the site
messageHuman-readable order creation result.
order_idInternal 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/order returns orders that belong to the authenticated user.
  • GET /api/order/{id} returns one authenticated-user order and includes its items.
  • GET /api/orders/all returns 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 receive 403 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 fieldWhere it maps on the site
order_idOrder ID shown in order history and used for order details.
user_id, user_nameCustomer/dealer owner of the order. Some fields are returned only for detailed or associated-order views.
deliveryStored delivery code; API-created orders use 1 standard, 2 nova_poshta, 3 pickup, or 4 muvi_express.
paymentStored payment code; API-created orders use 1 cash, 2 card, or 3 online.
totalOrder total shown in order history and order details.
statusNumeric order status used to render the current order state.
shipping_dataDelivery/contact data captured during checkout.
ultra_uuid, reserve_ultra_uuid, store_id, order_codeExternal/order-system identifiers returned for store-associated order views when available.
exchange_rateExchange rate used for the order when applicable.
itemsOrder line items returned by GET /api/order/{id}.
items.*.product_ultra_uuidProduct UUID for each ordered item.
items.*.product_nameJSON-encoded string of localized titles, or an empty string if the linked product is unavailable.
items.*.quantityOrdered quantity for the item.
items.*.urlProduct page URL, or null when the linked product is unavailable.
items.*.priceUnit 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 fieldDescription
statusOverall API health: healthy or degraded.
versionApplication version configured on the server.
timestampServer-side health check timestamp.
services.databaseDatabase connectivity status.
services.cacheCache service read/write status.
services.authAuthentication provider configuration status.
uptime_secondsRequest/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/refresh before expiry.
  • Use limit and offset for large catalog reads. For /changes, use limit and cursor; the maximum page size is 1000.
  • Prefer /changes for regular synchronization instead of repeatedly downloading the full catalog.
  • Retry 429 responses with backoff. Do not retry validation errors without changing the request.
  • Use stable identifiers: ultra_code for business integrations and ultra_uuid when the UUID is already stored in your system.