Categories
Returns Auchan Portugal's category tree, each entry with its own id, name, URL and nested subcategories.
Loading / 加载中…
Auchan Portugal API: categories, search, product and store data · E-commerce & marketplace data
The Auchan Portugal API returns the shop's category tree, lists or searches products by keyword with brand, Nutri-Score, organic and national-product filters and a price range, lists products currently on promotion, returns one product's full price, promotion, order-limit and nutrition detail optionally priced for one store, and finds Auchan Portugal stores near a point with their delivery types and opening hours.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Returns Auchan Portugal's category tree, each entry with its own id, name, URL and nested subcategories.
Lists Auchan Portugal products in one category, paged, with price, Nutri-Score, organic and national-product filters.
Returns one Auchan Portugal product's price, promotions, order limits, ingredients and nutrition detail by its product id.
Returns Auchan Portugal products currently on promotion in the online store, optionally narrowed by keyword, category or brand.
Searches Auchan Portugal's online shop by keyword, with the same price, Nutri-Score and brand filters as category browse.
Returns Auchan Portugal stores near a point, with distance, delivery types and opening hours.
auchan-pt-categories arranges its categories list by nesting level rather than as a flat array. Each entry's own children carries further entries one level down, each with the same category_id, name, url and depth as its parent, so the whole menu's shape can be read without a separate call per level. Leaving body.category out on this operation returns the whole tree from the top; passing a category_id taken from anywhere inside children returns only that branch instead.
The same category_id then narrows auchan-pt-category, auchan-pt-promotions and auchan-pt-search through their own body.category, and an unrecognised category_id is rejected on all four operations rather than silently ignored. auchan-pt-categories alone also accepts parent in place of body.category.
Every row auchan-pt-category, auchan-pt-promotions and auchan-pt-search return carries two different reference prices alongside price: regular_price is the struck-through price shown for a running promotion, while recommended_retail_price is Auchan's own recommended retail price, PVPR, a separate figure that does not move with a promotion. on_offer marks a row discounted right now, and promotion_window's own text, from and to date that discount rather than leaving a caller to infer it from regular_price alone. price_unit marks whether price is quoted per unit, un, or per kilogram, kg.
unit_price and unit_price_unit give the per-kilogram or per-litre figure regardless of which price_unit applies. body.min_price and body.max_price only take whole euros: Auchan's own price filter silently ignores a value with cents, so a value with cents is rejected here rather than rounded.
Row data from auchan-pt-category, auchan-pt-promotions and auchan-pt-search all carries a store object ahead of results. store_defaulted shows whether that store was chosen for the caller rather than requested directly, and resolved_from shows how it was resolved. sourcing_codes lists the codes behind that choice.
total reports how many rows match in all, total_is_exact shows whether that count is a precise figure, and total_note carries any further detail about it, while returned reports only the row count on the current page and has_more shows whether a further page exists. body.sort changes which of these rows comes first without changing how many of them there are. popular is the default, relevance ranks by match to body.query or body.category, and best_seller ranks by sales.
The remaining body.sort values rank by plain price or name order instead. sort_by and srule are accepted in place of body.sort.
auchan-pt-product answers a product object built around fields no row from the other operations carries. ean gives the product's barcode; discount_pct compares price against regular_price, while discount_vs_recommended_pct compares it against recommended_retail_price instead, and is_promotion marks that a promotion is running at all. promotions lists each running offer with its own callout, details, class, start and end.
Each is separate from promotion_badges, a plainer list of badge text for the same offers. available and online mark whether the product can be bought at all and whether it can be bought online specifically, and availability_messages carries any further text about that state. min_order_quantity, max_order_quantity and step_quantity bound how many units one order can contain.
min_quantity_text, average_weight, sales_unit, unit_measure and unit_quantity describe the unit a single order actually weighs or measures out to. delivery_estimate and rating round out the product object, and its separate label object carries further nutrition and ingredient text that no search row returns at all.
body.store_id on auchan-pt-product only changes price, not catalogue data. Fields such as name, brand, category_id and images stay identical regardless of which store, or none, is named.
Only price, regular_price and unit_price follow whichever store's price book body.store_id points to, with unit_price_text changing alongside unit_price. promotions and the label object's own ingredients and nutrition_text stay the same no matter which store is named, since a store only ever changes price figures, never the product's own description or label data.
auchan-pt-stores answers each entry with distance and distance_unit measuring how far it sits from the point body.latitude and body.longitude name. Each entry also carries its plain address, postal_code, city and locality. delivery_types shows every delivery method that store supports at all, while active_delivery_types narrows that same set to the ones actually running right now, a distinction delivery_types alone would not show.
opening_hours and open_date round out a store's own schedule and when it first opened. body.radius_km sets how far that search reaches: 15 keeps only the closest stores, 300 reaches the widest area the input accepts, and 30, 50 and 100 sit between the two; radius works as an alternative name for it.
Auchan Portugal was known as Companhia Portuguesa de Hipermercados before the Auchan Group acquired it in 1996, after it had opened its first Jumbo hypermarket in Cascais in 1973. Auchan Retail Portugal later retired the historic Jumbo and Pão de Açúcar store banners, bringing its Portuguese hypermarkets and supermarkets under one Auchan brand name starting in 2019.
{
"body": {
"category": "produtos-lacteos",
"organic": true,
"max_price": 3
}
}POST /api/v1/auchan-pt/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).auchan-pt-search or auchan-pt-category rows and track price, regular_price and on_offer over time.auchan-pt-promotions that record each row's promotion_window and recommended_retail_price_text over repeated calls.auchan-pt-stores for delivery_types, active_delivery_types and opening_hours near a shopper's own point.auchan-pt-product for label.ingredients and label.nutrition_text on one product.auchan-pt-categories' tree and page through auchan-pt-category for each category_id found in it.body.page goes up to 2000 on auchan-pt-category, auchan-pt-promotions and auchan-pt-search, each page holding up to body.per_page's own ceiling of 100 rows.body.min_price and body.max_price only accept whole euros; a value with cents is rejected rather than rounded, matching auchan.pt's own whole-euro price filter.body.query is required on auchan-pt-search, while auchan-pt-category and auchan-pt-promotions take no required input at all.body.store_id is accepted only by auchan-pt-product; none of the row-returning operations take a store id, so their prices are always the online store's own.body.radius_km on auchan-pt-stores only accepts 15, 30, 50, 100 or 300; any other distance value is rejected.Call auchan-pt-categories with no input, or with body.category set to a category_id already returned under children, to return only that branch. The response carries parent, total_categories and a categories list, each entry with its own category_id, name, url, depth and a nested children list repeating the same four fields. cgid, category_id and parent are accepted in place of body.category. Any category_id from this tree works unchanged as body.category on auchan-pt-category, auchan-pt-promotions and auchan-pt-search.
Send the category's category_id as body.category to auchan-pt-category; cgid and category_id are accepted as alternative names. body.page starts at 1 and goes up to 2000, and body.per_page defaults to 48 and goes up to 100, so raising body.page while has_more stays true works through further pages of the same category. body.sort defaults to popular and otherwise takes relevance, best_seller, price_asc, price_desc, name_asc or name_desc. body.brand, body.nutriscore, body.organic and body.national_product narrow the same category further.
Send the keyword as body.query to auchan-pt-search, where it is required; q, keyword, search and term are accepted in its place. The same body.category, body.brand, body.nutriscore, body.organic, body.national_product, body.min_price, body.max_price, body.sort, body.page and body.per_page inputs narrow and page the results exactly as they do on auchan-pt-category, and the two operations return the same results row shape, so one row parser serves both.
Call auchan-pt-promotions with no input to page through the products the online store currently has on promotion, or narrow it with body.query, body.category or body.brand; none of its inputs are required. Each row's on_offer, regular_price and promotion_window carry the offer itself, and recommended_retail_price_text and discount_vs_recommended_text carry the discount worked out against Auchan's own recommended retail price, PVPR, rather than against regular_price.
Send the product_id a row returns as body.product_id to auchan-pt-product; id, pid, url and product_url are accepted in its place, including the product's own full auchan.pt page address. The response's label object carries ingredients, nutrition_text and an attributes list of further label values, alongside the product object's own price, promotion, order-limit and delivery fields.
Yes: pass a store id from auchan-pt-stores as body.store_id on auchan-pt-product, with store and loja accepted in its place, and the returned price follows that store's own price book rather than the online store's. Leaving body.store_id out returns the online store's price, and the response's own store object names which store the price belongs to either way.
Send a point's body.latitude and body.longitude to auchan-pt-stores, both required, with lat accepted for the first and lon, lng or long for the second. body.radius_km narrows or widens the search and takes one of 15, 30, 50, 100 or 300, defaulting to 30 when left out; radius is accepted in its place. Each returned store carries store_id for auchan-pt-product's body.store_id, plus its distance, phone, delivery_types and opening_hours.
body.nutriscore takes a single Nutri-Score letter from A to E, Auchan's own nutrition facet, on auchan-pt-category, auchan-pt-promotions and auchan-pt-search. body.organic set to true keeps only the 'Biológico' family Auchan labels that way, with biologico accepted in its place, and body.national_product set to true keeps only products Auchan itself labels 'Produto Nacional', with produto_nacional accepted in its place. All three combine with body.brand, body.min_price and body.max_price on the same call.