# Mercadona Warehouse API Documentation

<p><strong>Mercadona Warehouse API</strong> resolves a public Spanish postcode to a warehouse code. A valid postcode returns a code that works as the <code>wh</code> input on other Mercadona routes.</p><p>Send a 5-digit <code>postcode</code>, for example 46001. Costs 1 credit per request; failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/mercadona-api/mercadona_warehouse](https://scrappa.co/docs/mercadona-api/mercadona_warehouse)
- **API group:** Mercadona API
- **Endpoint:** `GET https://scrappa.co/api/mercadona/warehouse`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `postcode` | string | Yes | Spanish postcode, 5 digits, for example 46001. |

## Example response

```json
{
    "data": {
        "postcode": "46001",
        "warehouse": {
            "code": "vlc1"
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "warehouse"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The postcode is missing or invalid. This response is not billable. |
| 503 | Upstream Unavailable | The source could not be reached. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
