Validate zipcode

GET /v1/client/zipcodes/{zipcode}/valid

Path parameters

  • zipcode string Required

    A path-encoded zipcode. We validate it against rules for the country the request is coming from.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

      Hide data attribute Show data attribute object
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

GET /v1/client/zipcodes/{zipcode}/valid
curl \
 -X GET https://api.bitlabs.ai/v1/client/zipcodes/{zipcode}/valid
Response examples (200)
{
  "data": {
    "valid": true
  }
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}