> For the complete documentation index, see [llms.txt](https://tech.x2bee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tech.x2bee.com/api/api-en/store-front-api-reference/order-api/cart.md).

# Cart

## Change Cart Item Option

> &#x20; \## Function Description\
> &#x20; \* Changes the option of the selected product.\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* Changes the data corresponding to the \*\*cart number\*\* passed as a parameter\
> &#x20; \* Updates the item number and quantity\
> &#x20; \* If changed to an item already in the cart, deletes the already-existing item and updates by adding the quantities\
> &#x20; \* Validation is performed at call time; the change is not allowed if it fails\
> &#x20; \* Checks product sale status, purchasable quantity, and whether the cart's maximum item count is exceeded\
> \---\
> &#x20; \## Revision History\
> &#x20; \* Release v2.00\_240711: Checks subscription order and gifting usage settings<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/optionChange":{"put":{"tags":["Cart"],"summary":"Change Cart Item Option","description":"  ## Function Description\n  * Changes the option of the selected product.\n  ---\n  ## Detailed Description\n  * Changes the data corresponding to the **cart number** passed as a parameter\n  * Updates the item number and quantity\n  * If changed to an item already in the cart, deletes the already-existing item and updates by adding the quantities\n  * Validation is performed at call time; the change is not allowed if it fails\n  * Checks product sale status, purchasable quantity, and whether the cart's maximum item count is exceeded\n---\n  ## Revision History\n  * Release v2.00_240711: Checks subscription order and gifting usage settings\n","operationId":"optionChangeBasket","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterBasketRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RegisterBasketResponse"}}}},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"RegisterBasketRequest":{"required":["bsketGbCd","bsketInfGbCd","bsketNo","chlDtlNo","chlNo","goodsNo","infDispCtgNo","infDispCtgNoGbCd","itmNo","ordGbCd","repDispCtgNo"],"type":"object","properties":{"bsketNo":{"type":"integer","description":"Cart No.","format":"int64"},"bsketInfGbCd":{"type":"string","description":"OM042 (Cart Entry Type Code)\n 10: BASKET_BUY (Cart Purchase)\n,20: NOW_BUY (Buy Now)\n,30: WISH_BUY (Wishlist Purchase)\n","enum":["BASKET_BUY","NOW_BUY","WISH_BUY"]},"bsketGbCd":{"type":"string","description":"OM001(Cart Type Code)\n 10: HDEL(Parcel Delivery)\n 20: STORE_PICK_UP(In-Store Pickup)\n 30: QUICK_DELIVERY(Quick Delivery)\n 40: REGULAR_DELIVERY(Subscription Order)\n","enum":["HDEL","STORE_PICK_UP","QUICK_DELIVERY","REGULAR_DELIVERY"]},"chlNo":{"type":"string","description":"Channel No."},"chlDtlNo":{"type":"string","description":"Channel Detail No."},"infDispCtgNoGbCd":{"type":"string","description":"OM041(Inflow Display Category No. Type Code)\n 01: DISPLAY_STORE(Display Store)\n,02: EXHIBITIONS(Special Exhibition)\n,06: SEARCH_SALES(Search Sales)\n,07: SEARCH_AD_BANNER(Search Ad Banner)\n,08: FLOATING_BANNER(Floating Banner)\n,09: WISHLIST(Wishlist)\n,10: NONE(No Inflow Display No.)\n","enum":["DISPLAY_STORE","EXHIBITIONS","SEARCH_SALES","SEARCH_AD_BANNER","FLOATING_BANNER","WISHLIST","NONE"]},"infDispCtgNo":{"type":"string","description":"Referral Display Category No."},"repDispCtgNo":{"type":"string","description":"Main Display Category No."},"conrNo":{"type":"string","description":"Corner No."},"goodsNo":{"type":"string","description":"Product No."},"itmNo":{"type":"string","description":"Item No."},"bsketQty":{"minimum":1,"type":"integer","description":"Cart Quantity","format":"int32"},"ordGbCd":{"type":"string","description":"OM002 (Order Classification Code)\n 10: General Order\n , 20: Gift\n , 30: E-Coupon\n , 40: Affiliate\n","enum":["GENERAL_ORDER","GIVE_GIFT_ORDER","E_COUPON","SUBSCRIBE_ORDER"]}},"description":"Cart Registration Request DTO"},"RegisterBasketResponse":{"type":"object","properties":{"bsketNo":{"type":"integer","description":"Cart No.","format":"int64"}},"description":"Cart Registration Response DTO"},"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```

## Delete Cart Item

> &#x20; \## Function Description\
> &#x20; \* Deletes the selected products from the cart.\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* Deletes the data corresponding to the \*\*cart number\*\* passed as a parameter\
> &#x20; \* Updates the order-completed status to 'Y'\
> \---\
> &#x20; \## Revision History\
> &#x20; \* Release v2.00\_240711: Checks subscription order and gifting usage settings<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/deleteBasket":{"put":{"tags":["Cart"],"summary":"Delete Cart Item","description":"  ## Function Description\n  * Deletes the selected products from the cart.\n  ---\n  ## Detailed Description\n  * Deletes the data corresponding to the **cart number** passed as a parameter\n  * Updates the order-completed status to 'Y'\n---\n  ## Revision History\n  * Release v2.00_240711: Checks subscription order and gifting usage settings\n","operationId":"deleteBasket","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasketRequest"}}},"required":true},"responses":{"200":{"description":"Success"},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"BasketRequest":{"required":["bsketNoList"],"type":"object","properties":{"bsketGbCd":{"type":"string","description":"OM001(Cart Type Code)\n 10: HDEL(Parcel Delivery)\n 20: STORE_PICK_UP(In-Store Pickup)\n 30: QUICK_DELIVERY(Quick Delivery)\n 40: REGULAR_DELIVERY(Subscription Order)\n","enum":["HDEL","STORE_PICK_UP","QUICK_DELIVERY","REGULAR_DELIVERY"]},"goodsNo":{"type":"string","description":"Product No."},"itmNo":{"type":"string","description":"Item No."},"bsketNoList":{"type":"array","description":"Cart No. List","items":{"type":"integer","description":"Cart No. List","format":"int64"}}},"description":"Cart Condition DTO"},"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```

## Check Whether Cart Product Is Orderable

> &#x20; \## Function Description\
> &#x20; \* Checks whether the selected cart product data is orderable, when the user clicks Buy Now in the cart, before proceeding to the order form.\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* If validation fails, an error message is displayed in the cart instead of proceeding to the order form.\
> &#x20;   \* Product: product sales status, purchasable quantity, stock, reservation product available date/time, non-member cannot purchase adult products, adult product verification status\
> &#x20;   \* Orderer: purchase-restricted member check, age check\
> &#x20; \---\
> &#x20; \## Revision History\
> &#x20; \* Release v2.00\_240401 : Removed the auto-payment card check when entering the subscription order application form\
> &#x20; \* Release v2.00\_240711: Checks the subscription order and gift settings\
> &#x20; \* Release v2.00\_240729: Added validation for ticket products<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/validateBasket":{"post":{"tags":["Cart"],"summary":"Check Whether Cart Product Is Orderable","description":"  ## Function Description\n  * Checks whether the selected cart product data is orderable, when the user clicks Buy Now in the cart, before proceeding to the order form.\n  ---\n  ## Detailed Description\n  * If validation fails, an error message is displayed in the cart instead of proceeding to the order form.\n    * Product: product sales status, purchasable quantity, stock, reservation product available date/time, non-member cannot purchase adult products, adult product verification status\n    * Orderer: purchase-restricted member check, age check\n  ---\n  ## Revision History\n  * Release v2.00_240401 : Removed the auto-payment card check when entering the subscription order application form\n  * Release v2.00_240711: Checks the subscription order and gift settings\n  * Release v2.00_240729: Added validation for ticket products\n","operationId":"validateBasket","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateBasketRequest"}}},"required":true},"responses":{"200":{"description":"Success"},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"ValidateBasketRequest":{"required":["bsketGbCd","bsketNoList","ordGbCd"],"type":"object","properties":{"ordGbCd":{"type":"string","description":"OM002 (Order Classification Code)\n 10: General Order\n , 20: Gift\n , 30: E-Coupon\n , 40: Affiliate\n","enum":["GENERAL_ORDER","GIVE_GIFT_ORDER","E_COUPON","SUBSCRIBE_ORDER"]},"bsketGbCd":{"type":"string","description":"OM001(Cart Type Code)\n 10: HDEL(Parcel Delivery)\n 20: STORE_PICK_UP(In-Store Pickup)\n 30: QUICK_DELIVERY(Quick Delivery)\n 40: REGULAR_DELIVERY(Subscription Order)\n","enum":["HDEL","STORE_PICK_UP","QUICK_DELIVERY","REGULAR_DELIVERY"]},"bsketNoList":{"type":"array","description":"Cart No. List","items":{"type":"integer","description":"Cart No. List","format":"int64"}}}},"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```

## Add to Cart

> &#x20; \## Function Description\
> &#x20; \* Adds the selected product to the cart.\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* For a non-member's first registration, generates a session number and stores it in a cookie.\
> &#x20; \* Called when Buy Now or Add to Cart is performed.\
> &#x20; \* Validation is performed on call, and registration fails if it does not pass.\
> &#x20;   \* Common: product sales status, purchasable quantity\
> &#x20;   \* Buy Now: product stock, reservation product available date/time, non-member cannot purchase adult products, adult product verification status, whether a shipping fee policy exists, orderer purchase-restricted member status/age\
> &#x20;   \* Add to Cart: whether a shipping fee policy exists, checks whether the maximum cart item count is exceeded\
> &#x20; \---\
> &#x20; \## Special Notes\
> &#x20; \* When a new product is INSERTed in the Buy Now or Add to Cart case, returns the \*\*cart number (BSKET\_NO)\*\* of the INSERTed row (returns NULL when it is an UPDATE of an existing product quantity)\
> &#x20; \* The maximum quantity that can be added to the cart is Reference Value 1 of common code ST002, code "10".\
> &#x20; \* The retention period of a registered cart is Reference Value 1 of common code ST003, code "10". Once the retention period has passed, it is deleted by batch.\
> &#x20; \---\
> &#x20; \## Revision History\
> &#x20; \* Release v2.00\_240711: Checks the subscription order and gift settings\
> &#x20; \* Release v2.00\_240729: Added validation for ticket products<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/registerBasket":{"post":{"tags":["Cart"],"summary":"Add to Cart","description":"  ## Function Description\n  * Adds the selected product to the cart.\n  ---\n  ## Detailed Description\n  * For a non-member's first registration, generates a session number and stores it in a cookie.\n  * Called when Buy Now or Add to Cart is performed.\n  * Validation is performed on call, and registration fails if it does not pass.\n    * Common: product sales status, purchasable quantity\n    * Buy Now: product stock, reservation product available date/time, non-member cannot purchase adult products, adult product verification status, whether a shipping fee policy exists, orderer purchase-restricted member status/age\n    * Add to Cart: whether a shipping fee policy exists, checks whether the maximum cart item count is exceeded\n  ---\n  ## Special Notes\n  * When a new product is INSERTed in the Buy Now or Add to Cart case, returns the **cart number (BSKET_NO)** of the INSERTed row (returns NULL when it is an UPDATE of an existing product quantity)\n  * The maximum quantity that can be added to the cart is Reference Value 1 of common code ST002, code \"10\".\n  * The retention period of a registered cart is Reference Value 1 of common code ST003, code \"10\". Once the retention period has passed, it is deleted by batch.\n  ---\n  ## Revision History\n  * Release v2.00_240711: Checks the subscription order and gift settings\n  * Release v2.00_240729: Added validation for ticket products\n","operationId":"registerBasket","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterBasketRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RegisterBasketResponse"}}}},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"RegisterBasketRequest":{"required":["bsketGbCd","bsketInfGbCd","bsketNo","chlDtlNo","chlNo","goodsNo","infDispCtgNo","infDispCtgNoGbCd","itmNo","ordGbCd","repDispCtgNo"],"type":"object","properties":{"bsketNo":{"type":"integer","description":"Cart No.","format":"int64"},"bsketInfGbCd":{"type":"string","description":"OM042 (Cart Entry Type Code)\n 10: BASKET_BUY (Cart Purchase)\n,20: NOW_BUY (Buy Now)\n,30: WISH_BUY (Wishlist Purchase)\n","enum":["BASKET_BUY","NOW_BUY","WISH_BUY"]},"bsketGbCd":{"type":"string","description":"OM001(Cart Type Code)\n 10: HDEL(Parcel Delivery)\n 20: STORE_PICK_UP(In-Store Pickup)\n 30: QUICK_DELIVERY(Quick Delivery)\n 40: REGULAR_DELIVERY(Subscription Order)\n","enum":["HDEL","STORE_PICK_UP","QUICK_DELIVERY","REGULAR_DELIVERY"]},"chlNo":{"type":"string","description":"Channel No."},"chlDtlNo":{"type":"string","description":"Channel Detail No."},"infDispCtgNoGbCd":{"type":"string","description":"OM041(Inflow Display Category No. Type Code)\n 01: DISPLAY_STORE(Display Store)\n,02: EXHIBITIONS(Special Exhibition)\n,06: SEARCH_SALES(Search Sales)\n,07: SEARCH_AD_BANNER(Search Ad Banner)\n,08: FLOATING_BANNER(Floating Banner)\n,09: WISHLIST(Wishlist)\n,10: NONE(No Inflow Display No.)\n","enum":["DISPLAY_STORE","EXHIBITIONS","SEARCH_SALES","SEARCH_AD_BANNER","FLOATING_BANNER","WISHLIST","NONE"]},"infDispCtgNo":{"type":"string","description":"Referral Display Category No."},"repDispCtgNo":{"type":"string","description":"Main Display Category No."},"conrNo":{"type":"string","description":"Corner No."},"goodsNo":{"type":"string","description":"Product No."},"itmNo":{"type":"string","description":"Item No."},"bsketQty":{"minimum":1,"type":"integer","description":"Cart Quantity","format":"int32"},"ordGbCd":{"type":"string","description":"OM002 (Order Classification Code)\n 10: General Order\n , 20: Gift\n , 30: E-Coupon\n , 40: Affiliate\n","enum":["GENERAL_ORDER","GIVE_GIFT_ORDER","E_COUPON","SUBSCRIBE_ORDER"]}},"description":"Cart Registration Request DTO"},"RegisterBasketResponse":{"type":"object","properties":{"bsketNo":{"type":"integer","description":"Cart No.","format":"int64"}},"description":"Cart Registration Response DTO"},"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```

## Merge Cart

> \## Function Description\
> &#x20; \* When logging in, merges the cart products that were added while not logged in into the logged-in member's cart.\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* Retrieves the non-member cart products using the session number stored in the cookie\
> &#x20; \* Data whose cart entry type code (OM042) is Buy Now is updated with the logged-in member number\
> &#x20; \* Data whose cart entry type code (OM042) is Add to Cart or Wishlist has the existing data deleted and is newly created with the logged-in member's data<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/combineBasket":{"post":{"tags":["Cart"],"summary":"Merge Cart","description":"## Function Description\n  * When logging in, merges the cart products that were added while not logged in into the logged-in member's cart.\n  ---\n  ## Detailed Description\n  * Retrieves the non-member cart products using the session number stored in the cookie\n  * Data whose cart entry type code (OM042) is Buy Now is updated with the logged-in member number\n  * Data whose cart entry type code (OM042) is Add to Cart or Wishlist has the existing data deleted and is newly created with the logged-in member's data\n","operationId":"combineBsket","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"responses":{"200":{"description":"Success"},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```

## Search Total Cart Quantity

> &#x20; \## Function Description\
> &#x20; \* Retrieves the total quantity in the cart for a non-member or the currently logged-in member.\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* For members, retrieved by \*\*member number\*\*\
> &#x20; \* For non-members, retrieved by the \*\*session number\*\* stored in the cookie\
> &#x20; \---\
> &#x20; \## Revision History\
> &#x20; \* Release v2.00\_240425: Added site number to the total cart quantity search condition<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/totBsketCnt":{"get":{"tags":["Cart"],"summary":"Search Total Cart Quantity","description":"  ## Function Description\n  * Retrieves the total quantity in the cart for a non-member or the currently logged-in member.\n  ---\n  ## Detailed Description\n  * For members, retrieved by **member number**\n  * For non-members, retrieved by the **session number** stored in the cookie\n  ---\n  ## Revision History\n  * Release v2.00_240425: Added site number to the total cart quantity search condition\n","operationId":"getBasketTotalCount","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"responses":{"200":{"description":"Success","content":{"*/*":{"schema":{"type":"integer","format":"int32"}}}},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```

## Search Most Recently Added Cart Type (OM001)

> &#x20; \## Function Description\
> &#x20; \* Retrieves the most recently added cart type (OM001).\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* Does not apply to non-members since their carts are not categorized; for members, retrieved by \*\*member number\*\*\
> &#x20; \* Cart data where the order completion status is 'N' and the cart entry type code (OM042) is \[Add to Cart, Wishlist]<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/getRecentBasketType":{"get":{"tags":["Cart"],"summary":"Search Most Recently Added Cart Type (OM001)","description":"  ## Function Description\n  * Retrieves the most recently added cart type (OM001).\n  ---\n  ## Detailed Description\n  * Does not apply to non-members since their carts are not categorized; for members, retrieved by **member number**\n  * Cart data where the order completion status is 'N' and the cart entry type code (OM042) is [Add to Cart, Wishlist]\n","operationId":"getRecentBasketType","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"responses":{"200":{"description":"Success","content":{"*/*":{"schema":{"type":"string"}}}},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```

## Search Cart

> &#x20; \## Function Description\
> &#x20; \* Retrieves the products in the cart.\
> &#x20; \---\
> &#x20; \## Detailed Description\
> &#x20; \* For members, retrieved by \*\*member number\*\*\
> &#x20; \* For non-members, retrieved by the \*\*session number\*\* stored in the cookie\
> &#x20; \* Cart data where the order completion status is 'N' and the cart entry type code (OM042) is \[Add to Cart, Wishlist]\
> &#x20; \* Retrieved grouped by delivery group\
> &#x20; \* Products are sorted with priority given to \*\*1. Center Delivery as the delivery method, 2. Most recently added to cart\*\*, and delivery groups are sorted by the group containing the highest-priority product\
> &#x20; \* For products with the same shipping fee policy number, the shipping fee amount (dlexAmt) is not processed, in order to calculate the conditional free shipping fee based on selection status\
> &#x20; \---\
> &#x20; \## Revision History\
> &#x20; \* Release v2.00\_240425: Added site number to the cart search condition\
> &#x20; \* Release v2.00\_241025: Modified so that the shipping fee is not calculated when a conditional free-shipping product meets the condition<br>

```json
{"openapi":"3.0.1","info":{"title":"X2BEE Order API","version":"v1"},"servers":[{"url":"https://api-order.x2bee.com/api/order/","description":"prd"}],"paths":{"/v1/basket/getBasket":{"get":{"tags":["Cart"],"summary":"Search Cart","description":"  ## Function Description\n  * Retrieves the products in the cart.\n  ---\n  ## Detailed Description\n  * For members, retrieved by **member number**\n  * For non-members, retrieved by the **session number** stored in the cookie\n  * Cart data where the order completion status is 'N' and the cart entry type code (OM042) is [Add to Cart, Wishlist]\n  * Retrieved grouped by delivery group\n  * Products are sorted with priority given to **1. Center Delivery as the delivery method, 2. Most recently added to cart**, and delivery groups are sorted by the group containing the highest-priority product\n  * For products with the same shipping fee policy number, the shipping fee amount (dlexAmt) is not processed, in order to calculate the conditional free shipping fee based on selection status\n  ---\n  ## Revision History\n  * Release v2.00_240425: Added site number to the cart search condition\n  * Release v2.00_241025: Modified so that the shipping fee is not calculated when a conditional free-shipping product meets the condition\n","operationId":"getBasket","parameters":[{"name":"request","in":"query","required":true,"schema":{"$ref":"#/components/schemas/GetBasketRequest"}},{"name":"Authorization","in":"header","description":"Access Token","required":false}],"responses":{"200":{"description":"Success","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BasketResponse"}}}},"900":{"description":"Business processing error details","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Response"}}}}}}}},"components":{"schemas":{"GetBasketRequest":{"required":["bsketGbCd"],"type":"object","properties":{"ordMediaCd":{"type":"string","description":"Order Channel Code"},"bsketGbCd":{"type":"string","description":"Cart Type Code"}}},"BasketResponse":{"type":"object","properties":{"groupList":{"type":"array","description":"Delivery Group List","items":{"$ref":"#/components/schemas/DlvGrpInfo"}},"countList":{"type":"array","description":"Courier Cart Quantity","items":{"$ref":"#/components/schemas/BasketCount"}}},"description":"Search Cart Response DTO"},"DlvGrpInfo":{"required":["basketGoodsList","deliKindCd","deliMethodCd","deliNo","deliProcTypCd","dlvAmtInfoList"],"type":"object","properties":{"dlvpSeq":{"type":"string","description":"Delivery Address Sequence No."},"deliNo":{"type":"string","description":"Combined Delivery No."},"deliKindCd":{"type":"string","description":"LO009(Delivery Type Code)\n 10: NORMAL_DELIVERY(Standard Delivery)\n,20: RESERVATION_DELIVERY(Reserved Delivery)\n","enum":["NORMAL_DELIVERY","RESERVATION_DELIVERY"]},"deliProcTypCd":{"type":"string","description":"PR008 (Delivery Processing Type Code)\n 10: CNTR_DLV (Center Delivery)\n,20: CORP_DLV (Vendor Delivery)\n,30: E_COUPON_DLV (E-Coupon Delivery)\n","enum":["CNTR_DLV","CORP_DLV","E_COUPON_DLV"]},"deliMethodCd":{"type":"string","description":"        LO010 (Delivery Method Code)\n        * 10 : Courier Delivery\n        * 30 : Store Pickup\n        * 40 : Quick Delivery\n        * 50 : Overseas Delivery\n        * 60 : No Delivery\n","enum":["COURIER_DELIVERY","FOUR_PM","STORE_PICK_UP","QUICK_DELIVERY","OVERSEAS_DELIVERY","NON_DELIVERY"]},"basketGoodsList":{"type":"array","description":"Cart Product Information","items":{"$ref":"#/components/schemas/BasketGoods"}},"dlvAmtInfoList":{"type":"array","description":"Delivery Fee Information","items":{"$ref":"#/components/schemas/DlvAmtInfo"}}},"description":"Delivery Group Information DTO"},"BasketGoods":{"type":"object","properties":{"goodsNo":{"type":"string","description":"Product No."},"deliProcTypCd":{"type":"string","description":"PR008 (Delivery Processing Type Code)\n 10: CNTR_DLV (Center Delivery)\n,20: CORP_DLV (Vendor Delivery)\n,30: E_COUPON_DLV (E-Coupon Delivery)\n","enum":["CNTR_DLV","CORP_DLV","E_COUPON_DLV"]},"deliPolcNo":{"type":"string","description":"Delivery Policy No."},"deliNo":{"type":"string","description":"Delivery No."},"entrNo":{"type":"string","description":"Vendor No."},"ordQty":{"type":"integer","description":"Order Quantity","format":"int32"},"salePrc":{"type":"integer","description":"Selling Price","format":"int64"},"dcAmt":{"type":"integer","description":"Discounted Price","format":"int64"},"sysModDtm":{"type":"string","description":"System Modification Time","format":"date-time"},"itmNo":{"type":"string","description":"Item No."},"bsketNo":{"type":"integer","description":"Cart No.","format":"int64"},"chlNo":{"type":"string","description":"Channel No."},"chlDtlNo":{"type":"string","description":"Channel Detail No."},"infDispCtgNoGbCd":{"type":"string","description":"Referral Display Category No. Classification Code (OM041)"},"infDispCtgNo":{"type":"string","description":"Referral Display Category No."},"repDispCtgNo":{"type":"string","description":"Main Display Category No."},"conrNo":{"type":"string","description":"Corner No."},"bsketQty":{"type":"integer","description":"Cart Quantity","format":"int32"},"goodsNm":{"type":"string","description":"Product Name"},"stdCtgNo":{"type":"string","description":"Standard Category No."},"goodsCompCd":{"type":"string","description":"Product Composition Code (PR001)"},"goodsTypCd":{"type":"string","description":"Product Type Code (PR002)"},"saleMethCd":{"type":"string","description":"Sales Method Code (PR003)"},"brandNo":{"type":"string","description":"Brand No."},"brandNm":{"type":"string","description":"Brand Name"},"buyrAgeLmtCd":{"type":"string","description":"Purchase Age Restriction Code"},"dispYn":{"type":"string","description":"Display Status"},"saleStatCd":{"type":"string","description":"Sales Status Code (PR005)"},"saleStrDtm":{"type":"string","description":"Sales Start Date/Time","format":"date-time"},"saleEndDtm":{"type":"string","description":"Sales End Date/Time","format":"date-time"},"buyTypCd":{"type":"string","description":"Purchase Type Code (PR006)"},"taxGbCd":{"type":"string","description":"Tax/Duty-Free Classification Code (PR007)"},"stkMgrYn":{"type":"string","description":"Inventory Management Status"},"buyQtyLmtYn":{"type":"string","description":"Purchase Quantity Limit Status"},"minLmtQty":{"type":"integer","description":"Minimum Limit Quantity","format":"int32"},"maxLmtQty":{"type":"integer","description":"Maximum Limit Quantity","format":"int32"},"safeStkNotiYn":{"type":"string","description":"Safety Stock Alert Status"},"deliGoodsGbCd":{"type":"string","description":"Delivery Product Classification Code (PR010)"},"deliWayCd":{"type":"string","description":"Delivery Method Code (PR009)"},"deliPsbRgnCd":{"type":"string","description":"Deliverable Area Code (PR030)"},"deliDday":{"type":"integer","description":"Delivery Lead Time","format":"int64"},"bpckPsbYn":{"type":"string","description":"Combined Packaging Availability Status"},"rtnPsbYn":{"type":"string","description":"Return Availability Status"},"exchPsbYn":{"type":"string","description":"Exchange Availability Status"},"supPcost":{"type":"integer","description":"Supply Cost","format":"int64"},"norPrc":{"type":"integer","description":"Regular Price","format":"int64"},"preSalePrc":{"type":"integer","description":"Previous Selling Price","format":"int64"},"mrgnRate":{"type":"number","description":"Margin Rate","format":"double"},"payMeanInfo":{"type":"string","description":"Payment Method"},"itmNm":{"type":"string","description":"Item Name"},"stkQty":{"type":"integer","description":"Item Quantity","format":"int64"},"prestNm":{"type":"string","description":"Gift Item Name"},"rsvStrtDtm":{"type":"string","description":"Reservation Start Date/Time","format":"date-time"},"rsvEndDtm":{"type":"string","description":"Reservation End Date/Time","format":"date-time"},"fwdidcPrarDy":{"type":"string","description":"Scheduled Shipment Instruction Date","format":"date"},"hsCd":{"type":"string","description":"Item Classification Code"},"wishYn":{"type":"string","description":"Wishlist Status"},"maxDcAmt":{"type":"integer","description":"Maximum Benefit Amount","format":"int64"},"goodsImg":{"type":"string","description":"Product Image"},"itmSaleStatCd":{"type":"string","description":"Item Sales Status Code (PR005)"},"gvgfPsbYn":{"type":"string","description":"Gift Option Availability Status"},"rglrDeliGoodsYn":{"type":"string","description":"Subscription Delivery Product Status"},"sngGoodsYn":{"type":"string","description":"Single Product Status"},"marketingDisplayNo":{"type":"string","description":"Special Exhibition No."},"entrGoodsNo":{"type":"string","description":"Vendor Product No."},"entrItmNo":{"type":"string","description":"Vendor SKU No."},"ordCnclPsbYn":{"type":"string","description":"Order Cancellation Availability Status"},"wthdYn":{"type":"string","description":"Collection Status"},"frgnDirPurGoodsYn":{"type":"string","description":"Overseas Direct Purchase Product Status"}},"description":"Cart Product DTO"},"DlvAmtInfo":{"required":["aplyAdtnAmt","deliPolcNo","dlexAmt","dlexTypCd","entrNo","ordCostGbCd","stdAdtnAmt"],"type":"object","properties":{"ordCostGbCd":{"type":"string","description":"OM043(Order Cost Type Code)\n 10: Delivery Fee\n , 20: Return Pickup Fee\n , 30: Exchange Delivery Fee\n , 40: Additional Delivery Fee\n","enum":["DELIVERY_FEE","RETURN_FEE","EXCHANGE_FEE","EXTRA_FEE"]},"dlexTypCd":{"type":"string","description":"Delivery Fee Type Code (VD005)","enum":["FREE","CHARGED","CONDITIONAL_FREE"]},"stdAdtnAmt":{"type":"integer","description":"Base Additional Cost Amount","format":"int64"},"dlexAmt":{"type":"integer","description":"Delivery Fee Amount","format":"int64"},"aplyAdtnAmt":{"type":"integer","description":"Applied Additional Cost Amount","format":"int64"},"trdTypCd":{"type":"string","description":"Transaction Type Code (VD002)"},"entrNo":{"type":"string","description":"Vendor No."},"deliPolcNo":{"type":"string","description":"Delivery Policy No."},"dlvBenefitInfo":{"$ref":"#/components/schemas/DlvBenefitInfo"}},"description":"Shipping Fee Info DTO"},"DlvBenefitInfo":{"required":["cpnIsuNo","entrChrgRate","ourChrgRate","promoNm","promoNo","promoTypCd"],"type":"object","properties":{"promoNo":{"type":"string","description":"Promotion No."},"promoNm":{"type":"string","description":"Promotion Name"},"promoTypCd":{"type":"string","description":"Promotion Type Code (MK002)\n 11 : Product Discount Coupon\n , 12 : Cart Coupon\n , 13 : Stackable Discount Coupon\n , 14 : Free Shipping Coupon\n , 15 : Free Return Coupon\n , 20 : Employee Discount\n , 21 : Instant Product Discount\n , 40 : Product Mileage\n","enum":["11","12","13","14","15","20","21","40"]},"ourChrgRate":{"type":"integer","description":"In-House Cost Sharing Ratio","format":"int32"},"entrChrgRate":{"type":"integer","description":"Vendor Cost Sharing Ratio","format":"int32"},"cpnIsuNo":{"type":"string","description":"Coupon Issuance No."},"ordCostGbCd":{"type":"string","description":"Cost Classification Code (OM043)"}},"description":"Shipping Benefit Info","nullable":true},"BasketCount":{"type":"object","properties":{"bsketGbCd":{"type":"string"},"count":{"type":"integer","format":"int32"}},"description":"Courier Cart Quantity"},"Response":{"type":"object","properties":{"timestamp":{"type":"string","description":"result time","format":"date-time"},"code":{"type":"string","description":"result code"},"message":{"type":"string","description":"result message"},"isProcess":{"type":"boolean","description":"process check"},"payload":{"type":"object","description":"payload"},"error":{"type":"boolean","description":"is error"},"errors":{"type":"array","description":"validation error list","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","properties":{"field":{"type":"string","description":"field"},"message":{"type":"string","description":"field message"}},"description":"validation error list"}}}}
```
