Skip to Content
Sayren 유저가이드
장바구니

장바구니 수량 변경

PATCH
/storefront/v1/cart/items/{cartItemId}

Authorization

headerAuthorizationBearer <JWT>

회원 accessToken

Path Parameters

cartItemId*string

Header Parameters

x-cart-token*string

Request Body

application/json
  1. body
quantity?integer
Range1 <= value <= 999
optionId?string
addons?array<>

추가 선택을 통째로 바꾼다. 생략하면 그대로 둔다

Itemsitems <= 20
customInputs?array<>

직접 입력값을 통째로 바꾼다. 생략하면 그대로 둔다

Itemsitems <= 20

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X PATCH 'https://api.sayren.io/storefront/v1/cart/items/string' \
  -H 'x-cart-token: string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response200
{
  "meta": {
    "status": 200,
    "code": "OK",
    "message": "OK",
    "isSuccess": true
  },
  "data": {
    "items": [
      {
        "cartItemId": "string",
        "productId": "string",
        "productNo": null,
        "productName": "string",
        "thumbnailUrl": "http://example.com",
        "optionId": "string",
        "optionName": "string",
        "optionSelections": [],
        "customInputs": [],
        "stay": {
          "checkIn": "string",
          "checkOut": "string",
          "nights": [
            {
              "date": "string",
              "price": 0
            }
          ]
        },
        "quantity": 0,
        "unitPrice": 0,
        "totalPrice": 0,
        "fulfillment": {
          "type": "string",
          "requiresShipping": true,
          "method": "string"
        },
        "purchasable": true,
        "unpurchasableReason": "SOLD_OUT",
        "currency": "KRW",
        "availableInMarket": true
      }
    ],
    "summary": {
      "currency": "KRW",
      "productAmount": 0,
      "deliveryFee": 0,
      "totalAmount": 0,
      "requiresShipping": true
    }
  },
  "error": null
}