Carts

update Cart

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
    • API key in header X-Storefront-Token
    • or API key in header X-Storefront-Token and API key in header X-Customer-Token

Path parameters

cart_idstring required

Cart identifier

Headers

localestring

Language code for translation or localization. Supported values: zh-hant (Traditional Chinese), zh-cn (Simplified Chinese) and en (English).

Request body

referral_codestring

Referral codes to apply

payment_cod_typestring

Payment cod type

apply_member_pointinteger

Member points to apply

credit_apply_amountinteger

Store credit to apply

countrystring

Country

Example request

{
  "coupon_codes": {
    "value": [
      "coupon200"
    ]
  },
  "referral_code": "kol_doris",
  "payment_cod_type": "NCOD",
  "deliveries": [
    {
      "cart_tag_id": "66b8e0000000000000000000",
      "delivery_option_id": "66c4460f1aaa343261b52ff8",
      "payment_id": "66502b5041dfca0091dd91a8",
      "country": "TW",
      "delivery_data": {
        "sfexpress_type": "centre",
        "pakpobox_type": "smart_locker",
        "location_name": "實體店",
        "store_address_detail": {
          "level_3": "源遠路",
          "level_1": "基隆市",
          "level_2": "暖暖區"
        },
        "target_channel_id": "65a0fecdd910c1008f83b011",
        "district_translations": {
          "en": "Central and Western",
          "zh-hant": "中西區"
        },
        "name_translations": {
          "en": "Unit 01 on the Ground Floor of Lung Fung Group Centre, No. 23 Yip Cheong Street, Fanling, North District, New Territories, Hong Kong^852A^",
          "zh-hant": "香港新界北區粉嶺業暢街23號龍豐集團中心地下G01號舖^852A^"
        },
        "location_code": "852TD"
      }
    }
  ],
  "apply_member_point": 10,
  "credit_apply_amount": 100,
  "country": "TW"
}

Response

OK

trace_idstring

Changes

No recorded changes to this operation across all 1 revision of this API.