The Address Validation Street Level API can be used to. check addresses against the United States Postal Service database of valid addresses in the U.S. and Puerto Rico.
Address Validation
The Address Validation Street Level API can be used to check addresses against the United States Postal Service database of valid addresses in the U.S. and Puerto Rico.
NOTE: In the Customer Integration Environment, Street Level Address Validation will only produce results for addresses in New York (NY) and California (CA).
path Parameters
query Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
Successful Operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "XAVRequest": {
- "AddressKeyFormat": {
- "ConsigneeName": "RITZ CAMERA CENTERS-1749",
- "BuildingName": "Innoplex",
- "AddressLine": [
- "26601 ALISO CREEK ROAD",
- "STE D",
- "ALISO VIEJO TOWN CENTER"
], - "Region": "ROSWELL,GA,30076-1521",
- "PoliticalDivision2": "ALISO VIEJO",
- "PoliticalDivision1": "CA",
- "PostcodePrimaryLow": "92656",
- "PostcodeExtendedLow": "1521",
- "Urbanization": "porto arundal",
- "CountryCode": "US"
}
}
}
- 200
- 400
- 401
- 403
- 429
{- "XAVResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "ValidAddressIndicator": "string",
- "AmbiguousAddressIndicator": "string",
- "NoCandidatesIndicator": "string",
- "AddressClassification": {
- "Code": "s",
- "Description": "string"
}, - "Candidate": [
- {
- "AddressClassification": {
- "Code": "s",
- "Description": "string"
}, - "AddressKeyFormat": {
- "ConsigneeName": "string",
- "AttentionName": "string",
- "AddressLine": [
- "string"
], - "Region": "string",
- "PoliticalDivision2": "string",
- "PoliticalDivision1": "string",
- "PostcodePrimaryLow": "string",
- "PostcodeExtendedLow": "string",
- "Urbanization": "string",
- "CountryCode": "st"
}
}
]
}
}
Address ValidationDeprecated
The Address Validation Street Level API can be used to check addresses against the United States Postal Service database of valid addresses in the U.S. and Puerto Rico.
path Parameters
requestoption required | integer >= 1 Identifies the optional processing to be performed. If not present or invalid value then an error will be sent back. Valid values:
For a list of valid values, refer to Address Validation API Supported Countries or Territories in the Appendix. |
deprecatedVersion required | string >= 1 Default: "v1" Identifies the version of the API. Valid values:
|
query Parameters
regionalrequestindicator | string >= 1 Valid values: True or False. If True, either the region element or any combination of Political Division 1, Political Division 2, PostcodePrimaryLow and the PostcodeExtendedLow fields will be recognized for validation in addition to the urbanization element. If False or no indicator, street level address validation is provided |
maximumcandidatelistsize | integer >= 1 Valid values: 0 – 50 The maximum number of Candidates to return for this request. If not provided, the default size of 15 is returned. |
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (XAVRequest) | ||||||||||||||||||||||||
|
Successful Operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "XAVRequest": {
- "AddressKeyFormat": {
- "ConsigneeName": "RITZ CAMERA CENTERS-1749",
- "BuildingName": "Innoplex",
- "AddressLine": [
- "26601 ALISO CREEK ROAD",
- "STE D",
- "ALISO VIEJO TOWN CENTER"
], - "Region": "ROSWELL,GA,30076-1521",
- "PoliticalDivision2": "ALISO VIEJO",
- "PoliticalDivision1": "CA",
- "PostcodePrimaryLow": "92656",
- "PostcodeExtendedLow": "1521",
- "Urbanization": "porto arundal",
- "CountryCode": "US"
}
}
}
- 200
- 400
- 401
- 403
- 429
{- "XAVResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "ValidAddressIndicator": "string",
- "AmbiguousAddressIndicator": "string",
- "NoCandidatesIndicator": "string",
- "AddressClassification": {
- "Code": "s",
- "Description": "string"
}, - "Candidate": [
- {
- "AddressClassification": {
- "Code": "s",
- "Description": "string"
}, - "AddressKeyFormat": {
- "ConsigneeName": "string",
- "AttentionName": "string",
- "AddressLine": [
- "string"
], - "Region": "string",
- "PoliticalDivision2": "string",
- "PoliticalDivision1": "string",
- "PostcodePrimaryLow": "string",
- "PostcodeExtendedLow": "string",
- "Urbanization": "string",
- "CountryCode": "st"
}
}
]
}
}