Batch Verification
POST/v1/intl_addver/verifications/batch
Verify a batch of international addresses in a single request. Each address can be freeform or structured, matching the same input formats accepted by the single verification endpoint.
- Uses 1 lookup per address.
- Requires a secret API key.
- Returns results in the same order as the input addresses.
- If an individual address fails, its result will contain an
errorfield rather than averifiedAddress.
Batch Verification
curl https://api.postgrid.com/v1/intl_addver/verifications/batch \
-H 'Content-Type: application/json' \
-H "X-API-Key: $POSTGRID_ADDRESS_VERIFICATION_API_KEY" \
-d '{
"addresses": [
{
"address": {
"country": "country",
"line1": "line1",
"postalOrZip": "postalOrZip",
"provinceOrState": "provinceOrState"
}
}
]
}'{
"data": {
"results": [
{
"error": "error",
"verifiedAddress": {
"city": "city",
"country": "country",
"line1": "line1",
"postalOrZip": "postalOrZip",
"provinceOrState": "provinceOrState",
"countryName": "countryName",
"details": {
"building": "building",
"buildingType": "buildingType",
"cityName": "cityName",
"citySecondary": "citySecondary",
"cityType": "cityType",
"deliveryAddress": "deliveryAddress",
"dependentLocality": "dependentLocality",
"doubleDependentLocality": "doubleDependentLocality",
"organization": "organization",
"postalOrZipPrimary": "postalOrZipPrimary",
"postalOrZipSecondary": "postalOrZipSecondary",
"postBox": "postBox",
"premise": "premise",
"premiseNumber": "premiseNumber",
"premiseSecondary": "premiseSecondary",
"premiseType": "premiseType",
"provinceOrStateName": "provinceOrStateName",
"provinceOrStateType": "provinceOrStateType",
"street": "street",
"streetPostDirection": "streetPostDirection",
"streetPreDirection": "streetPreDirection",
"streetType": "streetType",
"subAdministrativeArea": "subAdministrativeArea",
"subBuilding": "subBuilding",
"SubBuildingFloor": "SubBuildingFloor",
"subBuildingNumber": "subBuildingNumber",
"subBuildingType": "subBuildingType",
"subStreet": "subStreet",
"subStreetPostDirection": "subStreetPostDirection",
"subStreetPreDirection": "subStreetPreDirection",
"subStreetType": "subStreetType",
"superAdministrativeArea": "superAdministrativeArea",
"telephone": "telephone"
},
"errors": {
"city": [
"string"
],
"generic": [
"string"
],
"line1": [
"string"
],
"line2": [
"string"
],
"postalOrZip": [
"string"
],
"provinceOrState": [
"string"
]
},
"firmName": "firmName",
"formattedAddress": "formattedAddress",
"geoData": {
"geoAccuracy": "geoAccuracy",
"latitude": "latitude",
"longitude": "longitude"
},
"line2": "line2",
"line3": "line3",
"status": "verified",
"summary": {
"contextIdentificationMatchLevel": "contextIdentificationMatchLevel",
"lexiconIdentificationMatchLevel": "lexiconIdentificationMatchLevel",
"matchScore": 0,
"message": "message",
"parsingStatus": "parsingStatus",
"postCodeStatus": "postCodeStatus",
"postProcessedVerificationMatchLevel": "postProcessedVerificationMatchLevel",
"preProcessedVerificationMatchLevel": "preProcessedVerificationMatchLevel",
"verificationStatus": "verificationStatus"
},
"zipPlus4": "zipPlus4"
}
}
]
},
"message": "message",
"status": "success"
}Returns Examples
{
"data": {
"results": [
{
"error": "error",
"verifiedAddress": {
"city": "city",
"country": "country",
"line1": "line1",
"postalOrZip": "postalOrZip",
"provinceOrState": "provinceOrState",
"countryName": "countryName",
"details": {
"building": "building",
"buildingType": "buildingType",
"cityName": "cityName",
"citySecondary": "citySecondary",
"cityType": "cityType",
"deliveryAddress": "deliveryAddress",
"dependentLocality": "dependentLocality",
"doubleDependentLocality": "doubleDependentLocality",
"organization": "organization",
"postalOrZipPrimary": "postalOrZipPrimary",
"postalOrZipSecondary": "postalOrZipSecondary",
"postBox": "postBox",
"premise": "premise",
"premiseNumber": "premiseNumber",
"premiseSecondary": "premiseSecondary",
"premiseType": "premiseType",
"provinceOrStateName": "provinceOrStateName",
"provinceOrStateType": "provinceOrStateType",
"street": "street",
"streetPostDirection": "streetPostDirection",
"streetPreDirection": "streetPreDirection",
"streetType": "streetType",
"subAdministrativeArea": "subAdministrativeArea",
"subBuilding": "subBuilding",
"SubBuildingFloor": "SubBuildingFloor",
"subBuildingNumber": "subBuildingNumber",
"subBuildingType": "subBuildingType",
"subStreet": "subStreet",
"subStreetPostDirection": "subStreetPostDirection",
"subStreetPreDirection": "subStreetPreDirection",
"subStreetType": "subStreetType",
"superAdministrativeArea": "superAdministrativeArea",
"telephone": "telephone"
},
"errors": {
"city": [
"string"
],
"generic": [
"string"
],
"line1": [
"string"
],
"line2": [
"string"
],
"postalOrZip": [
"string"
],
"provinceOrState": [
"string"
]
},
"firmName": "firmName",
"formattedAddress": "formattedAddress",
"geoData": {
"geoAccuracy": "geoAccuracy",
"latitude": "latitude",
"longitude": "longitude"
},
"line2": "line2",
"line3": "line3",
"status": "verified",
"summary": {
"contextIdentificationMatchLevel": "contextIdentificationMatchLevel",
"lexiconIdentificationMatchLevel": "lexiconIdentificationMatchLevel",
"matchScore": 0,
"message": "message",
"parsingStatus": "parsingStatus",
"postCodeStatus": "postCodeStatus",
"postProcessedVerificationMatchLevel": "postProcessedVerificationMatchLevel",
"preProcessedVerificationMatchLevel": "preProcessedVerificationMatchLevel",
"verificationStatus": "verificationStatus"
},
"zipPlus4": "zipPlus4"
}
}
]
},
"message": "message",
"status": "success"
}