Documentation
Auchan Portugal API reference for 6 operations
Reference for the Auchan Portugal API: what each of its 6 operations' inputs does, how category, promotions and search share one row, and what each returns.
See also: Auchan Portugal API: categories, search, product and store data overview and prices · Auchan Portugal API guide: search and store workflows
On this page
auchan-pt-categories: what a nested category entry carries
Each entry inside a categories row's own children repeats the same shape one level down, with its own category_id, name, url and depth. A subcategory found three levels deep can be read this way, each nested children list carrying further entries the same way, without a separate call for each level in between. depth counts from the top of the tree, distinct from the plain name the entry carries on its own.
parent names the entry body.category resolved to when it was sent. An unrecognised body.category value is rejected rather than answering with an empty tree; cgid, category_id and parent all work as alternative names for it.
Fields in this section (2)
auchan-pt-categories, body.category
auchan-pt-category, auchan-pt-promotions and auchan-pt-search: combining the facet filters
body.brand, body.nutriscore, body.organic and body.national_product all combine on one call to auchan-pt-category or auchan-pt-promotions. The same four inputs combine the same way on auchan-pt-search, narrowing the same result set together rather than requiring a separate call per facet. body.nutriscore only accepts the five letters A through E; any other value is rejected rather than being ignored.
body.organic and body.national_product each take a plain boolean, true keeping only Auchan's own 'Biológico' family or its 'Produto Nacional' label respectively, and biologico and produto_nacional work as alternative names for the two. body.brand matches the brand exactly as Auchan prints it in upper case, such as MIMOSA or NESTLÉ, with marca accepted in its place. Each results row's own labels list carries that row's own label text, separate from whichever of these four facets a call itself filtered by.
body.min_price and body.max_price only accept whole euros, with a value that carries cents rejected outright instead of rounded. body.page and body.per_page are rejected outright, not clamped, when a value falls outside their documented range.
Fields in this section (11)
auchan-pt-category, auchan-pt-promotions, auchan-pt-search, body.brand, body.nutriscore, body.organic, body.national_product, body.min_price, body.max_price, body.page, body.per_page
How auchan-pt-category, auchan-pt-promotions and auchan-pt-search differ in what they require
body.query is required on auchan-pt-search alone; auchan-pt-category and auchan-pt-promotions take no required input at all, so a call to either with every other field left out is still answered rather than rejected, falling back to the default popular sort. auchan-pt-category's own body.category plays the opposite role to body.query on auchan-pt-search: optional rather than required, and matched against a known category id from auchan-pt-categories rather than free text. q, keyword, search and term work as alternative names for body.query.
Both auchan-pt-search and auchan-pt-promotions accept them this way. cgid and category_id work the same way for body.category on all three operations. Required inputs across the six operations take three different shapes.
auchan-pt-search's body.query is free text and auchan-pt-product's body.product_id is a known identifier. auchan-pt-stores's body.latitude and body.longitude are a coordinate pair instead; auchan-pt-categories, auchan-pt-category and auchan-pt-promotions require none of these at all.
Fields in this section (11)
auchan-pt-search, auchan-pt-category, auchan-pt-promotions, auchan-pt-categories, auchan-pt-product, auchan-pt-stores, body.query, body.category, body.product_id, body.latitude, body.longitude
auchan-pt-product: the fields only this operation returns
auchan-pt-product answers with a product object identified by its own product_id, name and brand. short_description carries a brief line while description carries the fuller text for the same product. price is the current price and price_valid_until dates how long it holds, while regular_price and recommended_retail_price give the struck-through promotion price and Auchan's own recommended retail price, PVPR, the way a search row's own fields do, in the currency the product is priced in.
unit_price, unit_price_unit and unit_price_text give the same per-kilogram or per-litre figure a search row's own fields carry. category_id and category_name name the category the product sits in, and url gives its own page address, while images lists its picture URLs. A store object comes back alongside product whether body.store_id was sent or left out, naming the store that price and the other price fields were read from.
Omitting body.store_id returns the online store's own price instead of any physical store's. rating reports the product's own aggregate score, and category_id and category_name together place it in the same category tree auchan-pt-categories returns, so a category_id read here can be sent straight back to that operation or to auchan-pt-category.
Fields in this section (5)
auchan-pt-product, auchan-pt-categories, auchan-pt-category, body.product_id, body.store_id
auchan-pt-stores: reading a store entry and its radius
Each auchan-pt-stores entry's own latitude and longitude give that store's fixed coordinate, separate from the body.latitude and body.longitude point a call searches from; distance and distance_unit give the gap between the two. type names the kind of store it is, and phone and email carry that store's own contact details. total counts every store the search found inside body.radius_km.
That input only accepts 15, 30, 50, 100 or 300; any other distance value is rejected rather than rounded to the closest option. Raising body.radius_km only ever widens which stores a search can return; it has no effect on distance or any other field already on an entry already inside a smaller radius. postal_code, city and locality place that same address within Portugal's own postal and administrative divisions, separate from the plain address line itself.
Fields in this section (4)
auchan-pt-stores, body.latitude, body.longitude, body.radius_km
How the Auchan Portugal API connects store identifiers across auchan-pt-stores and auchan-pt-product
auchan-pt-stores's own store_id is the same value auchan-pt-product's body.store_id accepts, so a store found through one feeds directly into the other without reformatting. auchan-pt-category, auchan-pt-promotions and auchan-pt-search each return their own store object with store_defaulted and resolved_from, naming a store these three resolved on their own rather than one a caller chose; auchan-pt-product's own store object instead simply names whichever store body.store_id sent, or the online store when it was left out. None of auchan-pt-category, auchan-pt-promotions or auchan-pt-search accepts body.store_id itself, so their own row prices always come from whichever store resolved_from names rather than one chosen directly.
Fields in this section (6)
auchan-pt-stores, auchan-pt-product, auchan-pt-category, auchan-pt-promotions, auchan-pt-search, body.store_id
{
"body": {
"product_id": "3010403",
"store_id": "B85"
}
}{
"body": {
"query": "leite",
"min_price": 1,
"max_price": 3,
"sort": "price_asc"
}
}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.
Categories
POST /api/v1/auchan-pt/auchan-pt-categories
Returns Auchan Portugal's category tree, each entry with its own id, name, URL and nested subcategories.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.category | 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/auchan-pt/auchan-pt-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"alimentacao-"}}'Response fields
parenttotal_categoriescategories[]category_idnameurlpathdepthchildren[]
Category browse
POST /api/v1/auchan-pt/auchan-pt-category
Lists Auchan Portugal products in one category, paged, with price, Nutri-Score, organic and national-product filters.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.brand | string | Optional | — | — | — |
body.category | string | Optional | — | — | — |
body.max_price | integer | Optional | — | — | 0–9007199254740991 |
body.min_price | integer | Optional | — | — | 0–9007199254740991 |
body.national_product | boolean | Optional | — | — | — |
body.nutriscore | string | Optional | — | "A""B""C""D""E" | — |
body.organic | boolean | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–2000 |
body.per_page | integer | Optional | 48 | — | 1–100 |
body.sort | string | Optional | "popular" | "popular""relevance""best_seller""price_asc""price_desc""name_asc""name_desc" | — |
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/auchan-pt/auchan-pt-category' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"produtos-lacteos"}}'Response fields
storestore_idstore_namestore_defaultedsourcing_codes[]resolved_from
querycategoryfilterssorttotaltotal_is_exacttotal_notepageper_pagehas_morereturnedresults[]rankproduct_idnamebrandpriceprice_unitprice_textregular_pricerecommended_retail_pricerecommended_retail_price_textdiscount_vs_recommended_textcurrencyon_offerpromotion_windowtextfromto
unit_priceunit_price_unitunit_price_textmin_quantity_textmin_quantity_pricelabels[]category_pathanalytics_priceanalytics_discountimageurl
Product detail
POST /api/v1/auchan-pt/auchan-pt-product
Returns one Auchan Portugal product's price, promotions, order limits, ingredients and nutrition detail by its product id.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.product_id | string | Required | — | — |
body.store_id | 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/auchan-pt/auchan-pt-product' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"product_id":"3010403"}}'Promotions
POST /api/v1/auchan-pt/auchan-pt-promotions
Returns Auchan Portugal products currently on promotion in the online store, optionally narrowed by keyword, category or brand.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.brand | string | Optional | — | — | — |
body.category | string | Optional | — | — | — |
body.max_price | integer | Optional | — | — | 0–9007199254740991 |
body.min_price | integer | Optional | — | — | 0–9007199254740991 |
body.national_product | boolean | Optional | — | — | — |
body.nutriscore | string | Optional | — | "A""B""C""D""E" | — |
body.organic | boolean | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–2000 |
body.per_page | integer | Optional | 48 | — | 1–100 |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "popular" | "popular""relevance""best_seller""price_asc""price_desc""name_asc""name_desc" | — |
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/auchan-pt/auchan-pt-promotions' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"leite"}}'Response fields
storestore_idstore_namestore_defaultedsourcing_codes[]resolved_from
querycategoryfilterssorttotaltotal_is_exacttotal_notepageper_pagehas_morereturnedresults[]rankproduct_idnamebrandpriceprice_unitprice_textregular_pricerecommended_retail_pricerecommended_retail_price_textdiscount_vs_recommended_textcurrencyon_offerpromotion_windowtextfromto
unit_priceunit_price_unitunit_price_textmin_quantity_textmin_quantity_pricelabels[]category_pathanalytics_priceanalytics_discountimageurl
Search
POST /api/v1/auchan-pt/auchan-pt-search
Searches Auchan Portugal's online shop by keyword, with the same price, Nutri-Score and brand filters as category browse.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.brand | string | Optional | — | — | — |
body.category | string | Optional | — | — | — |
body.max_price | integer | Optional | — | — | 0–9007199254740991 |
body.min_price | integer | Optional | — | — | 0–9007199254740991 |
body.national_product | boolean | Optional | — | — | — |
body.nutriscore | string | Optional | — | "A""B""C""D""E" | — |
body.organic | boolean | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–2000 |
body.per_page | integer | Optional | 48 | — | 1–100 |
body.sort | string | Optional | "popular" | "popular""relevance""best_seller""price_asc""price_desc""name_asc""name_desc" | — |
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/auchan-pt/auchan-pt-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"leite"}}'Response fields
storestore_idstore_namestore_defaultedsourcing_codes[]resolved_from
querycategoryfilterssorttotaltotal_is_exacttotal_notepageper_pagehas_morereturnedresults[]rankproduct_idnamebrandpriceprice_unitprice_textregular_pricerecommended_retail_pricerecommended_retail_price_textdiscount_vs_recommended_textcurrencyon_offerpromotion_windowtextfromto
unit_priceunit_price_unitunit_price_textmin_quantity_textmin_quantity_pricelabels[]category_pathanalytics_priceanalytics_discountimageurl
Stores
POST /api/v1/auchan-pt/auchan-pt-stores
Returns Auchan Portugal stores near a point, with distance, delivery types and opening hours.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.latitude | number | Required | — | — | — |
body.longitude | number | Required | — | — | — |
body.radius_km | string | Optional | "30" | "15""30""50""100""300" | — |
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/auchan-pt/auchan-pt-stores' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"latitude":38.75,"longitude":-9.15}}'Response fields
latitudelongituderadius_kmtotalstores[]store_idnametypeaddresspostal_codecitylocalitylatitudelongitudedistancedistance_unitphoneemaildelivery_typesactive_delivery_typesopening_hoursopen_date
How calls work
POST /api/v1/auchan-pt/<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: