This repository has been archived by the owner on Feb 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Validating a mailing address
JaymeP edited this page Feb 11, 2022
·
3 revisions
Validate an address to ensure that mailings will arrive. Amplify does not store this information; this API integrates with the Lob US Verification API.
Evaluates a single address
object to determine if it is a valid, deliverable, residential address within the United States.
api/lob/addressVerification
Sample query: https://murmuring-headland-63935.herokuapp.com/api/lob/addressVerification
Sample body:
{"line1":"123 Street Name","line2":null,"city":"SomeCity","state":"CA","zip":"12345-6789"}
- Success:
Status 200
. The address is valid as written. - Success:
Status 200
. The address is valid, but there is awarning
, and arevisedAddress
object. Example: The address is deliverable, but suite number "300" does not exist. - Fail:
Status 400
. The address is invalid. Example: The zip code is only 4 digits. - Fail:
Status 400
. The address is not deliverable. Non-residential addresses, PO boxes, and addresses in Puerto Rico are not supported.
- Home
- API Quick Reference
- Amplify API reference
- Lob Mailing API integration
- Stripe API integration