Use this method to get the billing address for a cart.
get
/v1/shoppers/me/carts/active/billing-address
Query parameters
tokenstring
Provide the authorized or anonymous token for a shopper.
expandstring
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.
fieldsstring
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.
This resource allows you to change the billing address of a cart. You can use it to replace the default billing address.
put
/v1/shoppers/me/carts/active/billing-address
Query parameters
tokenstring
Provide the authorized or anonymous token for a shopper.
expandstring
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.
fieldsstring
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.
Provide the authorized or anonymous token for a shopper.
countrystring
Provide the two-digit country code (ISO 3166-2). See data.okfn.or/data/core/country-list for a complete list of country codes.
postalCodestring
Provide a country-specific length and format postal code to apply to the shipping address. For United States addresses, Digital River supports ZIP+4 codes. They consist of the last four digits of a full nine-digit ZIP code. A nine-digit ZIP Code has two parts: the initial five digits of the zip code indicating the destination post office or delivery area, and the last four digits representing a specific delivery route within that overall delivery area. When used, the postalCode also retrieves the city and state information required to support tax estimation for a cart.
suggestionIdstring
Provide the identifier of a Billing Address Suggestion resource to apply to the cart's billing address.
expandstring
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.
fieldsstring
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.
Responses
application/json
application/json
application/json
application/json
cURL
JavaScript
Python
HTTP
curl -L \
--request POST \
--url 'https://api.digitalriver.com/v1/shoppers/me/carts/active/apply-billing-address'