New Function #137
closed[API] 주문(order)
Description
1.[API] GET /api/order
1) Response
a) payment_method_name
a-1) if payment_method is NULL (payment_amount = 0)
- format: "포인트 + 적립금 + 쿠폰"
+ if use_point > 0, show "포인트"
+ if use_money > 0, show "적립금"
+ if coupon_amount > 0, show "쿠폰"
a-2) f payment_method is NOT NULL (payment_amount > 0)
- format: "포인트 + 적립금 + 쿠폰 + {payment_method's code name}"
a-1) use_point / use_money / coupon_amount
if use_point > 0, append "포인트" with " + "
if use_money > 0, append "적립금" with " + "
if coupon_amount > 0, append "쿠폰" with " + "
a-2) if payment_method is NOT NULL (payment_amount > 0)
- append {payment_method's code name} with " + "
b) add 3 fields next to mall_name field (refer to #32 : API-20231030)
- mall_biz_no / mall_ceo / mall_address : set by st_mall columns
2.[API] GET /api/order_list
1) Response
a) payment_method_name
- same with [API] GET /api/order
b) add 3 fields next to mall_name field
- same with [API] GET /api/order
Updated by bryant bryant over 1 year ago
- Status changed from New to Resolved
- Assignee changed from bryant bryant to Deca Park
Updated by Deca Park over 1 year ago
[API] POST /api/online_order, POST /api/store_order
1.RequestBody
1) validation
a) if use_point or use_money < 0
- return error
(status: 400, error_code: "order.error.minusUsePointMoney", "사용포인트 또는 사용적립금이 마이너스 금액입니다.")