文档
测试

查询订单信息-微信API接口查询

POST
http://[域名]/dmilk/queryorder

请求参数

参数名
类型
描述
必填
appid
string
系统分配给第三方的接入应用编码,示例:1234567890
必填
token
string
接入签名,示例:45879541235derderedew
必填
timestamp
string
时间戳,格式为:yyyymmddhhmmss,如:20200118122652
必填
orderno
string
交易订单号
必填

请求数据示例

{ "appid":"1234567890", "token":"45879541235derderedew", "timestamp":"20200118122613", "orderno":"1234567890" }

响应参数

参数名
类型
描述
必填
errcode
string
示例:0
必填
errmsg
object
示例:null
必填
orderinfo
object
数据字典
必填
sp_mchid
string
示例:1574134851
必填
sub_mchid
string
示例:1574664101
必填
sp_appid
string
示例:wxed997bad4acb8d68
必填
out_trade_no
string
示例:202304121202195704580
必填
transaction_id
string
示例:4200001844202304128853208669
必填
trade_type
string
示例:JSAPI
必填
trade_state
string
示例:SUCCESS
必填
bank_type
string
示例:OTHERS
必填
success_time
string
示例:2023-04-12T22:10:08+08:00
必填
attach
string
示例:DMILK
必填
amount
object
数据字典
必填
total
string
示例:23000
必填
payer_total
string
示例:23000
必填

响应成功示例

{ "errcode": "0", "errmsg": null, "orderinfo": { "sp_mchid": "121212", "sub_mchid": "121212", "sp_appid": "234sadfsdf", "out_trade_no": "23423424234", "transaction_id": "2342342342424234", "trade_type": "JSAPI", "trade_state": "SUCCESS", "bank_type": "OTHERS", "success_time": "2023-04-12T22:10:08+08:00", "attach": "DMILK", "amount": { "total": "23000", "payer_total": "23000" } } }

响应失败示例

{ "errcode":"1", "errmsg":"参数无效" }