{
  "x402Version": 2,
  "id": 13273,
  "slug": "13273",
  "resource": "https://postcode-api-production.up.railway.app/lookup/validate",
  "description": "Validate a UK postcode and report its normalised form, format validity, and whether it is currently active.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "postcode": "SW1A 1AA"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "active": true,
            "input": "SW1A 1AA",
            "normalized": "SW1A1AA",
            "type": "active",
            "valid_format": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "postcode": {
                    "description": "UK postcode to validate; spacing and case are normalised, e.g. 'SW1A 1AA'.",
                    "type": "string"
                  }
                },
                "required": [
                  "postcode"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "active": {
                    "type": "boolean"
                  },
                  "input": {
                    "type": "string"
                  },
                  "normalized": {
                    "type": "string"
                  },
                  "type": {
                    "description": "One of 'active', 'valid_format_inactive', or 'invalid'.",
                    "type": "string"
                  },
                  "valid_format": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "postcode-api-production.up.railway.app",
  "lastUpdated": "2026-08-28T16:54:19.603Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-28T16:54:24.7Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "postcode-api-production.up.railway.app",
    "manifest_name": "postcode-api-production.up.railway.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}