LogoLogo
Shopper APIs reference
Shopper APIs reference
  • Shopper APIs reference
  • OAuth
    • Tokens
    • Access tokens
  • Shoppers
    • Shoppers
    • Addresses
    • Payment options
  • Browse (product discovery)
    • Categories
    • Products
    • Product variations
    • Pricing
    • Inventory status
    • Financing
    • Offers
    • Purchase plan
    • Find a purchase plan
    • Authorize a purchase plan
  • Cart
    • Apply a shopper to a cart
    • Line items
    • Billing address
    • Shipping address
    • Payment methods
    • Shipping options
    • Web checkout
    • Submit a cart
    • Apply or detach payment methods
    • Apply a shipping option
    • Carts
    • Cart offers
    • API trigger offer
    • Resume cart
    • Third-party subscription engine
    • Tax registration
    • Price override
  • Orders
    • Orders
    • Order lookup
    • Order address
    • Returns
  • Subscriptions
    • Manage a subscription
    • Manage the subscription's renewal plan
    • Immediate midterm change
    • Payment
    • Address
    • Orders
    • Pending actions
    • Retrieve subscriptions
    • Subscription billing and shipping addresses
Powered by GitBook
On this page
  1. Cart

Web checkout

PreviousShipping optionsNextSubmit a cart

Last updated 10 months ago

  • GETGet web checkout
  • POSTCreate the cart and transfer shopper

Get web checkout

get

Transfer the shopper to the Digital River-hosted storefront pages. The response returns 302 with a location to the Digital River-hosted storefront pages.

Query parameters
tokenstringOptional

Provide the authorized or anonymous token for a shopper.

externalReferenceIdstringOptional

Provide the external reference identifier for your product. The externalReferenceId is your company's internal identifier or stock keeping unit (SKU) for a product.

productIdstringOptional

Provide comma-separated list of one or more product identifiers to include in the response.

themeIdstringOptional

Provide the theme identifier for your site.

Responses
200
Moved temporarily.
401
* Invalid Token
application/json
get
GET /v1/shoppers/me/carts/active/web-checkout HTTP/1.1
Host: api.digitalriver.com
Accept: */*

No content

Create the cart and transfer shopper

post

Create the cart and transfers the shopper to the Digital River-hosted storefront pages. The response returns 302 with a location to the Digital River-hosted storefront pages.

Query parameters
tokenstringOptional

Provide the authorized or anonymous token for a shopper.

externalReferenceIdstringOptional

Provide the external reference identifier for your product. The externalReferenceId is your company's internal identifier or stock keeping unit (SKU) for a product.

productIdstringOptional

Provide comma-separated list of one or more product identifiers to include in the response.

themeIdstringOptional

Provide the theme identifier for your site, as it determines the visual style of your Digital River-hosted web page.

Body
Responses
200
Moved temporarily.
401
* Invalid Token
application/json
post
POST /v1/shoppers/me/carts/active/web-checkout HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 164

{
  "cart": {
    "lineItems": {
      "lineItem": {
        "quantity": "15",
        "product": {
          "id": "12345",
          "externalReferenceId": "12345",
          "companyId": "company"
        }
      }
    },
    "offers": {
      "offerId": "1234567890"
    }
  }
}

No content