# Managing web checkout

## Getting web checkout

The [`GET /web-checkout`](https://app.gitbook.com/s/X2fWaY1Kp5sXA1fmOL7z/cart/web-checkout#v1-shoppers-me-carts-active-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.

{% tabs %}
{% tab title="cURL" %}

```
curl --location --request GET 'https://api.digitalriver.com/v1/shoppers/me/carts/active/web-checkout' \
--header 'Content-Type:  application/json' \
--header 'authorization: Basic ***\
```

{% endtab %}
{% endtabs %}

## Creating the cart and transferring the shopper

The [`POST /web-checkout`](https://app.gitbook.com/s/X2fWaY1Kp5sXA1fmOL7z/cart/web-checkout#v1-shoppers-me-carts-active-web-checkout-1) 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.

{% tabs %}
{% tab title="cURL" %}

```
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"
    }
  }
}'
```

{% endtab %}
{% endtabs %}
