Addresses
To get an address by ID, specify the ID of the address in the {id} URI path parameter.
The address ID.
Provide the authorized token for the shopper.
Use the expand query parameter when you want additional fields to appear in the response. The expand query parameter provides more fields in the response. Expanding resources reduces the number of API calls required to accomplish a task.
Specify the fields that you want to appear in the response. Filtering the fields returned in the response can conserve bandwidth and accelerate response time.
Successful response.
- Invalid Token
- Not Found
GET /v1/shoppers/me/addresses/{addressId} HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
"address": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/addresses/1234567890",
"id": 1655007697,
"nickName": "test",
"isDefault": "true",
"firstName": "Jon",
"lastName": "Doe",
"line1": "10380 Bren Road West",
"line2": "text",
"city": "Minnetonka",
"countrySubdivision": "MN",
"postalCode": "55343",
"country": "US",
"countryName": "United States",
"phoneNumber": "952-253-1234",
"phoneticFirstName": "クリス",
"phoneticLastName": "ミラー",
"division": "製品開発"
}
}
To delete the shopper's address, specify the of the address ID in the {id} URI path parameter. No warning message appears if you delete the last address linked to the shopper.
The address ID.
Provide the authorized token for the shopper.
No Content
- Invalid Token
DELETE /v1/shoppers/me/addresses/{addressId} HTTP/1.1
Host: api.digitalriver.com
Accept: */*
No content
Retrieve all addresses configured for a shopper, such as home and work addresses. If you need to access a billing or shipping address, use the methods available in the Carts API.
Provide the authorized token for the shopper.
Use the expand query parameter when you want additional fields to appear in the response. The expand query parameter provides more fields in the response. Expanding resources reduces the number of API calls required to accomplish a task.
Specify the fields that you want to appear in the response. Filtering the fields returned in the response can conserve bandwidth and accelerate response time.
Successful response.
- Invalid Token
GET /v1/shoppers/me/addresses HTTP/1.1
Host: api.digitalriver.com
Accept: */*
{
"addresses": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/addresses",
"address": [
{
"uri": "https://api.digitalriver.com/v1/shoppers/me/addresses/1234567890",
"nickName": "test",
"isDefault": "true"
}
]
}
}
Creates or updates a shopper's address. An address entry must have a unique nickname. If a current address has the same nickname specified in the request, that address is updated; otherwise, a new address is created.
Provide the authorized token for the shopper.
Use the expand query parameter when you want additional fields to appear in the response. The expand query parameter provides more fields in the response. Expanding resources reduces the number of API calls required to accomplish a task.
Specify the fields that you want to appear in the response. Filtering the fields returned in the response can conserve bandwidth and accelerate response time.
No Content
- Invalid Token
- invalid-state-code
- invalid-postal-code
POST /v1/shoppers/me/addresses HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 430
{
"address": {
"nickName": "test",
"isDefault": "true",
"firstName": "Jon",
"lastName": "Doe",
"companyName": "Digital River",
"line1": "10380 Bren Road West",
"line2": "text",
"line3": "text",
"city": "Minnetonka",
"countrySubdivision": "MN",
"postalCode": "55343",
"country": "US",
"countryName": "United States",
"countyName": "Hennepin",
"phoneNumber": "952-253-1234",
"phoneticFirstName": "クリス",
"phoneticLastName": "ミラー",
"division": "製品開発"
}
}
No content
Last updated