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

장바구니 조회

GET
/storefront/v1/cart

Authorization

headerAuthorizationBearer <JWT>

회원 accessToken

Header Parameters

x-cart-token*string

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X GET 'https://api.sayren.io/storefront/v1/cart' \
  -H 'x-cart-token: string'
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
}