# 장바구니에 아이템 채우기 장바구니에 아이템을 채웁니다. 장바구니에 동일한 SKU의 아이템이 이미 있는 경우 기존 아이템은 전달된 값으로 대체됩니다. Endpoint: PUT /v2/project/{project_id}/cart/fill Version: 1.0.0 Security: AuthForClient ## Path parameters: - `project_id` (integer, required) 프로젝트 ID. Example: 44056 ## Request fields (application/json): - `currency` (string) 선호하는 결제 통화입니다. 통화의 3자리 정의가 [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)에 따라 사용됩니다. - `items` (array, required) 아이템 목록입니다. - `items.quantity` (number, required) - `items.sku` (string, required) ## Response 200 fields (application/json): - `cart_id` (string) 장바구니 아이디. Example: "cart_id" - `is_free` (boolean) true이면 장바구니가 무료입니다. - `items` (array) - `items.attributes` (array) 아이템에 해당하는 속성 및 해당 값의 목록입니다. 카탈로그 필터링에 사용할 수 있습니다. Example: {"value":{"external_id":"genre","name":"Жанр","values":[{"external_id":"genre_e3364991f92e751689a68b96598a5a5a84010b85","value":"Casual"},{"external_id":"genre_eba07bfd0f982940773cba3744d97264dd58acd7","value":"Strategy"},{"external_id":"genre_b8d0c6d8f0524c2b2d79ebb93aa3cd0e8b5199a8","value":"Mobile"}]}} - `items.attributes.external_id` (string) 고유한 속성 ID입니다. external_id에는 소문자 라틴 영숫자, 대시 및 밑줄만 포함될 수 있습니다. Example: "attribute_1" - `items.attributes.name` (string) 속성의 이름. Example: "Genre" - `items.attributes.values` (array) - `items.attributes.values.external_id` (string) 속성의 고유 값 ID입니다. external_id에는 소문자 라틴 영숫자, 대시 및 밑줄만 포함될 수 있습니다. Example: "attribute_value" - `items.attributes.values.value` (string) 속성 값. Example: "Strategy" - `items.description` (string) - `items.groups` (array) - `items.groups.external_id` (string) - `items.groups.name` (string) - `items.image_url` (string) - `items.is_free` (boolean) - `items.quantity` (integer) - `items.sku` (string) - `items.type` (string) - `price` (object,null) 장바구니 가격. Example: "{\"amount\":\"6150.0000000000000000\",\"amount_without_discount\":\"6150.0000000000000000\",\"currency\":\"USD\"}" - `price.amount` (string) - `price.amount_without_discount` (string) - `price.currency` (string) - `warnings` (array) Example: [{"attributes":[],"description":"Take it, take it all! All of Xsollas riches in one Mega Booster.","groups":[{"external_id":"powerups","name":"Power Ups"}],"image_url":"https://cdn.xsolla.net/img/misc/images/e9f2f4a634bc96ea03b5d5ceadd7c55f.png","inventory_options":{"consumable":{"usages_count":1}},"is_free":false,"name":"Xsolla Booster Mega","price":{"amount":"50.0000000000000000","amount_without_discount":"100.0000000000000000","currency":"USD"},"quantity":123,"sku":"booster_mega_1","type":"virtual_good","virtual_item_type":"consumable","virtual_prices":[]}] - `warnings.errorCode` (integer) - `warnings.errorMessage` (string)