Verify Address
The API for address verification is used to verify the accuracy of a given address. This can include verifying the existence of a specific address, checking its postal code, verifying its format, and verifying that it is a deliverable address.
info
You need to verify the address of a shipper just after adding a shipper
URL Config
Endpoint: https://api.dps.io/api
APIVersion: v1
route: addresses
path: verify-address
Method
POST
URL
https://api.dps.io/api/v1/addresses/verify-address
Request Headers
{
"x-api-key": "<YOUR_API_KEY>",
"Content-Type": "application/json",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
Request Body
{
"Address1": "12575 Placida RD",
"Address2": "Plaicda",
"City": "Placida",
"CompanyName": "My Test Company 1",
"PersonName": "John Doe",
"Phone": "9729729720",
"State": "FL",
"Zip": "33946",
"Provider": "usps"
}
Curl request
curl --location --request POST 'https://api.dps.io/api/v1/addresses/verify-address' \
--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"Address1": "12575 Placida RD",
"Address2": "Plaicda",
"City": "Placida",
"CompanyName": "My Test Company 1",
"PersonName": "John Doe",
"Phone": "9729729720",
"State": "FL",
"Zip": "33946",
"Provider": "usps"
}'
Response
{
"FirmName": "MY TEST COMPANY 1",
"City": "PLACIDA",
"State": "FL",
"Zip5": "33946",
"Zip4": "2135",
"DeliveryPoint": "75",
"CarrierRoute": "R008",
"DPVConfirmation": "Y",
"DPVCMRA": "N",
"DPVFootnotes": "AABB",
"Business": "Y",
"CentralDeliveryPoint": "N",
"Vacant": "N",
"AddressLine1": "12575 PLACIDA RD",
"AddressLine2": "PLAICDA",
"IsAddressChanged": false
}
Error
In case of multiple addresses you will get an error with error code 400