Applying a shopper to a cart

Learn how to apply a shopper to a cart.

Applying a shopper to a cart is an essential step in the eCommerce process. It ensures that the shopper's preferences, including their payment method, billing address, and shipping address, are used efficiently during checkout. This guide provides instructions on applying a shopper to an active cart using the information configured for the shopper. Following these instructions can streamline the checkout process and improve the shopping experience.

To apply a shopper to a cart, send POST /shoppers/me/carts/active/apply-shopper request and include the authenticated shopper token {Authenticated_Shopper_Token}. Additionally, you can use the query parameters to add the shopper's configured payment method, billing address, and shipping address for the shopper.

For anonymous shoppers, update the address using the PUT shoppers/me/carts/active/billing-address or PUT shoppers/me/carts/active/shipping-address method in the Billing and Shipping Address API.

curl --location -g --request POST ' https://api.digitalriver.com/v1/shoppers/me/carts/active/apply-shopper' \
--header 'Accept: application/json' \
--header 'Authorization: Basic {Authenticated_Shopper_Token}' \
--header 'Content-Type: application/json'

See the Attaching multiple payment sources section to a cart for more information.

Last updated