Skip to main content

Update Address book address

If, You want to update the existing address of an AddressBook you can do it by using the AddressId. In this section, we will learn about how we can update an address by using AddressId.

URL Config
Endpoint: https://api-stage.dps.io/api
APIVersion: v1
route: address
path: addressbook/<YOUR_ADDRESS_BOOK_ID>/address/<YOUR_ADDRESS_ID>
Method
PUT
URL
https://api-stage.dps.io/api/v1/addressbook/<YOUR_ADDRESS_BOOK_ID>/address/<YOUR_ADDRESS_ID>
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
Request Body

{
"IsVerified": true,
"CompanyName": "xyz",
"PersonName": "John doe",
"AddressLine1": "585 OCEAN VIEW BLVD APT 7",
"AddressLine2": " Apt 7",
"City": "PACIFIC GROVE",
"State": "CA",
"Country": "united states",
"Zip": "93950",
"Email": "john@gmail.co",
"Phone": "7171717171"

}
Curl request
curl --location --request PUT 'https://api-stage.dps.io/api/v1/addressbook/<YOUR_ADDRESS_BOOK_ID>/address/<YOUR_ADDRESS_ID>' \

--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx' \
--header 'ShipperHash: 05K9****************************JG6a' \
--header 'Content-Type: application/json' \
--data-raw '{
"IsVerified": true,
"CompanyName": "xyz",
"PersonName": "John doe",
"AddressLine1": "585 OCEAN VIEW BLVD APT 7",
"AddressLine2": " Apt 7",
"City": "PACIFIC GROVE",
"State": "CA",
"Country": "united states",
"Zip": "93950",
"Email": "john@gmail.co",
"Phone": "7171717171"
}'
Response
{
"data": "Your address has been updated successfully."
}