Managing the shipping or billing address

Learn how to manage the shipping or billing address.

Billing addresses

Getting the billing address for an order

You can get the billing address for an order by providing the orderId.

curl --location -g --request GET ' https://api.digitalriver.com/v1/shoppers/me/orders/{orderId}/billing-address' \
--header 'Authorization: Basic Basic {{access_token}}' \
...

See the Billing address for more information

Getting the billing address for a cart

You can get the billing address for a cart.

curl --location -g --request GET 'https://api.digitalriver.com/v1/shoppers/me/carts/active/billing-address' \
--header 'Authorization: Basic {{access_token}}' \
...

See the Billing address for more information.

Adding or updating the cart's billing address

You can update a customer's billing address by including the billing address (billingAddress) object in the payload.

curl --location -g --request PUT 'https://api.digitalriver.com/v1/shoppers/me/carts/active/billing-address' \
--header 'Authorization: Basic {{access_token}}' \
...
--data-raw '{
  "address": {
    "firstName": "John",
    "lastName": "Doe",
    "companyName": "Digital River",
    "line1": "10380 Bren Road West",
    "line2": "string",
    "line3": "string",
    "city": "Minnetonka",
    "countrySubdivision": "MN",
    "postalCode": "55343",
    "country": "US",
    "countryName": "United States",
    "countyName": "Hennepin",
    "phoneNumber": "555-253-1234",
    "emailAddress": "jdoe@digitalriver.com",
    "phoneticFirstName": "クリス",
    "phoneticLastName": "ミラー",
    "division": "製品開発",
    "title": "M"
  }
}'

You will get a 204 No Content response. See the Billing address for more information.

Applying a billing address to a cart

You can apply a customer's billing address to a cart.

curl --location -g --request POST ' https://api.digitalriver.com/v1/shoppers/me/carts/active/apply-billing-address' \
--header 'Authorization: Basic {{access_token}}' \
...

See the Billing address for more information.

Shipping addresses

Getting the shipping address for an order

You can get the shipping address for an order by specifying the orderId.

curl --location -g --request GET ' https://api.digitalriver.com/v1/shoppers/me/orders/{orderId}/shipping-address' \
--header 'Authorization: Basic {{access_token}}' \
...

See the Shipping address for more information.

Getting the shipping address for a cart

You can get the shipping address for a cart.

curl --location -g --request GET ' https://api.digitalriver.com/v1/shoppers/me/carts/active/shipping-address' \
--header 'Authorization: Basic {{access_token}}' \
...

See the Shipping address for more information.

Adding or updating the cart's shipping address

You can add or update a customer's billing or shipping address by including the billing address (billingAddress) or shipping address (shippingAddress) object in the payload.

You will get a 200 Successful response.

curl --location -g --request PUT ' https://api.digitalriver.com/v1/shoppers/me/carts/active/shipping-address' \
--header 'Authorization: Basic {{access_token}}' \
...
--data-raw '{
  "address": {
    "firstName": "John",
    "lastName": "Doe",
    "companyName": "Digital River",
    "line1": "10380 Bren Road West",
    "line2": "string",
    "line3": "string",
    "city": "Minnetonka",
    "countrySubdivision": "MN",
    "postalCode": "55343",
    "country": "US",
    "countryName": "United States",
    "countyName": "Hennepin",
    "phoneNumber": "555-253-1234",
    "emailAddress": "jdoe@digitalriver.com",
    "phoneticFirstName": "クリス",
    "phoneticLastName": "ミラー",
    "division": "製品開発"
  }
}'

You will get a 204 No Content response.

Applying a shipping address to a cart

You can apply a customer's shipping address to a cart.

curl --location -g --request POST ' https://api.digitalriver.com/v1/shoppers/me/carts/active/apply-shipping-address' \
--header 'Authorization: Basic {{access_token}}' \
...