Web Checkout

Use the Web Checkout API to direct a shopper to a Digital River-hosted checkout page to complete the checkout process. For example, use the POST shoppers/me/carts/active/web-checkout API to create a cart and redirect the shopper to the Digital River-hosted Shopping Cart page to check out. The Web Checkout API requires a session token.

Methods


					Host: api.digitalriver.com
User-Agent: API Client/1.0
Accept: */*
			
					The request body should be empty.
			
					HTTP/1.1 302 Moved Temporarily
Location: https://store.digitalriver.com/store?Action=landing_page&Locale=en_US&SiteID=aqued&Token=your_access_token
Content-Length: 0
			
					The response body should be empty.
			
					Host: api.digitalriver.com
User-Agent: API Client/1.0
Accept: */*
Authorization: bearer your_access_token
			
					{
  "webCheckout": {
    "cart": {
      "lineItems": {
        "lineItem": {
          "quantity": "2",
          "product": {
            "id": "your_product_ID"
          }
        }
      }
    }
  }
}
			
					HTTP/1.1 302 Moved Temporarily
Location: https://store.digitalriver.com/store?Action=<landing_page>&Locale=en_US&SiteID=aqued&Token=your_access_token
Content-Length: 0
			
					The response body should be empty.
			

Request Body Parameters

Field Data Type Visibility Description
cart structured default The contents of the shopper's cart.
lineItems collections default A collection of line items. For more information, see the Line Items API.
webCheckout link default A link to direct a shopper to a Digital River-hosted checkout page.