NeWeb Pay Trade Refund V2
Description
向藍新API發送取消授權請求 V2
Resource
POST /v2/payment/newebpay/refund
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 商店編號 store_id/store_data 擇一填寫 |
| store_data | StoreData | 商店資訊 store_id/store_data 擇一填寫 |
| trade_data | TradeData | 訂單資料 |
Request Body Parameters - Store Data
| Name | Type | Description |
|---|---|---|
| MerchantID | string | 特店代號 |
| HashKey | string | 商店專屬加密HashKey值 |
| HashIV | string | 商店專屬加密HashIV值 |
Request Body Parameters - Trade Data
| Name | Type | Description |
|---|---|---|
| RespondType | string | 回傳格式 ALLOWED VALUES:
Default:JSON (optional) |
| TimeStamp | string | 時間戳記 EX:2014-05-15 15:00:00這個時間的時間戳記為1400137200 Default:系統時間為準 (optional) |
| Version | string | 串接程式版本 固定1.0 (optional) |
| IndexType | int(1) | 選用單號類別 ALLOWED VALUES:
Default:1 (optional) |
| MerchantOrderNo | string | 商店訂單編號 |
| Amt | int(10) | 訂單金額 |
Request Example
POST /v2/payment/newebpay/refund
{
"store_id": "S001",
"store_data": {
"MerchantID": "",
"HashKey": "",
"HashIV": ""
},
"trade_data": {
"RespondType": "JSON",
"Version": "1.0",
"TimeStamp": "",
"MerchantOrderNo": "S001IC24111800010",
"Amt": 50,
"IndexType": "1"
}
}
Response
{
"Status": "SUCCESS",
"Message": "放棄授權成功",
"Result": {
"MerchantID": "MS326758187",
"Amt": 50,
"MerchantOrderNo": "S001IC24111800010",
"TradeNo": "24111816155896730",
"CheckCode": "1249FCF48AE1A9518C1D91F8C094933E3AF002F6BA95A47EEB00AAE2D2507BBD"
}
}