---
title: "Exchange Cart"
method: POST
path: "/carts/exchange"
tags: ["Carts"]
---

# Exchange Cart

`POST /carts/exchange`

Exchange Cart Id

## Request body

- object
  - `owner_type` string — Cart owner type. Must be either `'User'` or `'Guest'` if `owner_id` is provided. Must be empty if `shop_session_id` is provided.
  - `owner_id` string — If `owner_type` is `'User'`, this should be the `user_id`. If `owner_type` is `'Guest'`, this can be any unique value, such as a UUID. and `shop_session_id` cannot be provided at the same time.
  - `shop_session_id` string — If `owner_type` is empty, this should be a third party id, such as facebook psid or sc user id`. `shop_session_id` and `owner_id` cannot be provided at the same time.

## Response `200`

OK

- object
  - `data` object
    - `id` string — Cart identifier
    - `merchant_id` string — Merchant identifier
  - `trace_id` string

---

[API](https://skmtc.net/shoplineapp/apis/shopline-open-api.md) · [All operations](https://skmtc.net/shoplineapp/apis/shopline-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shoplineapp/shopline-open-api/revisions/1675ac12cde7/schema)
