OrderSheet

Schema

 

임시 주문서

  • tempOrderSheet

  • tempOrderProduct

  • tempOrderProductPriceInfo

  • tempOrderDeliveryFee

 

주문서

  • orderSheet

  • orderer

  • orderAgree

  • orderSheetPriceInfo

  • orderSheetPriceInfoHistory

  • orderProduct

  • orderProductPriceInfo

  • orderProcessHistory

  • payment

    • pg

    • creditCardPayment

    • bankTransferPayment

    • virtualAccountPayment

    • mobilePayment

    • pointPayment

    • giftCardPayment

  • deliveryPlace

  • orderDeliveryFee

  • deliveryDelayNoticeHistory

  • shipment

  • deliveryTracking

 

  • usedCoupon

  • couponHistory

  • pointUseMap

  • pointHistory

 

  • ordersProductOption

  • ordersSiteProductSaleInfo

  • ordersDeliveryBundleGroup

  • ordersProductDeliveryInfo

  • ordersClaimDeliveryInfo

  • ordersProductDeliveryFee

 

 

API

  • 구매

  • 바로구매

  • 임시주문서 조회

  • 임시주문서 계산

  • 임시주문서 검증

  • 결제

 

Definition

  •  

 

구매

  • 장바구니에서 선택한 상품 구매하기

  • 선택한 장바구니 상품으로 임시 주문서 생성

  • 응답결과로 임시주문서 정보 반환

 

POST {{protocol}}://{{hostname}}:{{port}}/svc/order/buy

Parameters:

  • selectedIds : 장바구니 상품 ID 들

Response:

요약본

