Skip to main content

Adding Address to Address Book

An address can be created and added to an address book at the same time.

To know more about the address book click here

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 added to your AddressBookId 200",
"AddressId": 181
}