About this endpoint
What it does
Validates a UK postcode by accepting a postcode string in the request body and returning a boolean result indicating whether it exists in the lookup table.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| postcode | String | Yes | Postcode or PIN code; spaces are ignored for matching. |
Response
Returns a JSON object with a data boolean field — true when the postcode exists in the lookup table, false otherwise.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Boolean | Yes | true when the postcode exists in the lookup table. |