获取对外收款记录
POST
/cgi-bin/externalpay/get_bill_list
服务端API企业内部开发第三方应用开发
会过滤收款人不在可见范围中的收款记录,因此返回的记录数可能会小于limit设置的最大记录数。
如果得到的列表为空,说明已经拉取完所有的数据。
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90135/93667
https://open.work.weixin.qq.com/api/doc/90001/90143/93727
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/externalpay/get_bill_list?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{"begin_time":1605171726,"end_time":1605172726,"payee_userid":"zhangshan","cursor":"CURSOR","limit":10}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"next_cursor": "CURSOR",
"bill_list": [
{
"transaction_id": "xxxxx",
"trade_state": 1,
"pay_time": 12345,
"out_trade_no": "xxxx",
"external_userid": "xxxx",
"total_fee": 100,
"payee_userid": "zhangshan",
"payment_type": 1,
"mch_id": "123454",
"remark": "xxxx",
"commodity_list": [
{
"description": "手机",
"amount": 1
}
],
"total_refund_fee": 100,
"refund_list": [
{
"out_refund_no": "xx",
"refund_userid": "xxx",
"refund_comment": "xxx",
"refund_reqtime": 1605171790,
"refund_status": 1,
"refund_fee": 100
}
],
"payer_info": {
"name": "xxx",
"phone": "xxx",
"address": "xxx"
}
}
]
}
请求参数
Query 参数
access_token
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
返回响应
修改于 2022-01-14 04:25:44