주문 상품 처리
판매자 취소 미리보기
판매자 취소를 하면 돌려줄 현금·적립금·배송비다. 실제 취소와 같은 계산을 쓰기 없이 돌린다. `quantity`를 생략하면 남은 수량 전체다. 취소할 수 없는 주문상품은 취소와 같은 409(`ALREADY_DISPATCHED`·`CLAIM_IN_PROGRESS` 등)다
GET
판매자 취소를 하면 돌려줄 현금·적립금·배송비다. 실제 취소와 같은 계산을 쓰기 없이 돌린다. quantity를 생략하면 남은 수량 전체다. 취소할 수 없는 주문상품은 취소와 같은 409(ALREADY_DISPATCHED·CLAIM_IN_PROGRESS 등)다
accessTokenheader
AuthorizationBearer <token>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
orderItemId*stringquantity*stringX-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
성공
application/json- response
meta*data*error*|nullcurl -X GET 'https://api.sayren.io/v1/order-items/string/cancel-preview?quantity=string' \ -H 'X-Store-Id: string'{ "meta": { "status": 200, "code": "OK", "message": "OK", "isSuccess": true }, "data": { "orderItemId": "string", "quantity": 0, "refundAmount": 0, "pointRefundAmount": 0, "deliveryFeeRefundAmount": 0, "deliveryFeeChargeAmount": 0 }, "error": null}