建立退款交易
介面路徑
| 請求方式 | API 路徑 |
|---|---|
| POST | {DOMAIN_NAME} /api/v1/trade/refund/create |
請求電文
Http.header 參數
Content-TypeString必填
固定值:application/json
platformIdString選填
SLP 平台 ID,平台特店必填
merchantIdString必填
直連特店串接:SLP 分配的特店 ID;平台特店串接:SLP 分配的子特店 ID
apiKeyString必填
API 介面金鑰
requestIdString(32)必填
請求流水號,每個 HTTP 請求唯一
idempotentKeyString(32)選填
冪等 KEY
Http.body 電文
referenceOrderIdString(32)必填
特店退款訂單號
tradeOrderIdString(32)必填
SLP 付款交易訂單編號
amountAmount必填
金额
valueNumber(14)必填
金額,台幣傳金額*100,譬如1元傳入100
currencyString必填
幣種,目前僅支援 TWD
reasonString(256)選填
退款原因
additionalDataMap選填
附加資訊
回應電文
處理結果 http.statusCode
* 500 /429 /400:處理異常
* 200:處理成功
refundOrderIdString(32)必填
SLP 退款訂單號
referenceOrderIdString(32)必填
特店退款訂單號
tradeOrderIdString(32)必填
SLP 付款交易訂單編號
amountAmount必填
金额
valueNumber(14)必填
金額,台幣傳金額*100,譬如1元傳入100
currencyString必填
幣種,目前僅支援 TWD
statusString(6)必填參考
退款狀態
refundMsgPaymentError選填
退款失敗原因
destinationDetailsObject選填
退款退回明細,特定付款方式退款時會有值
linePayArray<Object>選填
LINE Pay 付款資訊
amountNumber(14)必填
金額,台幣傳金額*100,譬如1元傳入100
currencyString(3)必填
幣種,目前僅支援 TWD
paymentMethodString(32)必填參考
LINE Pay 付款方式
binString(16)選填
卡號前六位,當LINE Pay 付款方式為 CREDIT_CARD 時有值
last4String(8)選填
卡號後四位,當LINE Pay 付款方式為 CREDIT_CARD 時有值