Mercadona Warehouse API resolves a public Spanish postcode to a warehouse code. A valid postcode returns a code that works as the wh input on other Mercadona routes.
Send a 5-digit postcode, for example 46001. Costs 1 credit per request; failed requests are free.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
string
Required
Spanish postcode, 5 digits, for example 46001.
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"postcode": "46001",
"warehouse": {
"code": "vlc1"
}
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "warehouse"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
The postcode is missing or invalid. This response is not billable.
{
"errors": {
"postcode": [
"A Spanish postcode is required, e.g. postcode=46001."
]
},
"message": "The request validation failed"
}Upstream Unavailable
The source could not be reached. This response is not billable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "warehouse"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "Mercadona could not be reached. Please retry shortly."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.