{ "time": "2021-06-21T06:39:58.399+0000", "result": "200", "resultMessage": "성공", "item": { "id": "a83241ecee8844b8aa9ab5b03cdd1ae8", //<- 임시주문서 ID "preGeneratedOrderSheetId": "2021062115395841147125642", //<- 주문서 ID 선발행 "deliveryGroups": [ { "id": "1014475772", "node": {}, "tempOrderProducts": [ { "id": "352967118", "node": { }, "stockQuantity": { "stockQuantity": 999, "enough": true }, "saleStatus": { "status": "selling" }, "priceCalculator": { }, "name": "BESPOKE 무풍에어컨 클래식 (56.9 ㎡)", "displayData": { "name": "BESPOKE 무풍에어컨 클래식 (56.9 ㎡)", "images": "null", "seller": { "id": "1200000000", "name": "[seller] SAMSUNG" }, "price": { }, "existOption": true, "option": { "name": "White 매립배관", "optionPrice": 50000 } }, "tempOrderDeliveryFeeId": "1014475772" }, { "id": "1486672949", "node": { }, "stockQuantity": { "stockQuantity": 999, "enough": true }, "saleStatus": { "status": "selling" }, "priceCalculator": { }, "name": "무풍에어컨 갤러리 (56.9 ㎡ + 18.7 ㎡)", "displayData": { "name": "무풍에어컨 갤러리 (56.9 ㎡ + 18.7 ㎡)", "images": "null", "seller": { "id": "1200000000", "name": "[seller] SAMSUNG" }, "price": { }, "existOption": true, "option": { "name": "화이트", "optionPrice": 100000 } }, "tempOrderDeliveryFeeId": "1014475772" } ], "totalOrderPrice": 5034000, "deliveryFeeCalculator": { "productDeliveryInfo": { }, "deliveryBundleGroup": { }, "totalSalePrice": 5034000, "totalDiscountSalePrice": 5034000, "totalDiscountPrice": 0, "deliveryPrice": 0, "totalOrderPrice": 5034000, "priceCalculators": [ ], "lowerProducts": [ { "id": "352967118", "node": { }, "stockQuantity": { "stockQuantity": 999, "enough": true }, "saleStatus": { "status": "selling" }, "priceCalculator": { }, "name": "BESPOKE 무풍에어컨 클래식 (56.9 ㎡)", "displayData": { "name": "BESPOKE 무풍에어컨 클래식 (56.9 ㎡)", "images": "null", "seller": { "id": "1200000000", "name": "[seller] SAMSUNG" }, "price": { }, "existOption": true, "option": { "name": "White 매립배관", "optionPrice": 50000 } }, "tempOrderDeliveryFeeId": "1014475772" }, { "id": "1486672949", "node": { }, "stockQuantity": { "stockQuantity": 999, "enough": true }, "saleStatus": { "status": "selling" }, "priceCalculator": { }, "name": "무풍에어컨 갤러리 (56.9 ㎡ + 18.7 ㎡)", "displayData": { "name": "무풍에어컨 갤러리 (56.9 ㎡ + 18.7 ㎡)", "images": "null", "seller": { "id": "1200000000", "name": "[seller] SAMSUNG" }, "price": { }, "existOption": true, "option": { "name": "화이트", "optionPrice": 100000 } }, "tempOrderDeliveryFeeId": "1014475772" } ], "seller": "1200000000", "vendor": "", "couponSection": null, "returnDeliveryPrice": 0, "exchangeDeliveryPrice": 0, "addDeliveryPrice": 0, "allRefundDeliveryPrice": 0, "totalProductOrderPrice": 5034000, "usedCoupon": null, "totalCouponDiscountPrice": 0, "canceledDiscountPrice": 0, "unusedCoupon": [], "result": { "deliveryBundleGroup": { }, "totalSalePrice": 5034000, "deliveryPrice": 0, "totalOrderPrice": 5034000 } } } ], "orderer": { "name": "SAMSUNG TESTER", "email": "tester@naver.com", "cellphone": "010-1234-1234", "birthdate": "" }, "deliveryPlace": null, "customerPayMethod": null, "discount": null, "customerBalancePoint": null, "totalPriceSummary": { "totalSalePrice": 5034000, "totalDeliveryPrice": 0, "totalImmediateDiscountPrice": 0, "totalCouponDiscountPrice": 0, "totalUsedPoint": 0, "totalPaymentPrice": 5034000 } } }
{ "time": "2021-06-21T06:39:58.399+0000", "result": "200", "resultMessage": "성공", "item": { "id": "a83241ecee8844b8aa9ab5b03cdd1ae8", //<- 임시주문서 ID "preGeneratedOrderSheetId": "2021062115395841147125642", //<- 주문서 ID 선발행 "deliveryGroups": [ { "id": "1014475772", "node": { "id": 1014475772, "tempOrderSheet": "a83241ecee8844b8aa9ab5b03cdd1ae8", "deliveryPrice": 0, "productDeliveryInfo": "9191099", "deliveryBundleGroup": "104", "seller": "1200000000" }, "tempOrderProducts": [ { "id": "352967118", "node": { "id": 352967118, "tempOrderSheet": "a83241ecee8844b8aa9ab5b03cdd1ae8", "siteProduct": "136475014", "siteProductName": "BESPOKE 무풍에어컨 클래식 (56.9 ㎡)", "productOption": "919109916", "productOptionName": "White 매립배관", "seller": "1200000000", "tempOrderDeliveryFee": "1014475772", "tempOrderProductPriceInfo": "1662172349" }, "stockQuantity": { "stockQuantity": 999, "enough": true }, "saleStatus": { "status": "selling" }, "priceCalculator": { "quantity": 1, "salePrice": 2435000, "optionPrice": 50000, "totalSalePrice": 2485000, "immediateDiscountPrice": 0, "immediateDiscountSalePrice": 2435000, "totalImmediateDiscountPrice": 0, "totalImmediateDiscountSalePrice": 2485000, "totalProductCouponDiscountPrice": 0, "productCouponDiscountPrice": 0, "canceledProductCouponDiscountPrice": 0, "promotionDiscountPrice": 0, "totalDiscountPrice": 0, "totalOrderPrice": 2485000, "totalPaymentPrice": 2485000, "couponSection": null, "usedCoupon": null, "canceledDiscountPrice": 0, "unusedCoupon": [], "applicationDiscountPrice": 0 }, "name": "BESPOKE 무풍에어컨 클래식 (56.9 ㎡)", "displayData": { "name": "BESPOKE 무풍에어컨 클래식 (56.9 ㎡)", "images": "null", "seller": { "id": "1200000000", "name": "[seller] SAMSUNG" }, "price": { "quantity": 1, "salePrice": 2435000, "optionPrice": 50000, "totalSalePrice": 2485000, "immediateDiscountPrice": 0, "immediateDiscountSalePrice": 2435000, "totalImmediateDiscountPrice": 0, "totalImmediateDiscountSalePrice": 2485000, "totalProductCouponDiscountPrice": 0, "productCouponDiscountPrice": 0, "canceledProductCouponDiscountPrice": 0, "promotionDiscountPrice": 0, "totalDiscountPrice": 0, "totalOrderPrice": 2485000, "totalPaymentPrice": 2485000, "couponSection": null, "usedCoupon": null, "canceledDiscountPrice": 0, "unusedCoupon": [], "applicationDiscountPrice": 0 }, "existOption": true, "option": { "name": "White 매립배관", "optionPrice": 50000 } }, "tempOrderDeliveryFeeId": "1014475772" }, { "id": "1486672949", "node": { "id": 1486672949, "tempOrderSheet": "a83241ecee8844b8aa9ab5b03cdd1ae8", "siteProduct": "1246838400", "siteProductName": "무풍에어컨 갤러리 (56.9 ㎡ + 18.7 ㎡)", "productOption": "919202711", "productOptionName": "화이트", "seller": "1200000000", "tempOrderDeliveryFee": "1014475772", "tempOrderProductPriceInfo": "1137962017" }, "stockQuantity": { "stockQuantity": 999, "enough": true }, "saleStatus": { "status": "selling" }, "priceCalculator": { "quantity": 1, "salePrice": 2449000, "optionPrice": 100000, "totalSalePrice": 2549000, "immediateDiscountPrice": 0, "immediateDiscountSalePrice": 2449000, "totalImmediateDiscountPrice": 0, "totalImmediateDiscountSalePrice": 2549000, "totalProductCouponDiscountPrice": 0, "productCouponDiscountPrice": 0, "canceledProductCouponDiscountPrice": 0, "promotionDiscountPrice": 0, "totalDiscountPrice": 0, "totalOrderPrice": 2549000, "totalPaymentPrice": 2549000, "couponSection": null, "usedCoupon": null, "canceledDiscountPrice": 0, "unusedCoupon": [], "applicationDiscountPrice": 0 }, "name": "무풍에어컨 갤러리 (56.9 ㎡ + 18.7 ㎡)", "displayData": { "name": "무풍에어컨 갤러리 (56.9 ㎡ + 18.7 ㎡)", "images": "null", "seller": { "id": "1200000000", "name": "[seller] SAMSUNG" }, "price": { "quantity": 1, "salePrice": 2449000, "optionPrice": 100000, "totalSalePrice": 2549000, "immediateDiscountPrice": 0, "immediateDiscountSalePrice": 2449000, "totalImmediateDiscountPrice": 0, "totalImmediateDiscountSalePrice": 2549000, "totalProductCouponDiscountPrice": 0, "productCouponDiscountPrice": 0, "canceledProductCouponDiscountPrice": 0, "promotionDiscountPrice": 0, "totalDiscountPrice": 0, "totalOrderPrice": 2549000, "totalPaymentPrice": 2549000, "couponSection": null, "usedCoupon": null, "canceledDiscountPrice": 0, "unusedCoupon": [], "applicationDiscountPrice": 0 }, "existOption": true, "option": { "name": "화이트", "optionPrice": 100000 } }, "tempOrderDeliveryFeeId": "1014475772" } ], "totalOrderPrice": 5034000, "deliveryFeeCalculator": { "productDeliveryInfo": { "id": 9191099, "useDelivery": true, "deliveryWay": "delivery", "deliveryType": "normal", "useVisit": false, "useQuick": false, "useCustomOrder": false, "useBundle": true, "deliveryBundleGroup": "104", "productDeliveryFee": "9191099", "claimDeliveryInfo": "9191099", "seller": "1200000000" }, "deliveryBundleGroup": { "id": 104, "name": "묶음 그룹에서 가장 작은 배송비로 부과", "baseGroup": true, "enable": true, "deliveryFeeChargeMethodType": "min", "deliveryAreaType": "area3", "area2extraFee": 2500, "area3extraFee": 5000 }, "totalSalePrice": 5034000, "totalDiscountSalePrice": 5034000, "totalDiscountPrice": 0, "deliveryPrice": 0, "totalOrderPrice": 5034000, "priceCalculators": [ { "quantity": 1, "salePrice": 2435000, "optionPrice": 50000, "totalSalePrice": 2485000, "immediateDiscountPrice": 0, "immediateDiscountSalePrice": 2435000, "totalImmediateDiscountPrice": 0, "totalImmediateDiscountSalePrice": 2485000, "totalProductCouponDiscountPrice": 0, "productCouponDiscountPrice": 0, "canceledProductCouponDiscountPrice": 0, "promotionDiscountPrice": 0, "totalDiscountPrice": 0, "totalOrderPrice": 2485000, "totalPaymentPrice": 2485000, "couponSection": null, "usedCoupon": null, "canceledDiscountPrice": 0, "unusedCoupon": [], "applicationDiscountPrice": 0 }, { "quantity": 1, "salePrice": 2449000, "optionPrice": 100000, "totalSalePrice": 2549000, "immediateDiscountPrice": 0, "immediateDiscountSalePrice": 2449000, "totalImmediateDiscountPrice": 0, "totalImmediateDiscountSalePrice": 2549000, "totalProductCouponDiscountPrice": 0, "productCouponDiscountPrice": 0, "canceledProductCouponDiscountPrice": 0, "promotionDiscountPrice": 0, "totalDiscountPrice": 0, "totalOrderPrice": 2549000, "totalPaymentPrice": 2549000, "couponSection": null, "usedCoupon": null, "canceledDiscountPrice": 0, "unusedCoupon": [], "applicationDiscountPrice": 0 } ], "lowerProducts": [ ], "seller": "1200000000", "vendor": "", "couponSection": null, "returnDeliveryPrice": 0, "exchangeDeliveryPrice": 0, "addDeliveryPrice": 0, "allRefundDeliveryPrice": 0, "totalProductOrderPrice": 5034000, "usedCoupon": null, "totalCouponDiscountPrice": 0, "canceledDiscountPrice": 0, "unusedCoupon": [], "result": { "deliveryBundleGroup": { "id": 104, "name": "묶음 그룹에서 가장 작은 배송비로 부과", "baseGroup": true, "enable": true, "deliveryFeeChargeMethodType": "min", "deliveryAreaType": "area3", "area2extraFee": 2500, "area3extraFee": 5000 }, "totalSalePrice": 5034000, "deliveryPrice": 0, "totalOrderPrice": 5034000 } } } ], "orderer": { "name": "SAMSUNG TESTER", "email": "tester@naver.com", "cellphone": "010-1234-1234", "birthdate": "" }, "deliveryPlace": null, "customerPayMethod": null, "discount": null, "customerBalancePoint": null, "totalPriceSummary": { "totalSalePrice": 5034000, "totalDeliveryPrice": 0, "totalImmediateDiscountPrice": 0, "totalCouponDiscountPrice": 0, "totalUsedPoint": 0, "totalPaymentPrice": 5034000 } } }

 

 

바로구매

  • 상품상세화면에서 바로 구매하기

  • 임시 주문서 생성

  • 응답결과로 임시주문서 정보 반환

 

POST {{protocol}}://{{hostname}}:{{port}}/svc/order/buyNow

Parameters:

  • products : 바로구매할 상품 정보

    • 상품 옵션 타입 : none

      [ { "id": 460191482, "quantity": 1 } ]
    • 상품 옵션 타입 : single

    • 상품 옵션 타입 : mix

Response:

 

 

임시주문서 조회

  • 임시주문서 정보 조회

POST {{protocol}}://{{hostname}}:{{port}}/svc/order/form

Parameters:

  • id : 임시주문서 ID

Response:

 

 

임시주문서 계산

  • 임시주문서에서 선택한 쿠폰, 포인트 적용 재계산

Parameters:

  • id : 임시주문서 ID

  • coupons : 선택한 쿠폰 정보

  • points : 선택한 포인트 정보

Response:

 

 

임시주문서 검증

  • 임시주문서에서 작성한 쿠폰, 포인트, 결제수단, 주문자 정보, 배송정보 등의 정보 유효 검증

Parameters:

  • id : 임시주문서 ID

  • pgPaymentId : PG 콜백으로 받은 결제 승인할 번호

  • deliveryPlace : 배송지 정보

    • 기본배송지 선택

       

    • 주소록 선택

       

    • 새 배송지 작성

       

  • coupons : 선택한 쿠폰

  • points : 선택한 포인트

  • payMethod : 결제수단

    • creditCard / mobile / point / bankTransfer / virtualAccount / giftCard

  • orderAgree : 주문 동의

 

Response:

 

 

 

결제

Parameters:

  • id : 임시주문서 ID

  • pgPaymentId : PG 콜백으로 받은 결제 승인할 번호

  • deliveryPlace : 배송지 정보

    • 기본배송지 선택

       

    • 주소록 선택

       

    • 새 배송지 작성

       

  • coupons : 선택한 쿠폰

  • points : 선택한 포인트

  • payMethod : 결제수단

    • creditCard / mobile / point / bankTransfer / virtualAccount / giftCard

  • orderAgree : 주문 동의

 

Response: