NeWeb Pay Query Trade Info V2
Description
向藍新API發送查詢交易請求取得交易資訊。
Resource
POST /v2/payment/newebpay/querytradeinfo
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 | 串接程式版本 固定2.0 (optional) |
| LangType | string | 語系 ALLOWED VALUES:
Default:zh-tw (optional) |
| MerchantOrderNo | string | 商店訂單編號 |
| Amt | int(10) | 訂單金額 |
Request Example
{
"store_id": "000030",
"store_data": {
"MerchantID": "",
"HashKey": "",
"HashIV": ""
},
"trade_data": {
"Version": "1.3",
"RespondType": "JSON",
"TimeStamp": "",
"MerchantOrderNo": "00003024111500001",
"Amt": 30,
"Gateway": ""
}
}
Response
{
"Status": "SUCCESS",
"Message": "查詢成功",
"Result": {
"MerchantID": "MS326758187",
"Amt": 30,
"TradeNo": "24111513381091670",
"MerchantOrderNo": "00003024111500001",
"TradeStatus": "1",
"PaymentType": "CREDIT",
"CreateTime": "2024-11-15 13:38:10",
"PayTime": "2024-11-15 13:38:10",
"FundTime": "0000-00-00",
"CheckCode": "3E249426CA16078B766F03E004E09D015C0C6A3C7E8A38B34B9B6E9E4D2AAAC0",
"RespondCode": "00",
"Auth": "120628",
"ECI": null,
"CloseAmt": null,
"CloseStatus": "0",
"BackBalance": "30",
"BackStatus": "0",
"RespondMsg": "授權成功",
"Inst": "0",
"InstFirst": "0",
"InstEach": "0",
"PaymentMethod": "CREDIT",
"Card6No": "400022",
"Card4No": "1111",
"AuthBank": "KGI"
}
}