Documentation
Altex API reference for every operation
Reference for the Altex API: inputs, defaults, limits and returned fields for category, search, product, review and store operations.
See also: Altex API overview and prices · Altex API guide: workflows across operations
On this page
Altex API: what `altex-availability`'s per-store fields mean
altex-availability identifies the product from body.sku, the value a listing row's own sku field returns, or body.url; a request sending neither is rejected. Two counts summarise the per-store list: one counts every row regardless of stock, and a second narrows that to just the stores currently holding any, so comparing the two says how much of the listed network actually has stock right now rather than merely carrying the product at all.
The quantity on each store row is capped at 6, and a separate figure states that same ceiling; a row whose real count may run higher than the quantity shown is marked rather than left looking exact. Availability on the product record describes the product overall, separately from any one store's own figures, and each store's own network places it into one of three chains this call can return: Altex, Media Galaxy or Brico.
Fields in this section (3)
altex-availability, body.sku, body.url
`altex-categories`: the flattened category tree
altex-categories returns the whole tree flattened into one list rather than nested by level. Each row's own category id identifies it, a parent id names the node directly above it, and a level and a readable path place it within the tree without needing to walk it level by level. The url key on each row is the value to send on to altex-category's own body.category, and each row also carries its own resealed_count.
body.match, left out, returns the tree unfiltered; set it instead and only the rows whose name or path contain that text come back, letting a caller resolve a category by name without first listing everything. A total figure counts every row the call returns, matched or not.
Fields in this section (4)
altex-categories, altex-category, body.match, body.category
`altex-category` and `altex-search`: the shared listing row
altex-category and altex-search return the same listing row shape, described once here:
| Field | What it tells you |
|---|---|
product_id / sku / url / url_key | identifies and links to this one listing |
ean / ean_codes | the barcode numbers this listing is sold under |
title / brand / image | the listing's own display text and photo |
price / was_price | the current selling price and its crossed-out former price |
discount_amount / discount_percent / discount_type | how big the cut is and how it was applied |
recommended_retail_price | the manufacturer's own suggested price for this product |
resealed_from_price / resealed_count | the cheapest resealed unit's price and how many are on offer |
installment_monthly_from | the lowest monthly instalment figure offered on this listing |
in_stock / availability | whether this listing can currently be bought, and how |
store_ids_with_stock | which physical stores currently hold it in stock |
preorder / end_of_life / has_gift | three separate status flags a listing can carry |
seller / seller_ids | which seller's offer is shown, and every seller holding stock |
rating / review_count | the average star rating and how many reviews back it |
Fields in this section (2)
altex-category, altex-search
`altex-category`: browsing one category by slug or URL
altex-category requires one of body.category or body.url; sending neither is rejected, and an unrecognised body.brand slug is rejected too rather than silently listing every brand. Its own total, unlike altex-search's, is exact rather than capped, and a matching flag on this call simply reports that nothing was cut off; page and limit counts describe the listing itself, while a separate flag marks a page sent past the last one.
The category echoed on the reply names the one being browsed, by its own id, name, path and url key, and the facets on the reply list only the brands and categories actually present among the matching rows. body.sort left out defaults to relevance, which behaves the same as best_selling here since a category listing carries no search term for relevance to rank against.
Fields in this section (6)
altex-category, altex-search, body.category, body.url, body.brand, body.sort
`altex-search`: keyword search and its own capped total
altex-search requires body.query, and a request sending it at under 3 characters is rejected. Past 720 matches, this call's own total simply stops climbing; a capped flag marks a reply where more exist beyond that figure, and the same page, limit and past-the-end flags describe only what that capped total can page through.
The search term on the reply echoes the keyword actually matched against, and the facets list the brands and categories present among the matching rows, the same shape altex-category returns for its own one category. Where altex-category lists only the one category named by body.category, altex-search matches body.query across the whole catalogue, so it alone can surface rows drawn from several categories within a single reply.
Fields in this section (4)
altex-search, altex-category, body.query, body.category
Filtering `altex-category` and `altex-search` together
Both calls accept the same body.price_min and body.price_max in RON, combining into a band rather than only the tighter bound; body.in_stock, left out, still lists out-of-stock rows alongside in-stock ones, each with its own price rather than hiding the price when stock is absent. Filtering by body.seller_id never changes which offer a row's own seller block displays; it only decides whether that numeric seller — 1 for Altex, 2 for Media Galaxy, anything else a marketplace account — has stock on the row at all, buy box or not. body.store_id instead keeps rows in stock at one physical store, the same store id altex-stores returns; body.min_rating keeps a floor on the average rating, letting it combine with every other filter here rather than replacing any of them.
Fields in this section (9)
altex-category, altex-search, altex-stores, body.price_min, body.price_max, body.in_stock, body.seller_id, body.store_id, body.min_rating
`altex-product`: the full record
altex-product returns one product's full record on top of every field a listing row already carries:
- offers: each seller's own price, crossed-out price, discount figures, green tax, package price, stock and availability, one entry per seller
- offer counts: every current offer, and that total minus whichever one is shown as the buy box
- a question count: how many questions shoppers have asked about the product
- a rating distribution: the average rating broken down one count per star, 1 through 5
- specifications: the spec sheet, grouped by group, with each entry's own name, value and code
- images, category and category path: the product's own photo set and its position in the category tree
- resealed offers: each resealed unit's own price, discount, reason for its status, and the store holding it by name and address
- services: optional paid extras such as warranty cover, each with its own name and price
- a brand logo image
Either body.sku, the value a listing row's own sku field returns, or body.url points this call at the product; without one of them there is nothing to resolve, and the request fails.
Fields in this section (3)
altex-product, body.sku, body.url
`altex-reviews`: review fields and how filtering differs from elsewhere
altex-reviews takes a product's body.sku, the value a listing row's own sku field returns, or body.url. Each review carries:
- an identifier, a rating, a title and the review's own written text
- an author display alias rather than a full name
- a date, a confirmed-purchase flag, and upvote and downvote counts
- any images attached by the reviewer
- replies, each with its own author, text, date and merchant flag
- a merchant flag on the review itself, separate from the same flag on each reply
body.rating keeps only reviews with exactly that many stars, unlike body.min_rating elsewhere on altex-category and altex-search, which keeps a threshold and everything above it. body.sort orders them recent, the default, or most_helpful; body.page and body.limit page through them, up to 50 per page, and a reply flag marks whether a further page exists. Reviews are shared between the altex and mediagalaxy storefronts, so body.site does not change which ones come back.
Fields in this section (11)
altex-reviews, body.sku, body.url, body.rating, body.min_rating, body.sort, body.page, body.limit, body.site, altex-category, altex-search
`altex-stores`: directory fields and the city, region and network filters
altex-stores lists the chain's own directory. Each store carries:
- a store identifier and a second internal identifier for the same store
- a name, a network, a city, a region and an address
- latitude and longitude
- a phone number and a manager
- a weekly schedule, one entry per day with its own opening and closing time
- whether it ships to store, a URL and an image
body.city and body.region each keep only the stores whose own city or region contains the text sent, case- and accent-insensitive; body.network instead keeps one whole chain — Altex, Media Galaxy or Brico. One total counts only the stores a filter actually matched, while a second counts the whole directory across every network before any narrowing at all.
Fields in this section (4)
altex-stores, body.city, body.region, body.network
Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
Product Availability
POST /api/v1/altex/altex-availability
Looks up per-store stock for one Altex or Media Galaxy product by its code or page URL, store by store.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.site | string | Optional | "altex" | "altex""mediagalaxy" | — |
body.sku | string | Optional | — | — | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altex/altex-availability' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"SMTIP151BL"}}'Response fields
productproduct_idskutitlebrandurlpricecurrencyin_stockavailability
stores[]store_idnamenetworkcityregionaddressqtyqty_cappedphone
stores_listedstore_ids_with_stock_countqty_cap
Category Tree
POST /api/v1/altex/altex-categories
Lists Altex's whole category tree flattened into ids, URL slugs, parent links and depth levels, with an optional name or path match.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.match | string | Optional | — | — | — |
body.site | string | Optional | "altex" | "altex""mediagalaxy" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altex/altex-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"match":"laptop"}}'Category Listing
POST /api/v1/altex/altex-category
Lists the products filed under one Altex category by its slug or URL, with brand, price, stock, seller, store and rating filters.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.brand | string | Optional | — | — | — |
body.category | string | Optional | — | — | — |
body.in_stock | boolean | Optional | false | — | — |
body.limit | integer | Optional | 48 | — | 1–96 |
body.min_rating | integer | Optional | — | — | 1–5 |
body.page | integer | Optional | 1 | — | 1–200 |
body.price_max | integer | Optional | — | — | 0–9007199254740991 |
body.price_min | integer | Optional | — | — | 0–9007199254740991 |
body.seller_id | integer | Optional | — | — | 1–9007199254740991 |
body.site | string | Optional | "altex" | "altex""mediagalaxy" | — |
body.sort | string | Optional | "relevance" | "relevance""best_selling""price_asc""price_desc""name_asc""discount_desc""review_count_desc" | — |
body.store_id | integer | Optional | — | — | 1–9007199254740991 |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altex/altex-category' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"laptop-home","limit":24,"sort":"price_asc"}}'Product Detail
POST /api/v1/altex/altex-product
Returns one Altex product's full record: every seller's offer, specifications, images, resealed units and extra services.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.site | string | Optional | "altex" | "altex""mediagalaxy" | — |
body.sku | string | Optional | — | — | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altex/altex-product' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"sku":"SMTIP151BL"}}'Product Reviews
POST /api/v1/altex/altex-reviews
Returns written customer reviews for one Altex product, filterable by star rating and ordered newest or most helpful first.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.limit | integer | Optional | 20 | — | 1–50 |
body.page | integer | Optional | 1 | — | 1–500 |
body.rating | integer | Optional | — | — | 1–5 |
body.site | string | Optional | "altex" | "altex""mediagalaxy" | — |
body.sku | string | Optional | — | — | — |
body.sort | string | Optional | "recent" | "recent""most_helpful" | — |
body.url | string | Optional | — | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altex/altex-reviews' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"limit":10,"sku":"SMTIP151BL"}}'Product Search
POST /api/v1/altex/altex-search
Searches the Altex and Media Galaxy catalogue by keyword, with the same brand, price, stock, seller, store and rating filters as category listing.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.brand | string | Optional | — | — | — |
body.in_stock | boolean | Optional | false | — | — |
body.limit | integer | Optional | 48 | — | 1–96 |
body.min_rating | integer | Optional | — | — | 1–5 |
body.page | integer | Optional | 1 | — | 1–200 |
body.price_max | integer | Optional | — | — | 0–9007199254740991 |
body.price_min | integer | Optional | — | — | 0–9007199254740991 |
body.seller_id | integer | Optional | — | — | 1–9007199254740991 |
body.site | string | Optional | "altex" | "altex""mediagalaxy" | — |
body.sort | string | Optional | "relevance" | "relevance""best_selling""price_asc""price_desc""name_asc""discount_desc""review_count_desc" | — |
body.store_id | integer | Optional | — | — | 1–9007199254740991 |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altex/altex-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"limit":24,"query":"laptop"}}'Store Directory
POST /api/v1/altex/altex-stores
Lists Altex, Media Galaxy and Brico store locations with address, contact and opening-hours detail, narrowed by city, region or network.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.city | string | Optional | — | — | — |
body.network | string | Optional | — | "altex""media_galaxy""brico" | — |
body.region | string | Optional | — | — | — |
body.site | string | Optional | "altex" | "altex""mediagalaxy" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/altex/altex-stores' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"city":"Bucuresti"}}'How calls work
POST /api/v1/altex/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: