Project

General

Profile

Actions

New Function #118

closed

[API] 주문 재고 처리 (store order stock process)

Added by Deca Park about 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
09/14/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

1.[API] POST /api/store_order

  1) process (add the logic first)
   - if st_mall.krs_bsns_se_cd = '102' (편의점), check KRS product stock count
     else, SKIP

    a) call KRS product stock count API
       - if API fail or result_code != "200", return error (status: 400, error_code: "order.error.krsProductStockAPI", message: {returned result_msg})
    b) if KRS product stock count < order_products.order_count
       - return error (status: 400, error_code: "order.error.overKrsProductStockCount" - "주문수량이 현재고 초과하여 주문이 불가합니다. (매장코드: {mall_code}. 상품코드: {product_code}, 현재고: {KRS product stock count})"

2.KRS product stock count API

  • refer to attach txt file

Files

KORAIL_KRS_stock_API.txt (651 Bytes) KORAIL_KRS_stock_API.txt Deca Park, 09/14/2023 12:46 PM
Actions

Also available in: Atom PDF