多筆交易查詢
OrderQuery

說明

多筆交易查詢

Request

欄位
必填
型別
範例
說明
Method
YES
String(5)
00000
請填入固定值00000
ServiceType
YES
String(32)
OrderQuery
所選用的Scan2Pay服務代碼
MchId
YES
String(32)
Account0001
由intella所提供的特店帳號
TradeKey
YES
String(128)
sha256...hash
由intella所提供的交易密碼, 此密碼須先經過SHA256編碼後再填入
CreateTime
YES
String(14)
20180101120000
Request建立時間, 格式為yyyyMMddHHmmss

Data

欄位
必填
型別
範例
說明
StartDate
YES
String(16)
20180101
起始日期, 格式為yyyyMMddHHmmss
EndDate
YES
String(16)
20180102
結束日期, 格式為yyyyMMddHHmmss
OrderStatus
YES
String(16)
1
0: 處理中 / 1: 交易成功 / 2: 交易失敗
StoreOrderNo
NO
String(32)
PO1801
關鍵字, 必須大於3字元

Response

Header

欄位
型別
範例
說明
StatusCode
String(4)
0000
StatusDesc
String
交易成功
交易結果代碼說明
Method
String(5)
10100
支付方式代碼
ServiceType
String
OrderQuery
所選用的Scan2Pay服務代碼
MchId
String
Account0001
特店帳號
ResponseTime
String
20180101120000
時間, 格式為yyyyMMddHHmmss

Data

Data資料是以多筆陣列(Array)的方式回覆
欄位
型別
範例
說明
SysOrderNo
String(32)
2018010110074205610
系統訂單編號
StoreOrderNo
PO180101001
PO180101001
特店訂單編號
TotalFee
Integer
75
交易金額
FeeType
String(4)
TWD
交易幣別
Description
String
大雞排
商品描述
Status
String(16)
Trade success
訂單狀態
RefundStatus
String(16)
Refund success
退款狀態 (Refund success / Refund fail)
Method
String(5)
11500
若該筆交易沒有進行退款,則不會有RefundStatus欄位回傳

API Example

Request

1
{
2
"Header": {
3
"Method": "00000",
4
"ServiceType": "OrderQuery",
5
"MchId": "myMchId",
6
"TradeKey": "9af15b336e6a9619928537df30b2e6a2376569fcf9d7e773eccede65606529a0",
7
"CreateTime": "20180715105349"
8
},
9
"Data": "{\"StartDate\":\"20180715\",\"EndDate\":\"20180716\",\"OrderStatus\":\"1\"}"
10
}
Copied!

Response

1
{
2
"Header": {
3
"StatusCode": "0000",
4
"StatusDesc": "執行成功",
5
"Method": "00000",
6
"ServiceType": "OrderQuery",
7
"MchId": "myMchId"
8
},
9
"Data": {
10
"DataValue": [
11
{
12
"StoreOrderNo": "PO-20180715-004",
13
"SysOrderNo": "104605",
14
"TotalFee": 10,
15
"FeeType": "TWD",
16
"Status": "Trade success",
17
"Description": "-7082",
18
"Method": "11500"
19
},
20
{
21
"StoreOrderNo": "PO-20180715-005",
22
"SysOrderNo": "104644",
23
"TotalFee": 10,
24
"FeeType": "TWD",
25
"Status": "Trade success",
26
"RefundStatus": "Refund success",
27
"Description": "Chicken Rice-0247",
28
"Method": "31800"
29
},
30
{
31
"StoreOrderNo": "PO-20180715-001",
32
"SysOrderNo": "2018071544571196210",
33
"TotalFee": 1,
34
"FeeType": "TWD",
35
"Status": "Trade success",
36
"RefundStatus": "Refund success",
37
"Description": "Chicken Rice-6485",
38
"Method": "11500"
39
},
40
{
41
"StoreOrderNo": "PO-20180715-002",
42
"SysOrderNo": "J006536011807150001",
43
"TotalFee": 1,
44
"FeeType": "TWD",
45
"Status": "Trade success",
46
"Description": "Chicken Rice-1413",
47
"Method": "11500"
48
}
49
]
50
}
51
}
Copied!
Last modified 1yr ago