latestOpenAPI 3.0.02026-08-101013821017.9 KB

4b69392f93b9

Billing Address

Apply billing address to cart

This resource allows you to apply a postal code to a billing address in the cart.

post/v1/shoppers/me/carts/active/apply-billing-address

Query parameters

tokenstring

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.

Response

Successful response.

OR