Cart
Function Description
Changes the option of the selected product.
Detailed Description
Changes the data corresponding to the cart number passed as a parameter
Updates the item number and quantity
If changed to an item already in the cart, deletes the already-existing item and updates by adding the quantities
Validation is performed at call time; the change is not allowed if it fails
Checks product sale status, purchasable quantity, and whether the cart's maximum item count is exceeded
Revision History
Release v2.00_240711: Checks subscription order and gifting usage settings
Access Token
Cart Registration Request DTO
Cart No.
100000001OM042 (Cart Entry Type Code) 10: BASKET_BUY (Cart Purchase) ,20: NOW_BUY (Buy Now) ,30: WISH_BUY (Wishlist Purchase)
10Possible values: OM001(Cart Type Code) 10: HDEL(Parcel Delivery) 20: STORE_PICK_UP(In-Store Pickup) 30: QUICK_DELIVERY(Quick Delivery) 40: REGULAR_DELIVERY(Subscription Order)
10Possible values: Channel No.
1Channel Detail No.
1OM041(Inflow Display Category No. Type Code) 01: DISPLAY_STORE(Display Store) ,02: EXHIBITIONS(Special Exhibition) ,06: SEARCH_SALES(Search Sales) ,07: SEARCH_AD_BANNER(Search Ad Banner) ,08: FLOATING_BANNER(Floating Banner) ,09: WISHLIST(Wishlist) ,10: NONE(No Inflow Display No.)
10Possible values: Referral Display Category No.
1Main Display Category No.
1Corner No.
1Product No.
100000001Item No.
001Cart Quantity
1OM002 (Order Classification Code) 10: General Order , 20: Gift , 30: E-Coupon , 40: Affiliate
10Possible values: Success
Cart Registration Response DTO
Cart No.
100000001Business processing error details
PUT /api/order/v1/basket/optionChange HTTP/1.1
Host: api-order.x2bee.com/
Content-Type: application/json
Accept: */*
Content-Length: 224
{
"bsketNo": 100000001,
"bsketInfGbCd": "10",
"bsketGbCd": "10",
"chlNo": "1",
"chlDtlNo": "1",
"infDispCtgNoGbCd": "10",
"infDispCtgNo": "1",
"repDispCtgNo": "1",
"conrNo": "1",
"goodsNo": "100000001",
"itmNo": "001",
"bsketQty": 1,
"ordGbCd": "10"
}{
"bsketNo": 100000001
}Access Token
Cart Condition DTO
OM001(Cart Type Code) 10: HDEL(Parcel Delivery) 20: STORE_PICK_UP(In-Store Pickup) 30: QUICK_DELIVERY(Quick Delivery) 40: REGULAR_DELIVERY(Subscription Order)
10Possible values: Product No.
10212309Item No.
001Cart No. List
Success
No content
Business processing error details
PUT /api/order/v1/basket/deleteBasket HTTP/1.1
Host: api-order.x2bee.com/
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"bsketGbCd": "10",
"goodsNo": "10212309",
"itmNo": "001",
"bsketNoList": [
1
]
}No content
Function Description
Checks whether the selected cart product data is orderable, when the user clicks Buy Now in the cart, before proceeding to the order form.
Detailed Description
If validation fails, an error message is displayed in the cart instead of proceeding to the order form.
Product: product sales status, purchasable quantity, stock, reservation product available date/time, non-member cannot purchase adult products, adult product verification status
Orderer: purchase-restricted member check, age check
Revision History
Release v2.00_240401 : Removed the auto-payment card check when entering the subscription order application form
Release v2.00_240711: Checks the subscription order and gift settings
Release v2.00_240729: Added validation for ticket products
Access Token
OM002 (Order Classification Code) 10: General Order , 20: Gift , 30: E-Coupon , 40: Affiliate
10Possible values: OM001(Cart Type Code) 10: HDEL(Parcel Delivery) 20: STORE_PICK_UP(In-Store Pickup) 30: QUICK_DELIVERY(Quick Delivery) 40: REGULAR_DELIVERY(Subscription Order)
10Possible values: Cart No. List
Success
No content
Business processing error details
POST /api/order/v1/basket/validateBasket HTTP/1.1
Host: api-order.x2bee.com/
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"ordGbCd": "10",
"bsketGbCd": "10",
"bsketNoList": [
1
]
}No content
Function Description
Adds the selected product to the cart.
Detailed Description
For a non-member's first registration, generates a session number and stores it in a cookie.
Called when Buy Now or Add to Cart is performed.
Validation is performed on call, and registration fails if it does not pass.
Common: product sales status, purchasable quantity
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
Add to Cart: whether a shipping fee policy exists, checks whether the maximum cart item count is exceeded
Special Notes
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)
The maximum quantity that can be added to the cart is Reference Value 1 of common code ST002, code "10".
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.
Revision History
Release v2.00_240711: Checks the subscription order and gift settings
Release v2.00_240729: Added validation for ticket products
Access Token
Cart Registration Request DTO
Cart No.
100000001OM042 (Cart Entry Type Code) 10: BASKET_BUY (Cart Purchase) ,20: NOW_BUY (Buy Now) ,30: WISH_BUY (Wishlist Purchase)
10Possible values: OM001(Cart Type Code) 10: HDEL(Parcel Delivery) 20: STORE_PICK_UP(In-Store Pickup) 30: QUICK_DELIVERY(Quick Delivery) 40: REGULAR_DELIVERY(Subscription Order)
10Possible values: Channel No.
1Channel Detail No.
1OM041(Inflow Display Category No. Type Code) 01: DISPLAY_STORE(Display Store) ,02: EXHIBITIONS(Special Exhibition) ,06: SEARCH_SALES(Search Sales) ,07: SEARCH_AD_BANNER(Search Ad Banner) ,08: FLOATING_BANNER(Floating Banner) ,09: WISHLIST(Wishlist) ,10: NONE(No Inflow Display No.)
10Possible values: Referral Display Category No.
1Main Display Category No.
1Corner No.
1Product No.
100000001Item No.
001Cart Quantity
1OM002 (Order Classification Code) 10: General Order , 20: Gift , 30: E-Coupon , 40: Affiliate
10Possible values: Success
Cart Registration Response DTO
Cart No.
100000001Business processing error details
POST /api/order/v1/basket/registerBasket HTTP/1.1
Host: api-order.x2bee.com/
Content-Type: application/json
Accept: */*
Content-Length: 224
{
"bsketNo": 100000001,
"bsketInfGbCd": "10",
"bsketGbCd": "10",
"chlNo": "1",
"chlDtlNo": "1",
"infDispCtgNoGbCd": "10",
"infDispCtgNo": "1",
"repDispCtgNo": "1",
"conrNo": "1",
"goodsNo": "100000001",
"itmNo": "001",
"bsketQty": 1,
"ordGbCd": "10"
}{
"bsketNo": 100000001
}Function Description
When logging in, merges the cart products that were added while not logged in into the logged-in member's cart.
Detailed Description
Retrieves the non-member cart products using the session number stored in the cookie
Data whose cart entry type code (OM042) is Buy Now is updated with the logged-in member number
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
Access Token
Success
No content
Business processing error details
POST /api/order/v1/basket/combineBasket HTTP/1.1
Host: api-order.x2bee.com/
Accept: */*
No content
Function Description
Retrieves the total quantity in the cart for a non-member or the currently logged-in member.
Detailed Description
For members, retrieved by member number
For non-members, retrieved by the session number stored in the cookie
Revision History
Release v2.00_240425: Added site number to the total cart quantity search condition
Access Token
Success
Business processing error details
GET /api/order/v1/basket/totBsketCnt HTTP/1.1
Host: api-order.x2bee.com/
Accept: */*
1Function Description
Retrieves the most recently added cart type (OM001).
Detailed Description
Does not apply to non-members since their carts are not categorized; for members, retrieved by member number
Cart data where the order completion status is 'N' and the cart entry type code (OM042) is [Add to Cart, Wishlist]
Access Token
Success
Business processing error details
GET /api/order/v1/basket/getRecentBasketType HTTP/1.1
Host: api-order.x2bee.com/
Accept: */*
textFunction Description
Retrieves the products in the cart.
Detailed Description
For members, retrieved by member number
For non-members, retrieved by the session number stored in the cookie
Cart data where the order completion status is 'N' and the cart entry type code (OM042) is [Add to Cart, Wishlist]
Retrieved grouped by delivery group
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
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
Revision History
Release v2.00_240425: Added site number to the cart search condition
Release v2.00_241025: Modified so that the shipping fee is not calculated when a conditional free-shipping product meets the condition
Access Token
Success
Search Cart Response DTO
Business processing error details
GET /api/order/v1/basket/getBasket?request=[object+Object] HTTP/1.1
Host: api-order.x2bee.com/
Accept: */*
{
"groupList": [
{
"dlvpSeq": "1",
"deliNo": "1",
"deliKindCd": "10",
"deliProcTypCd": "10",
"deliMethodCd": "10",
"basketGoodsList": [
{
"goodsNo": "100000001",
"deliProcTypCd": "10",
"deliPolcNo": "1",
"deliNo": "100000021",
"entrNo": "1000001",
"ordQty": 1,
"salePrc": 15000,
"dcAmt": 3000,
"sysModDtm": "2026-01-01T00:00:00.000Z",
"itmNo": "001",
"bsketNo": 100000001,
"chlNo": "1",
"chlDtlNo": "1",
"infDispCtgNoGbCd": "01",
"infDispCtgNo": "1",
"repDispCtgNo": "1",
"conrNo": "1",
"bsketQty": 1,
"goodsNm": "상품명",
"stdCtgNo": "1",
"goodsCompCd": "10",
"goodsTypCd": "10",
"saleMethCd": "10",
"brandNo": "1",
"brandNm": "브랜드명",
"buyrAgeLmtCd": "0",
"dispYn": "Y",
"saleStatCd": "10",
"saleStrDtm": "2026-01-01T00:00:00.000Z",
"saleEndDtm": "2026-01-01T00:00:00.000Z",
"buyTypCd": "10",
"taxGbCd": "10",
"stkMgrYn": "Y",
"buyQtyLmtYn": "Y",
"minLmtQty": 1,
"maxLmtQty": 10,
"safeStkNotiYn": "Y",
"deliGoodsGbCd": "01",
"deliWayCd": "01",
"deliPsbRgnCd": "01",
"deliDday": 1,
"bpckPsbYn": "Y",
"rtnPsbYn": "Y",
"exchPsbYn": "Y",
"supPcost": 10000,
"norPrc": 20000,
"preSalePrc": 20000,
"mrgnRate": 4,
"payMeanInfo": "11,12,32",
"itmNm": "아이템명1>아이템명2>아이템명3",
"stkQty": 999,
"prestNm": "증정품명",
"rsvStrtDtm": "2026-01-01T00:00:00.000Z",
"rsvEndDtm": "2026-01-01T00:00:00.000Z",
"fwdidcPrarDy": "2026-01-01",
"hsCd": "1",
"wishYn": "Y",
"maxDcAmt": 1000,
"goodsImg": "files/goods/2023/07/04/img",
"itmSaleStatCd": "10",
"gvgfPsbYn": "Y",
"rglrDeliGoodsYn": "Y",
"sngGoodsYn": "Y",
"marketingDisplayNo": "1",
"entrGoodsNo": "100042110583831",
"entrItmNo": "100042110583831001",
"ordCnclPsbYn": "N",
"wthdYn": "N",
"frgnDirPurGoodsYn": "text"
}
],
"dlvAmtInfoList": [
{
"ordCostGbCd": "10",
"dlexTypCd": "10",
"stdAdtnAmt": 20000,
"dlexAmt": 3500,
"aplyAdtnAmt": 20000,
"trdTypCd": "text",
"entrNo": "1000211",
"deliPolcNo": "10000431",
"dlvBenefitInfo": {
"promoNo": "C1000000",
"promoNm": "프로모션 명",
"promoTypCd": "11",
"ourChrgRate": 100,
"entrChrgRate": 0,
"cpnIsuNo": "100000",
"ordCostGbCd": "10"
}
}
]
}
],
"countList": [
{
"bsketGbCd": "text",
"count": 1
}
]
}Last updated