Retrieving addresses from an order

Learn how to retrieve a billing or shipping address from an order.

Retrieving the billing address from an order

To retrieve a billing address, use the GET /shoppers/me/orders/{orderId}/billing-address resource.

URI
Request header
Request body
Response header
Response body
URI
GET shoppers/me/orders/9999999999/billing-address
Request header
Host: api.digitalriver.com
Accept: application/json
Authorization: bearer your_access_token
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Request body
The request body should be empty.
Response header
HTTP/1.1 200 OK
Response body
{"address": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/billing-address",
"id": "billingAddress",
"firstName": "John",
"lastName": "Doe",
"companyName": "null",
"line1": "PO BOX 3940",
"line2": "123",
"line3": null,
"city": "Waconia",
"countrySubdivision": "MN",
"postalCode": "55387",
"country": "US",
"countryName": "United States",
"phoneNumber": "555-555-555"
}}

Retrieving the shipping address from an order

To retrieve a shipping address, use the GET /shoppers/me/orders/{orderId}/shipping-address resource.

URI
Request header
Request body
Response header
Response body
URI
GET shoppers/me/orders/9999999999/shipping-address
Request header
Host: api.digitalriver.com
Accept: application/json
Authorization: bearer your_access_token
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Request body
The request body should be empty.
Response header
HTTP/1.1 200 OK
Response body
{"address": {
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/shippingAddress",
"id": "shippingAddress",
"firstName": "John",
"lastName": "Doe",
"companyName": "null",
"line1": "PO BOX 3940",
"line2": "123",
"line3": null,
"city": "Waconia",
"countrySubdivision": "MN",
"postalCode": "55387",
"country": "US",
"countryName": "United States",
"phoneNumber": "555-555-5555"
}}