Returns the list of Mercadona warehouses you can pass as the warehouse parameter on any warehouse-scoped endpoint. There are 274 in total: 7 online hubs with letter codes (such as vlc1 or mad3) and 267 physical stores with 4-digit numeric codes. Each row includes the number of products in that warehouse’s assortment, and hubs also include example postal codes they serve. The list is static and refreshed monthly, so you can cache it on your side.
HTTP Request
GET /warehouses
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
type | string | No | all | Which warehouses to return: all (7 hubs and 267 stores), hub (the 7 hubs only) or store (the 267 store codes only) |
To get the full list of store codes, call /warehouses?type=store. The hubs are also listed in the API overview
.
Response
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
cached_at | string | null | ISO timestamp when the answer came from cache, null when fetched for this request |
data | object | Response payload |
data.items[] | array | One entry per warehouse |
data.items[].warehouse | string | Warehouse code: a hub code (vlc1) or a 4-digit store code (2004). Pass it as warehouse on other endpoints |
data.items[].warehouse_type | string | hub or store |
data.items[].products_count | integer | Number of products in that warehouse’s assortment |
data.items[].example_postal_codes[] | array of strings | Example postal codes served by the hub. Empty list for stores |
data.total | integer | Number of warehouses returned (274 with type=all) |
Unlike the catalog endpoints, /warehouses returns no request_params and no data.resolved_filters.
Error Responses
Invalid input returns HTTP 400 with error as a plain string:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid type | type must be all, hub or store |
Code Examples
| |
| |
| |
Related Endpoints
- Resolve Warehouse : find which warehouse serves a given postal code
- Product Search : search products in a specific warehouse
- Price Drops : current price drops for a warehouse
- Product Details : full product sheet as sold in a warehouse