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.
GET /v1/client/zipcodes/{zipcode}/valid
curl \
-X GET https://api.bitlabs.ai/v1/client/zipcodes/{zipcode}/valid \
-H "X-Api-Token: $API_KEY" \
-H "X-User-Id: $API_KEY"
Response examples (200)
{
"data": {
"valid": true
}
}
Response examples (406)
{
"error": {
"details": {
"http": "406 Not Acceptable",
"msg": "vpn detected"
}
}
}