Apply a shopper to a cart

Apply shopper to cart

post

Sets the payment method, billing address, and shipping address for a cart using the information configured for the shopper. Note: Using this method requires an authenticated shopper token. If you need to update the address for an anonymous shopper, use the PUT shoppers/me/carts/active/billing-address or PUT shoppers/me/carts/active/shipping-address method in the Billing and Shipping Address API.

Query parameters
tokenstringOptional

Provide the authorized token for the shopper.

billingAddressIdstringOptional

Provide the identifier for the shopper's address resource associated with their billing address. Digital River uses the shopper's default address if you do not provide a value.

paymentOptionIdstringOptional

Provide the payment option identifier for a payment method. Digital River uses the shopper's payment option if you do not provide a value.

shippingAddressIdstringOptional

Provide the identifier for the shopper's address resource associated with their billing or shipping addresses. Digital River uses the shopper's default address as the shopper's shipping address if you do not provide an identifier for the shopper's billing or shipping address.

expandstringOptional

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.

fieldsstringOptional

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
200

Successful response.

application/json
Responseone of
or
post
/v1/shoppers/me/carts/active/apply-shopper

Last updated