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.
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/billing-address' \
--header 'authorization: Basic ***\
...{"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.
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/orders/9999999999/shipping-address' \
--header 'authorization: Basic ***\
...{"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"
}}Last updated
Was this helpful?