Search…
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
1
GET shoppers/me/orders/9999999999/billing-address
Copied!
1
Host: api.digitalriver.com
2
Accept: application/json
3
Authorization: bearer your_access_token
4
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Copied!
1
The request body should be empty.
Copied!
1
HTTP/1.1 200 OK
Copied!
1
{"address": {
2
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/billing-address",
3
"id": "billingAddress",
4
"firstName": "John",
5
"lastName": "Doe",
6
"companyName": "null",
7
"line1": "PO BOX 3940",
8
"line2": "123",
9
"line3": null,
10
"city": "Waconia",
11
"countrySubdivision": "MN",
12
"postalCode": "55387",
13
"country": "US",
14
"countryName": "United States",
15
"phoneNumber": "555-555-555"
16
}}
Copied!

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
1
GET shoppers/me/orders/9999999999/shipping-address
Copied!
1
Host: api.digitalriver.com
2
Accept: application/json
3
Authorization: bearer your_access_token
4
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
Copied!
1
The request body should be empty.
Copied!
1
HTTP/1.1 200 OK
Copied!
1
{"address": {
2
"uri": "https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/shippingAddress",
3
"id": "shippingAddress",
4
"firstName": "John",
5
"lastName": "Doe",
6
"companyName": "null",
7
"line1": "PO BOX 3940",
8
"line2": "123",
9
"line3": null,
10
"city": "Waconia",
11
"countrySubdivision": "MN",
12
"postalCode": "55387",
13
"country": "US",
14
"countryName": "United States",
15
"phoneNumber": "555-555-5555"
16
}}
Copied!
Last modified 1yr ago