Project

General

Profile

New Function #118

Updated by Deca Park 12 months ago

<p>1.<strong>[API] POST /api/store_order</strong></p> 

 <p>&nbsp; 1) process (add the logic first)<br /> 
 &nbsp; <span style="color:#e74c3c;">&nbsp;- if st_mall.krs_bsns_se_cd = &#39;102&#39; (편의점), check&nbsp;KRS product stock count<br /> 
 &nbsp; &nbsp; &nbsp;else, SKIP</span></p> 

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

 <p>2.KRS product stock count API</p> 

 <ul> 
	 <li>refer to attach txt file</li> 
 </ul> 

Back