---
title: "update Cart"
method: PATCH
path: "/carts/{cart_id}"
tags: ["Carts"]
---

# update Cart

`PATCH /carts/{cart_id}`

## Request

- Base URL: `https://dummyHandle.shoplineapp.com/storefront-api/v1`
- URL: `https://dummyHandle.shoplineapp.com/storefront-api/v1/carts/{cart_id}`
- Auth: one of:
  - API key in header `X-Storefront-Token`
  - API key in header `X-Storefront-Token` and API key in header `X-Customer-Token`

Update Cart

## Path parameters

- `cart_id` string, required

## Headers

- `locale` string

## Request body

- object
  - `coupon_codes` object: List of coupon codes to apply
    - `value` string[]: coupon codes
  - `referral_code` string: Referral codes to apply
  - `payment_cod_type` string: Payment cod type
  - `deliveries` object[]: List of delivery options associated with the cart
    - `cart_tag_id` string, required: Cart tag identifier
    - `delivery_option_id` string: Delivery option identifier
    - `payment_id` string: Payment method identifier
    - `country` string: Delivery country
    - `delivery_data` object: Delivery data
      - `sfexpress_type` string: Delivery data sfexpress type, can be `centre`, `store`, `circlek`, `711` and `eflocker`
      - `pakpobox_type` string: Delivery data pakpobox type
      - `location_name` string: Delivery data location name
      - `store_address` string: Delivery data store address
      - `store_address_detail` object: Delivery data store address detail
        - `level_3` string: Delivery data store address detail level 3
        - `level_1` string: Delivery data store address detail level 1
        - `level_2` string: Delivery data store address detail level 2
      - `target_channel_id` string: Delivery data target channel id
      - `district_translations` object: Delivery data district translations
        - `en` string
        - `zh-hant` string
      - `name_translations` object: Delivery data name translations
        - `en` string
        - `zh-hant` string
      - `location_code` string: Delivery data location code
  - `apply_member_point` integer: Member points to apply
  - `credit_apply_amount` integer: Store credit to apply
  - `country` string: Country

## Response `200`

OK

- object
  - `data` object
    - `success` boolean
    - `error` object, nullable
      - `code` string
      - `reason` string
  - `trace_id` string

---

[API](https://skmtc.dev/shoplineapp/apis/shopline-storefront-api.md) - [All operations](https://skmtc.dev/shoplineapp/apis/shopline-storefront-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shoplineapp/apis/shopline-storefront-api/revisions/8c9cd5ce664d?raw)
