Managing web checkout
Learn how to manage a web checkout.
Getting web checkout
The GET /web-checkout
request transfers the shopper to Digital River-hosted storefront pages. The response returns a 302 Found
with a location to the Digital River-hosted storefront pages.
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/carts/active/web-checkout' \
--header 'Content-Type: application/json' \
--header 'authorization: Basic ***\
Creating the cart and transferring the shopper
The POST /web-checkout
request creates the cart and transfers the shopper to the Digital River-hosted storefront pages. The response returns a 302 Found
with a location to the Digital River-hosted storefront pages.
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/carts/active/web-checkout' \
--header 'authorization: bearer ***\
...
--data-raw '{
"cart": {
"lineItems": {
"lineItem": {
"quantity": "15",
"product": {
"id": "12345",
"externalReferenceId": "12345",
"companyId": "company"
}
}
},
"offers": {
"offerId": "1234567890"
}
}
}'
Last updated
Was this helpful?