---
title: "Merge a guest cart into the authenticated customer cart"
method: POST
path: "/v3/stores/{store_id}/public/cart/merge"
tags: ["Storefront"]
---

# Merge a guest cart into the authenticated customer cart

`POST /v3/stores/{store_id}/public/cart/merge`

## Request

- Base URL: `https://api.scalev.com`
- URL: `https://api.scalev.com/v3/stores/{store_id}/public/cart/merge`
- Auth: HTTP bearer

Public storefront endpoint.

## Response `200`

Merged authenticated customer cart

- StorefrontCartMergeResponse
  - `id` integer
  - `item_count` integer
  - `total` union
    - string
    - number
  - `items` GuestCartItem[]
    - union
      - GuestCartVariantItem
        - `id` integer, required
        - `type` 'variant', required
        - `variant_id` integer, required
        - `bundle_price_option_id` integer, nullable, required
        - `quantity` integer, required
      - GuestCartBundlePriceOptionItem
        - `id` integer, required
        - `type` 'bundle_price_option', required
        - `variant_id` integer, nullable, required
        - `bundle_price_option_id` integer, required
        - `bundle_price_option_slug` string
        - `bundle_price_option_unique_id` string
        - `quantity` integer, required

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/scalev/apis/nexus-commerce-api.md) - [All operations](https://skmtc.dev/scalev/apis/nexus-commerce-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scalev/apis/nexus-commerce-api/revisions/6b9152f04622?raw)
