Skip to main content

Update Address by Job hash

If you want to update the existing address of a Job you can do it by using the Job hash. In this section, we will learn about how we can update an address by using jobHash.

URL Config
Endpoint: https://api.dps.io/api
APIVersion: v1
route: address
path: <YOUR_SHIPPER_HASH>/<YOUR_ADDRESS_BOOK_ID>/address
Method
POST
URL
https://api.dps.io/api/v1/addressbook/05K9****************************JG6a/200/address
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
Request Body
{
"AddressLine1": "12575 Placida RD",
"AddressLine2": "Plaicda",
"City": "Placida",
"State": "FL",
"Zip": "33946",
"Country": "US",
"PersonName": "John Doe",
"CompanyName": "My Test Company 2",
"Email": "test@dps.io",
"Phone": "9729729721",
"NftWalletAddress": "string"
}
Curl request
curl --location --request POST 'https://api.dps.io/api/v1/addressbook/05K9****************************JG6a/200/address' \

--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx' \
--header 'ShipperHash: 05K9****************************JG6a' \
--header 'Content-Type: application/json' \
--data-raw '{
"AddressLine1": "12575 Placida RD",
"AddressLine2": "Plaicda",
"City": "Placida",
"State": "FL",
"Zip": "33946",
"Country": "US",
"PersonName": "John Doe",
"CompanyName": "My Test Company 2",
"Email": "test@dps.io",
"Phone": "9729729721",
"NftWalletAddress": "string"
}'
Response
{
"message": "Your address has been update to your AddressBookId 200",
"AddressId": 181
}