{ "configuration":{ "vars":{ "type":"object", "value":{ "notifyUrlRefunds":"https://honghgaier-5guiffgcf17a2eea.ap-shanghai.tcbautomation.cn/Automation/WxpayCallback/DirectCallback/100043696453/jswxzfdtktz_b769392/trigger_g8dwmpcye", "mchid":"1725987896", "appid":"wx1ee76fb4846f8901", "notifyUrlPay":"https://honghgaier-5guiffgcf17a2eea.ap-shanghai.tcbautomation.cn/Automation/WxpayCallback/DirectCallback/100043696453/jswxzfdzftz_b6d640b/trigger_nx4ecfy7k" }, "key":"gnd0zvd7q9" } }, "desc":"微信支付云模板apis", "id":"data-4ZyCZAPC4", "isNewDataSource":1, "methods":[ { "isTitleInValid":false, "description":"商家转账用户确认模式下,用户申请收款时,商户可通过此接口申请创建转账单\n接口返回的HTTP状态码及错误码,仅代表本次请求的结果,不能代表订单状态。\n接口返回的HTTP状态码为200,且订单状态为ACCEPTED时,可认为发起商家转账成功。\n接口返回的HTTP状态码不为200时,请商户务必不要立即更换商户订单号重试。可根据错误码列表中的描述和接口返回的信息进行处理,并在查询原订单结果为失败或者联系客服确认情况后,再更换商户订单号进行重试。否则会有重复转账的资金风险。\n注:单个商户的接口频率限制为100次/s", "title":"发起转账", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"gds4il9q", "title":"value", "type":"object", "properties":{ "transfer_bill_no":{ "x-required":false, "x-keyPath":"transfer_bill_no", "x-id":"35a73b94", "format":"", "description":"【微信转账单号】 微信转账单号,微信商家转账系统返回的唯一标识", "type":"string", "x-index":10, "title":"微信转账单号", "x-unique":false, "maxLength":64 }, "create_time":{ "x-required":false, "x-keyPath":"create_time", "x-id":"58517f58", "format":"", "description":"【单据创建时间】 单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE", "type":"string", "x-index":8, "title":"单据创建时间", "x-unique":false }, "out_bill_no":{ "x-required":false, "x-keyPath":"out_bill_no", "x-id":"76eee83c", "format":"", "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n", "type":"string", "x-index":12, "title":"商户单号", "x-unique":false, "maxLength":32 }, "state":{ "x-required":false, "x-keyPath":"state", "x-id":"a76dab48", "format":"", "description":"【单据状态】 商家转账订单状态\n\n可选取值\n\nACCEPTED: 转账已受理\n\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\n\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\n\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\n\nSUCCESS: 转账成功\n\nFAIL: 转账失败\n\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\n\nCANCELLED: 转账撤销完成", "type":"string", "x-index":6, "title":"单据状态", "x-unique":false }, "fail_reason":{ "x-required":false, "x-keyPath":"fail_reason", "x-id":"45f6f651", "format":"", "name":"fail_reason", "description":"【失败原因】 订单已失败或者已退资金时,会返回订单失败原因", "isEnum":false, "type":"string", "x-index":4, "title":"失败原因", "x-unique":false }, "package_info":{ "x-required":false, "x-keyPath":"package_info", "x-id":"8wi185yj", "format":"", "name":"package_info", "description":"【跳转领取页面的package信息】 跳转微信支付收款页的package信息,APP调起用户确认收款或者JSAPI调起用户确认收款 时需要使用的参数。\n\n单据创建后,用户24小时内不领取将过期关闭,建议拉起用户确认收款页面前,先查单据状态:如单据状态为待收款用户确认,可用之前的package信息拉起;单据到终态时需更换单号重新发起转账。", "type":"string", "x-index":2, "title":"跳转领取页面的package信息", "x-unique":false } } }, "intent":"create", "uuid":"00963746-82a2-49da-9b87-6ed15c68a6bb", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "transfer_scene_report_infos":{ "x-required":true, "x-keyPath":"", "x-id":"f36b31bd", "format":"", "description":"【转账场景报备信息】 各转账场景下需报备的内容,商户需要按照所属转账场景规则传参", "type":"array", "x-index":10, "title":"转账场景报备信息", "list":[ { "x-keyPath":"", "x-id":"e664386b", "format":"", "description":"不能超过15个字符,商户所属转账场景下的信息类型,此字段内容为固定值,需严格按照转账场景报备信息字段说明传参。", "isEnum":false, "pId":"f36b31bd", "type":"string", "x-index":6, "title":"信息类型", "x-unique":false, "x-required":true, "name":"info_type", "maxLength":15 }, { "x-keyPath":"", "x-id":"99e9e648", "format":"", "description":"【信息内容】 不能超过32个字符,商户所属转账场景下的信息内容,商户可按实际业务场景自定义传参,需严格按照转账场景报备信息字段说明传参。", "isEnum":false, "pId":"f36b31bd", "type":"string", "x-index":4, "title":"信息内容", "x-unique":false, "x-required":true, "name":"info_content", "maxLength":32 } ], "items":{ "format":"", "type":"object", "properties":{ "info_type":{ "x-keyPath":"", "x-id":"e664386b", "format":"", "description":"不能超过15个字符,商户所属转账场景下的信息类型,此字段内容为固定值,需严格按照转账场景报备信息字段说明传参。", "isEnum":false, "pId":"f36b31bd", "type":"string", "x-index":6, "title":"信息类型", "x-unique":false, "x-required":true, "name":"info_type", "maxLength":15 }, "info_content":{ "x-keyPath":"", "x-id":"99e9e648", "format":"", "description":"【信息内容】 不能超过32个字符,商户所属转账场景下的信息内容,商户可按实际业务场景自定义传参,需严格按照转账场景报备信息字段说明传参。", "isEnum":false, "pId":"f36b31bd", "type":"string", "x-index":4, "title":"信息内容", "x-unique":false, "x-required":true, "name":"info_content", "maxLength":32 } } }, "x-unique":false }, "transfer_amount":{ "x-required":true, "x-keyPath":"", "x-id":"7cc9725f", "format":"", "description":"【转账金额】 转账金额单位为“分”。", "type":"number", "x-index":18, "title":"转账金额", "x-unique":false }, "user_name":{ "x-required":false, "x-keyPath":"", "x-id":"8ece8e6b", "format":"", "description":"【收款用户姓名】 收款方真实姓名。需要加密传入,支持标准RSA算法和国密算法,公钥由微信侧提供。\n转账金额 >= 2,000元时,该笔明细必须填写\n若商户传入收款用户姓名,微信支付会校验收款用户与输入姓名是否一致,并提供电子回单", "type":"string", "x-index":20, "title":"收款用户姓名", "x-unique":false }, "openid":{ "x-required":true, "x-keyPath":"", "x-id":"eb4475be", "format":"", "name":"openid", "description":"【收款用户OpenID】 用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见参数说明。", "isEnum":false, "type":"string", "x-index":22, "title":"收款用户OpenID", "x-unique":false, "maxLength":64 }, "appid":{ "x-required":true, "x-keyPath":"", "x-id":"df7ffc95", "format":"", "description":"", "type":"string", "x-index":28, "title":"商户AppID", "x-unique":false, "maxLength":32 }, "out_bill_no":{ "x-required":true, "x-keyPath":"", "x-id":"f58eaa83", "format":"", "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n", "type":"string", "x-index":26, "title":"商户单号", "x-unique":false, "maxLength":32 }, "user_recv_perception":{ "x-required":false, "x-keyPath":"", "x-id":"f7ab934c", "format":"", "name":"user_recv_perception", "description":"【用户收款感知】 用户收款时感知到的收款原因将根据转账场景自动展示默认内容。如有其他展示需求,可在本字段传入。各场景展示的默认内容和支持传入的内容,可查看产品文档了解。", "isEnum":false, "type":"string", "x-index":12, "title":"用户收款感知", "x-unique":false }, "notify_url":{ "x-required":false, "x-keyPath":"", "x-id":"8c76d488", "format":"", "description":"【通知地址】 异步接收微信支付结果通知的回调地址,通知url必须为公网可访问的URL,必须为HTTPS,不能携带参数。", "type":"string", "x-index":14, "title":"通知地址", "x-unique":false, "maxLength":256 }, "transfer_remark":{ "x-required":true, "x-keyPath":"", "x-id":"46f64cb1", "format":"", "name":"transfer_remark", "description":"【转账备注】 转账备注,用户收款时可见该备注信息,UTF8编码,最多允许32个字符\n\n", "isEnum":false, "type":"string", "x-index":16, "title":"转账备注", "x-unique":false, "maxLength":32 }, "transfer_scene_id":{ "x-required":true, "x-keyPath":"", "x-id":"485c4c7a", "format":"", "description":"【转账场景ID】 该笔转账使用的转账场景,可前往“商户平台-产品中心-商家转账”中申请。如:1000(现金营销),1006(企业报销)等", "type":"string", "x-index":24, "title":"转账场景ID", "x-unique":false, "maxLength":36 } }, "required":[] }, "name":"createTransferBills", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{}, "key":"a625d27853c39fd4" } }, "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"out_bill_no\": \"{{params.out_bill_no}}\",\n \"transfer_scene_id\": \"{{params.transfer_scene_id}}\",\n \"openid\": \"{{params.openid}}\",\n \"user_name\": \"{{params.user_name}}\",\n \"transfer_amount\": {{params.transfer_amount}},\n \"transfer_remark\": \"{{params.transfer_remark}}\",\n \"notify_url\": \"{{params.notify_url}}\",\n \"user_recv_perception\": \"{{params.user_recv_perception}}\",\n \"transfer_scene_report_infos\": {{params.transfer_scene_report_infos}}\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户通过转账接口发起付款后,在用户确认收款之前可以通过该接口撤销付款。该接口返回成功仅表示撤销请求已受理,系统会异步处理退款等操作,以最终查询单据返回状态为准。", "title":"撤销转账", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"gds4il9q", "title":"value", "type":"object", "properties":{ "update_time":{ "x-required":false, "x-keyPath":"update_time", "x-id":"58517f58", "format":"", "name":"update_time", "description":"【最后一次单据状态变更时间】 按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE", "isEnum":false, "type":"string", "x-index":8, "title":"最后一次单据状态变更时间", "x-unique":false }, "transfer_bill_no":{ "x-required":false, "x-keyPath":"transfer_bill_no", "x-id":"35a73b94", "format":"", "description":"【微信转账单号】 微信转账单号,微信商家转账系统返回的唯一标识", "type":"string", "x-index":10, "title":"微信转账单号", "x-unique":false, "maxLength":64 }, "out_bill_no":{ "x-required":false, "x-keyPath":"out_bill_no", "x-id":"76eee83c", "format":"", "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n", "type":"string", "x-index":12, "title":"商户单号", "x-unique":false, "maxLength":32 }, "state":{ "x-required":false, "x-keyPath":"state", "x-id":"a76dab48", "format":"", "name":"state", "description":"【单据状态】 CANCELING: 撤销中;CANCELLED:已撤销", "isEnum":false, "type":"string", "x-index":6, "title":"单据状态", "x-unique":false } } }, "intent":"create", "uuid":"428c25d4-0127-431f-af40-1657e4082f84", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{}, "required":[] }, "name":"cancelTransferBill", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{}, "key":"a625d27853c39fd4" } }, "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{{params.out_bill_no}}/cancel" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商家转账用户确认模式下,根据商户单号查询转账单的详细信息。\n\n注意\nAPI只支持查询最近30天内的转账单,超过30天可以通过资金账单对账确认。\n转账单中涉及金额的字段单位为“分”。\n如果遇到新的错误码,请务必不要换单重试,请联系客服确认转账情况。如果有新的错误码,会更新到此API文档中。\n错误码描述字段message只供人工定位问题时做参考,系统实现时请不要依赖这个字段来做自动化处理。\n接口限频: 单个商户 100 QPS,如果超过频率限制,会报错 FREQUENCY_LIMITED", "title":"商户单号查询转账单", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"gds4il9q", "title":"value", "type":"object", "properties":{ "update_time":{ "x-required":false, "x-keyPath":"update_time", "x-id":"8wi185yj", "format":"", "name":"update_time", "description":"【最后一次状态变更时间】 单据最后更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE", "isEnum":false, "type":"string", "x-index":2, "title":"最后一次状态变更时间", "x-unique":false }, "transfer_bill_no":{ "x-required":false, "x-keyPath":"transfer_bill_no", "x-id":"8e9f488b", "format":"", "description":"【商家转账订单号】 商家转账订单的主键,唯一定义此资源的标识\n\n", "type":"string", "x-index":24, "title":"商家转账订单号", "x-unique":false }, "create_time":{ "x-required":false, "x-keyPath":"create_time", "x-id":"58517f58", "format":"", "description":"【单据创建时间】 单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE", "type":"string", "x-index":8, "title":"单据创建时间", "x-unique":false }, "transfer_amount":{ "x-required":false, "x-keyPath":"transfer_amount", "x-id":"7b3c5e39", "format":"", "description":"【转账金额】 转账金额单位为“分”。", "type":"number", "x-index":18, "title":"转账金额", "x-unique":false }, "user_name":{ "x-required":false, "x-keyPath":"user_name", "x-id":"35a73b94", "format":"", "name":"user_name", "description":"【收款用户姓名】 收款方真实姓名。支持标准RSA算法和国密算法,公钥由微信侧提供转账金额 >= 2,000元时,该笔明细必须填写若商户传入收款用户姓名,微信支付会校验用户OpenID与姓名是否一致,并提供电子回单", "isEnum":false, "type":"string", "x-index":10, "title":"收款用户姓名", "x-unique":false, "maxLength":64 }, "openid":{ "x-required":false, "x-keyPath":"openid", "x-id":"76eee83c", "format":"", "name":"openid", "description":"【收款用户OpenID】 用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见参数说明。", "isEnum":false, "type":"string", "x-index":12, "title":"收款用户OpenID", "x-unique":false, "maxLength":64 }, "appid":{ "x-required":false, "x-keyPath":"appid", "x-id":"f3f519b4", "format":"", "description":"【商户AppID】 是微信开放平台和微信公众平台为开发者的应用程序(APP、小程序、公众号、企业号corpid即为此AppID)提供的一个唯一标识。此处,可以填写这四种类型中的任意一种APPID,但请确保该appid与商户号有绑定关系。详见:普通商户模式开发必要参数说明。", "type":"string", "x-index":22, "title":"商户AppID", "x-unique":false }, "out_bill_no":{ "x-required":false, "x-keyPath":"out_bill_no", "x-id":"e18d38d8", "format":"", "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n", "type":"string", "x-index":26, "title":"商户单号", "x-unique":false, "maxLength":32 }, "state":{ "x-required":false, "x-keyPath":"state", "x-id":"7fc713f9", "format":"", "description":"【单据状态】\n\n可选取值\n\nACCEPTED: 转账已受理\n\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\n\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\n\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\n\nSUCCESS: 转账成功\n\nFAIL: 转账失败\n\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\n\nCANCELLED: 转账撤销完成", "type":"string", "x-index":20, "title":"单据状态", "x-unique":false }, "fail_reason":{ "x-required":false, "x-keyPath":"fail_reason", "x-id":"5ba6bdcf", "format":"", "description":"【失败原因】 订单已失败或者已退资金时,会返回订单失败原因\n\n", "type":"string", "x-index":14, "title":"失败原因", "x-unique":false }, "mch_id":{ "x-required":false, "x-keyPath":"mch_id", "x-id":"29bef237", "format":"", "description":"【商户号】 微信支付分配的商户号", "type":"string", "x-index":28, "title":"商户号", "x-unique":false }, "transfer_remark":{ "x-required":false, "x-keyPath":"transfer_remark", "x-id":"94f6dfdf", "format":"", "description":"【转账备注】 单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符\n\n", "type":"string", "x-index":16, "title":"转账备注", "x-unique":false, "maxLength":32 } } }, "intent":"create", "uuid":"4cfe011a-bcbe-4dbe-a4ed-6f3e854e5356", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{}, "required":[] }, "name":"getBillByOutBillNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{}, "key":"a625d27853c39fd4" } }, "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{{params.out_bill_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "title":"微信单号查询转账单", "type":"http", "outParams":{ "additionalProperties":true, "type":"object", "properties":{ "update_time":{ "x-required":false, "x-keyPath":"", "x-id":"5f1fea23", "format":"", "name":"update_time", "description":"【最后一次状态变更时间】单据最后更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE。", "isEnum":false, "type":"string", "x-index":2, "title":"最后一次状态变更时间", "x-unique":false }, "transfer_bill_no":{ "x-required":false, "x-keyPath":"", "x-id":"4451eb8f", "format":"", "name":"transfer_bill_no", "description":"【商家转账订单号】商家转账订单的主键,唯一定义此资源的标识。", "isEnum":false, "type":"string", "x-index":20, "title":"商家转账订单号", "x-unique":false }, "create_time":{ "x-required":false, "x-keyPath":"", "x-id":"f2b9cb3c", "format":"", "name":"create_time", "description":"【单据创建时间】单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE。", "isEnum":false, "type":"string", "x-index":4, "title":"单据创建时间", "x-unique":false }, "transfer_amount":{ "x-required":false, "x-keyPath":"", "x-id":"ad7a8267", "format":"", "name":"transfer_amount", "description":"【转账金额】转账金额单位为“分”。", "isEnum":false, "type":"number", "x-index":14, "title":"转账金额", "x-unique":false }, "user_name":{ "x-required":false, "x-keyPath":"", "x-id":"be57137d", "format":"", "name":"user_name", "description":"【收款用户姓名】收款方真实姓名。支持标准RSA算法和国密算法,公钥由微信侧提供转账金额 >= 2,000元时,该笔明细必须填写若商户传入收款用户姓名,微信支付会校验用户OpenID与姓名是否一致,并提供电子回单。", "isEnum":false, "type":"string", "x-index":6, "title":"收款用户姓名", "x-unique":false }, "openid":{ "x-required":false, "x-keyPath":"", "x-id":"b5787b6e", "format":"", "name":"openid", "description":"用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见https://pay.weixin.qq.com/doc/v3/merchant/4012068676。", "isEnum":false, "type":"string", "x-index":8, "title":"收款用户OpenID", "x-unique":false, "maxLength":64 }, "appid":{ "x-required":false, "x-keyPath":"", "x-id":"2ceb1ae7", "format":"", "name":"appid", "description":"【商户AppID】是微信开放平台和微信公众平台为开发者的应用程序(APP、小程序、公众号、企业号corpid即为此AppID)提供的一个唯一标识。此处,可以填写这四种类型中的任意一种APPID,但请确保该appid与商户号有绑定关系。详见:https://pay.weixin.qq.com/doc/v3/merchant/4013070756。", "isEnum":false, "type":"string", "x-index":18, "title":"商户AppID", "x-unique":false }, "out_bill_no":{ "x-required":false, "x-keyPath":"", "x-id":"4b96f34a", "format":"", "name":"out_bill_no", "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一。", "isEnum":false, "type":"string", "x-index":22, "title":"商户单号", "x-unique":false, "maxLength":32 }, "state":{ "x-required":false, "x-keyPath":"", "x-id":"8efcd522", "format":"", "name":"state", "description":"【单据状态】\nACCEPTED: 转账已受理\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\nSUCCESS: 转账成功\nFAIL: 转账失败\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\nCANCELLED: 转账撤销完成", "isEnum":false, "type":"string", "x-index":16, "title":"单据状态", "x-unique":false }, "fail_reason":{ "x-required":false, "x-keyPath":"", "x-id":"ad3c8949", "format":"", "name":"fail_reason", "description":"订单已失败或者已退资金时,会返回订单失败原因,https://pay.weixin.qq.com/doc/v3/merchant/4013774966。", "isEnum":false, "type":"string", "x-index":10, "title":"失败原因", "x-unique":false }, "mch_id":{ "x-required":false, "x-keyPath":"", "x-id":"f6b1cc67", "format":"", "name":"mch_id", "description":"【商户号】 微信支付分配的商户号。", "isEnum":false, "type":"string", "x-index":24, "title":"商户号", "x-unique":false }, "transfer_remark":{ "x-required":false, "x-keyPath":"", "x-id":"5c68fdc3", "format":"", "name":"transfer_remark", "description":"【转账备注】单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符。", "isEnum":false, "type":"string", "x-index":12, "title":"转账备注", "x-unique":false, "maxLength":32 } }, "required":[] }, "intent":"create", "uuid":"3bbb327e-18fc-4100-a0dc-0a17a2a1ef8a", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{}, "required":[] }, "name":"getBillByTransferBillNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/transfer-bill-no/{{params.transfer_bill_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户可以指定商户转账单号通过该接口申请商家转账用户确认模式转账单据 对应的电子回单。\n微信支付会在校验满足回单申请条件后受理回单的申请,商户后续可以通过电子回单查询接口查询回单处理进度。\n申请回单前,请先确认是否满足回单申请的条件,不满足回单申请条件时,多次重试申请无意义:\n1. 仅支持付款成功的转账单据申请电子回单.\n2. 仅支持传入姓名的转账单据申请电子回单.\n3. 仅支持六个月内的转账单据申请电子回单.\n回单申请完成后的有效期为90天,过期后需要重新申请。最终以查单结果返回为准。", "title":"商户单号申请电子回单", "type":"http", "outParams":{ "additionalProperties":true, "type":"object", "properties":{ "create_time":{ "x-required":false, "x-keyPath":"", "x-id":"34b4377d", "format":"", "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE", "type":"string", "x-index":2, "title":"申请单创建时间", "x-unique":false, "maxLength":32 }, "state":{ "x-required":false, "x-keyPath":"", "x-id":"326fac7c", "format":"", "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED: 已失败。\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因", "type":"string", "x-index":4, "title":"申请单状态", "x-unique":false } }, "required":[] }, "intent":"create", "uuid":"044e4a1e-ca53-4f32-bba1-e61bfc9a52b5", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "out_bill_no":{ "x-required":true, "x-keyPath":"", "x-id":"f779b526", "format":"", "name":"out_bill_no", "description":"【商户转账单号】 商户创建转账单据使用的单号", "isEnum":false, "type":"string", "x-index":2, "title":"商户转账单号", "x-unique":false, "maxLength":32 } }, "required":[] }, "name":"createElecsignByOutBillNo", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"out_bill_no\": \"{{params.out_bill_no}}\"\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户可以通过该接口查看回单申请进度\n请务必对比下载的回单文件的摘要值与查询接口返回的摘要值的一致性,确保得到的回单文件的真实性和完整性。\n下载地址的有效期为10分钟,超过10分钟后需要重新通过该接口获取下载地址(不需要重新申请)。", "title":"商户单号查询电子回单", "type":"http", "outParams":{ "additionalProperties":true, "type":"object", "properties":{ "update_time":{ "x-required":false, "x-keyPath":"", "x-id":"4f57b6bf", "format":"", "description":"【申请单更新时间】 申请单最近的更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n", "type":"string", "x-index":8, "title":"申请单更新时间", "x-unique":false, "maxLength":32 }, "create_time":{ "x-required":false, "x-keyPath":"", "x-id":"9c9bf6da", "format":"", "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n", "type":"string", "x-index":10, "title":"申请单创建时间", "x-unique":false, "maxLength":32 }, "download_url":{ "x-required":false, "x-keyPath":"", "x-id":"67efbd21", "format":"", "description":"【回单文件下载地址】 申请单状态为已完成时返回,有效期10分钟,过期后可以重新通过该接口获取;下载地址的域名,路径,参数都可能变化,请不要自行拼接", "type":"string", "x-index":2, "title":"回单文件下载地址", "x-unique":false, "maxLength":3000 }, "state":{ "x-required":false, "x-keyPath":"", "x-id":"da25d45b", "format":"", "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED:已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因\n", "type":"string", "x-index":12, "title":"申请单状态", "x-unique":false }, "hash_value":{ "x-required":false, "x-keyPath":"", "x-id":"3a132d22", "format":"", "description":"【回单文件摘要值】 申请单状态为已完成时返回,请务必将下载的回单文件摘要值与该值进行对比,以保证回单文件的完整性和真实性\n\n", "type":"string", "x-index":4, "title":"回单文件摘要值", "x-unique":false, "maxLength":512 }, "hash_type":{ "x-required":false, "x-keyPath":"", "x-id":"1877fbb5", "format":"", "description":"【回单文件摘要类型】 申请单状态为已完成时返回\nSHA256: SHA256摘要算法\nSM3: 国密SM3摘要算法\n\n", "type":"string", "x-index":6, "title":"回单文件摘要类型", "x-unique":false } }, "required":[] }, "intent":"create", "uuid":"e1fa63dd-83f3-446f-b2cf-fa23c2444e4a", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{}, "required":[] }, "name":"getElecsignByOutBillNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no/{{params.out_bill_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户可以指定微信转账单号通过该接口申请商家转账用户确认模式转账单据 对应的电子回单。\n微信支付会在校验满足回单申请条件后受理回单的申请,商户后续可以通过电子回单查询接口查询回单处理进度。\n申请回单前,请先确认是否满足回单申请的条件,不满足回单申请条件时,多次重试申请无意义:\n1. 仅支持付款成功的转账单据申请电子回单.\n2. 仅支持传入姓名的转账单据申请电子回单.\n3. 仅支持六个月内的转账单据申请电子回单.\n回单申请完成后的有效期为90天,过期后需要重新申请。最终以查单结果返回为准。", "title":"微信单号申请电子回单", "type":"http", "outParams":{ "additionalProperties":true, "type":"object", "properties":{ "create_time":{ "x-required":false, "x-keyPath":"", "x-id":"b153b282", "format":"", "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE", "type":"string", "x-index":2, "title":"申请单创建时间", "x-unique":false, "maxLength":32 }, "state":{ "x-required":false, "x-keyPath":"", "x-id":"cc2aad22", "format":"", "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED: 已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因", "type":"string", "x-index":4, "title":"申请单状态", "x-unique":false } }, "required":[] }, "intent":"create", "uuid":"ae745420-6c33-4fa3-b9a6-9ba127d24d2b", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "transfer_bill_no":{ "x-required":true, "x-keyPath":"", "x-id":"8e2df5fe", "format":"", "description":"【微信转账单号】 转账单据对应的微信支付单号", "type":"string", "x-index":2, "title":"微信转账单号", "x-unique":false, "maxLength":64 } }, "required":[] }, "name":"createElecsignByTransferBillNo", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"transfer_bill_no\": \"{{params.transfer_bill_no}}\"\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/transfer-bill-no" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户可以通过该接口查看回单申请进度\n请务必对比下载的回单文件的摘要值与查询接口返回的摘要值的一致性,确保得到的回单文件的真实性和完整性。\n下载地址的有效期为10分钟,超过10分钟后需要重新通过该接口获取下载地址(不需要重新申请)。", "title":"微信单号查询电子回单", "type":"http", "outParams":{ "additionalProperties":true, "type":"object", "properties":{ "update_time":{ "x-required":false, "x-keyPath":"", "x-id":"e91b584c", "format":"", "description":"【申请单更新时间】 申请单最近的更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE", "type":"string", "x-index":8, "title":"申请单更新时间", "x-unique":false, "maxLength":32 }, "create_time":{ "x-required":false, "x-keyPath":"", "x-id":"c315cdcc", "format":"", "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n", "type":"string", "x-index":10, "title":"申请单创建时间", "x-unique":false, "maxLength":32 }, "download_url":{ "x-required":false, "x-keyPath":"", "x-id":"3f7f7be2", "format":"", "description":"【回单文件下载地址】 申请单状态为已完成时返回,有效期10分钟,过期后可以重新通过该接口获取;下载地址的域名,路径,参数都可能变化,请不要自行拼接", "type":"string", "x-index":2, "title":"回单文件下载地址", "x-unique":false, "maxLength":3000 }, "state":{ "x-required":false, "x-keyPath":"", "x-id":"a7fde85d", "format":"", "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED:已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因", "type":"string", "x-index":12, "title":"申请单状态", "x-unique":false }, "hash_value":{ "x-required":false, "x-keyPath":"", "x-id":"962e7ea6", "format":"", "description":"【回单文件摘要值】 申请单状态为已完成时返回,请务必将下载的回单文件摘要值与该值进行对比,以保证回单文件的完整性和真实性\n\n", "type":"string", "x-index":4, "title":"回单文件摘要值", "x-unique":false, "maxLength":512 }, "hash_type":{ "x-required":false, "x-keyPath":"", "x-id":"d279df78", "format":"", "description":"【回单文件摘要类型】 申请单状态为已完成时返回\nSHA256: SHA256摘要算法\nSM3: 国密SM3摘要算法", "type":"string", "x-index":6, "title":"回单文件摘要类型", "x-unique":false } }, "required":[] }, "intent":"create", "uuid":"fc3ec6b8-403c-4e60-9866-83215b5d8a74", "isNameInValid":false, "isShow":true, "tags":"商家转账(新)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{}, "required":[] }, "name":"getElecsignByTransferBillNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/transfer-bill-no/{{params.transfer_bill_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"查询转账明细电子回单受理结果接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等。 前置条件:只支持查询最近两年内的转账明细单 URL路径:https://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-receipt-api/query-electronic-receipt.html", "title":"查询转账明细电子回单受理结果", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"k04uqvj7", "title":"value", "type":"object", "properties":{ "nonce_str":{ "x-keyPath":"nonce_str", "x-id":"ja89o0z8", "title":"nonce_str", "type":"string" }, "mchid":{ "x-keyPath":"mchid", "x-id":"lkgqayh9", "title":"mchid", "type":"string" }, "signature":{ "x-keyPath":"signature", "x-id":"oyjnct7n", "title":"signature", "type":"string" }, "download_url":{ "x-keyPath":"download_url", "x-id":"92m5ayjs", "title":"download_url", "type":"string" }, "hash_value":{ "x-keyPath":"hash_value", "x-id":"czebjlf7", "title":"hash_value", "type":"string" }, "serial_no":{ "x-keyPath":"serial_no", "x-id":"daut0bcs", "title":"serial_no", "type":"string" }, "hash_type":{ "x-keyPath":"hash_type", "x-id":"0me3c2qd", "title":"hash_type", "type":"string" }, "timestamp":{ "x-keyPath":"timestamp", "x-id":"datg3sgy", "title":"timestamp", "type":"number" } } }, "intent":"create", "uuid":"b124a146-7abb-4ab5-a8a4-8d2d14523db0", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "accept_type":{ "x-required":true, "x-keyPath":"", "x-id":"67e77f2", "format":"", "description":"", "type":"string", "x-index":6, "title":"accept_type", "x-unique":false, "maxLength":4000 }, "out_batch_no":{ "x-required":false, "x-keyPath":"", "x-id":"72b33ee", "format":"", "name":"out_batch_no", "description":"", "isEnum":false, "type":"string", "x-index":2, "title":"out_batch_no", "x-unique":false, "maxLength":4000 }, "out_detail_no":{ "x-required":true, "x-keyPath":"", "x-id":"9512fd6", "format":"", "description":"", "type":"string", "x-index":4, "title":"out_detail_no", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"getElectronicReceipts", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{ "accept_type":"{{params.accept_type}}", "out_batch_no":"{{params.out_batch_no}}", "out_detail_no":"{{params.out_detail_no}}" }, "key":"2734c0a2adfd40" } }, "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts" }, "isCollapse":true }, { "isTitleInValid":false, "description":"受理转账明细电子回单接口,商户通过该接口可以申请受理转账明细单电子回单服务。 前置条件:1、发起转账时传入了收款用户姓名,支持申请电子回单;2、只支持受理最近两年内的转账明细单 URL路径:https://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-receipt-api/create-electronic-receipt.html", "title":"受理转账明细电子回单", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"lon2ejr1", "title":"value", "type":"object", "properties":{ "signature_status":{ "x-keyPath":"signature_status", "x-id":"ssuvbcw6", "title":"signature_status", "type":"string" }, "accept_type":{ "x-keyPath":"accept_type", "x-id":"s30qy8we", "title":"accept_type", "type":"string" }, "signature_no":{ "x-keyPath":"signature_no", "x-id":"5cxen6ab", "title":"signature_no", "type":"string" }, "out_batch_no":{ "x-keyPath":"out_batch_no", "x-id":"fcxxe217", "title":"out_batch_no", "type":"string" }, "out_detail_no":{ "x-keyPath":"out_detail_no", "x-id":"2dqod4s0", "title":"out_detail_no", "type":"string" } } }, "intent":"create", "uuid":"b974cbb0-c2d6-41fc-9012-09c3e0a96e9c", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "accept_type":{ "x-required":true, "x-keyPath":"", "x-id":"9ada415", "format":"", "description":"", "type":"string", "x-index":2, "title":"accept_type", "x-unique":false, "maxLength":4000 }, "out_batch_no":{ "x-required":false, "x-keyPath":"", "x-id":"8642b12", "format":"", "description":"", "type":"string", "x-index":4, "title":"out_batch_no", "x-unique":false, "maxLength":4000 }, "out_detail_no":{ "x-required":true, "x-keyPath":"", "x-id":"7068098", "format":"", "description":"", "type":"string", "x-index":6, "title":"out_detail_no", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"electronicReceipts", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{{params}}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts" }, "isCollapse":true }, { "isTitleInValid":false, "description":"查询转账账单电子回单接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-signature/get-electronic-signature-by-out-no.html", "title":"查询转账账单电子回单接口", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"1qm8l5sj", "title":"value", "type":"object", "properties":{ "nonce_str":{ "x-keyPath":"nonce_str", "x-id":"4htq38gl", "title":"nonce_str", "type":"string" }, "mchid":{ "x-keyPath":"mchid", "x-id":"32by2vx8", "title":"mchid", "type":"string" }, "signature":{ "x-keyPath":"signature", "x-id":"ip410nr0", "title":"signature", "type":"string" }, "download_url":{ "x-keyPath":"download_url", "x-id":"pbfihrne", "title":"download_url", "type":"string" }, "hash_value":{ "x-keyPath":"hash_value", "x-id":"19kfupj1", "title":"hash_value", "type":"string" }, "serial_no":{ "x-keyPath":"serial_no", "x-id":"0rw74962", "title":"serial_no", "type":"string" }, "hash_type":{ "x-keyPath":"hash_type", "x-id":"cv0ua6x6", "title":"hash_type", "type":"string" }, "timestamp":{ "x-keyPath":"timestamp", "x-id":"p6oib1sg", "title":"timestamp", "type":"number" } } }, "intent":"create", "uuid":"b709c8d2-5527-4aa9-8d24-bc4612c59899", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "out_batch_no":{ "x-required":true, "x-keyPath":"", "x-id":"adc51cc", "format":"", "description":"", "type":"string", "x-index":2, "title":"out_batch_no", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"getBillReceipt", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/transfer/bill-receipt/{{params.out_batch_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"转账账单电子回单申请受理接口,商户通过该接口可以申请受理电子回单服务。 前置条件:1、发起转账时传入了收款用户姓名,支持申请电子回单;2、支持受理最近两年内的转账批次单;\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-signature/create-electronic-signature.html", "title":"转账账单电子回单申请受理接口", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"4vvy518f", "title":"value", "type":"object", "properties":{ "update_time":{ "x-keyPath":"update_time", "x-id":"7vvpdziy", "title":"update_time", "type":"string" }, "create_time":{ "x-keyPath":"create_time", "x-id":"x1ccomvi", "title":"create_time", "type":"string" }, "signature_status":{ "x-keyPath":"signature_status", "x-id":"qfjrsdzj", "title":"signature_status", "type":"string" }, "signature_no":{ "x-keyPath":"signature_no", "x-id":"hejl2jlp", "title":"signature_no", "type":"string" }, "out_batch_no":{ "x-keyPath":"out_batch_no", "x-id":"gl608k48", "title":"out_batch_no", "type":"string" } } }, "intent":"create", "uuid":"e665af68-4c20-4e62-bfeb-dfccd38feff8", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "out_batch_no":{ "x-required":true, "x-keyPath":"", "x-id":"b7d9bb7", "format":"", "description":"", "type":"string", "x-index":2, "title":"out_batch_no", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"billReceipt", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{{params}}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/transfer/bill-receipt" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、用户OpenID等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-detail/get-transfer-detail-by-out-no.html", "title":"通过商家明细单号查询明细单", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"g0l9au6o", "title":"value", "type":"object", "properties":{ "mchid":{ "x-keyPath":"mchid", "x-id":"okgt0xbb", "title":"mchid", "type":"string" }, "batch_id":{ "x-keyPath":"batch_id", "x-id":"pbxuaj7i", "title":"batch_id", "type":"string" }, "openid":{ "x-keyPath":"openid", "x-id":"7newtddn", "title":"openid", "type":"string" }, "user_name":{ "x-keyPath":"user_name", "x-id":"j8cyumnz", "title":"user_name", "type":"string" }, "detail_status":{ "x-keyPath":"detail_status", "x-id":"7913nzbe", "title":"detail_status", "type":"string" }, "out_batch_no":{ "x-keyPath":"out_batch_no", "x-id":"spa1v7do", "title":"out_batch_no", "type":"string" }, "detail_id":{ "x-keyPath":"detail_id", "x-id":"a9prd6t9", "title":"detail_id", "type":"string" }, "update_time":{ "x-keyPath":"update_time", "x-id":"my5x22vs", "title":"update_time", "type":"string" }, "transfer_amount":{ "x-keyPath":"transfer_amount", "x-id":"rf1h7ub0", "title":"transfer_amount", "type":"number" }, "appid":{ "x-keyPath":"appid", "x-id":"8dom1t29", "title":"appid", "type":"string" }, "out_detail_no":{ "x-keyPath":"out_detail_no", "x-id":"fgo0etzt", "title":"out_detail_no", "type":"string" }, "initiate_time":{ "x-keyPath":"initiate_time", "x-id":"s7jzsgam", "title":"initiate_time", "type":"string" }, "fail_reason":{ "x-required":false, "x-keyPath":"fail_reason", "x-id":"a8a86b3", "format":"", "description":"", "type":"string", "x-index":2, "title":"fail_reason", "x-unique":false, "maxLength":4000 }, "transfer_remark":{ "x-keyPath":"transfer_remark", "x-id":"njoyhypc", "title":"transfer_remark", "type":"string" } } }, "intent":"create", "uuid":"94cdea9c-9504-441e-bbd1-44861e279889", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "out_detail_no":{ "x-required":true, "x-keyPath":"", "x-id":"b422e3f", "format":"", "description":"", "type":"string", "x-index":2, "title":"out_detail_no", "x-unique":false, "maxLength":4000 }, "out_batch_no":{ "x-required":true, "x-keyPath":"", "x-id":"b85183a", "format":"", "description":"", "type":"string", "x-index":4, "title":"out_batch_no", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"getTransferDetailByOutNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{{params.out_batch_no}}/details/out-detail-no/{{params.out_detail_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、用户OpenID等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-detail/get-transfer-detail-by-no.html", "title":"通过微信明细单号查询明细单", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"smxwq5ol", "title":"value", "type":"object", "properties":{ "mchid":{ "x-keyPath":"mchid", "x-id":"h7np83rv", "title":"mchid", "type":"string" }, "batch_id":{ "x-keyPath":"batch_id", "x-id":"lmcxdq24", "title":"batch_id", "type":"string" }, "openid":{ "x-keyPath":"openid", "x-id":"vck93lbc", "title":"openid", "type":"string" }, "user_name":{ "x-keyPath":"user_name", "x-id":"sp5w432f", "title":"user_name", "type":"string" }, "detail_status":{ "x-keyPath":"detail_status", "x-id":"72sd20sm", "title":"detail_status", "type":"string" }, "out_batch_no":{ "x-keyPath":"out_batch_no", "x-id":"nlxsndyv", "title":"out_batch_no", "type":"string" }, "detail_id":{ "x-keyPath":"detail_id", "x-id":"61osy8r5", "title":"detail_id", "type":"string" }, "update_time":{ "x-keyPath":"update_time", "x-id":"3r1f3whu", "title":"update_time", "type":"string" }, "transfer_amount":{ "x-keyPath":"transfer_amount", "x-id":"6w0qxub9", "title":"transfer_amount", "type":"number" }, "appid":{ "x-keyPath":"appid", "x-id":"7upcnr5l", "title":"appid", "type":"string" }, "out_detail_no":{ "x-keyPath":"out_detail_no", "x-id":"il1ro4wy", "title":"out_detail_no", "type":"string" }, "initiate_time":{ "x-keyPath":"initiate_time", "x-id":"edwd70d9", "title":"initiate_time", "type":"string" }, "fail_reason":{ "x-required":false, "x-keyPath":"fail_reason", "x-id":"ac96286", "format":"", "description":"", "type":"string", "x-index":2, "title":"fail_reason", "x-unique":false, "maxLength":4000 }, "transfer_remark":{ "x-keyPath":"transfer_remark", "x-id":"0eg5p1u7", "title":"transfer_remark", "type":"string" } } }, "intent":"create", "uuid":"afb7e07d-2f43-4a03-a865-7606b16bdffa", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "batch_id":{ "x-required":true, "x-keyPath":"", "x-id":"bc9b069", "format":"", "description":"", "type":"string", "x-index":2, "title":"batch_id", "x-unique":false, "maxLength":4000 }, "detail_id":{ "x-required":true, "x-keyPath":"", "x-id":"999cd68", "format":"", "description":"", "type":"string", "x-index":4, "title":"detail_id", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"getTransferDetailByNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{{params.batch_id}}/details/detail-id/{{params.detail_id}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商家明细单号查单接口。商户可以通过该接口查询转账批次单以及指定状态的转账明细单。返回消息中包含微信批次单号、批次状态、批次类型、转账总金额、转账总笔数、成功金额、失败金额等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/get-transfer-batch-by-out-no.html", "title":"通过商家批次单号查询批次单", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"tt8nxn1r", "title":"value", "type":"object", "properties":{ "offset":{ "x-keyPath":"offset", "x-id":"vni7cs5v", "title":"offset", "type":"number" }, "transfer_detail_list":{ "x-keyPath":"transfer_detail_list", "x-id":"sbkcbnjv", "title":"transfer_detail_list", "type":"array", "items":{ "x-keyPath":"", "x-id":"7lm3ru2y", "title":"value", "type":"object", "properties":{ "detail_status":{ "x-keyPath":"$item.detail_status", "x-id":"zed3ksld", "title":"detail_status", "type":"string" }, "out_detail_no":{ "x-keyPath":"$item.out_detail_no", "x-id":"dc77u5w0", "title":"out_detail_no", "type":"string" }, "detail_id":{ "x-keyPath":"$item.detail_id", "x-id":"8kb5l2g6", "title":"detail_id", "type":"string" } } } }, "limit":{ "x-keyPath":"limit", "x-id":"je33724s", "title":"limit", "type":"number" }, "transfer_batch":{ "x-keyPath":"", "x-id":"vimse3se", "title":"transfer_batch", "type":"object", "properties":{ "mchid":{ "x-keyPath":"transfer_batch.mchid", "x-id":"gyr2ytxm", "title":"mchid", "type":"string" }, "create_time":{ "x-keyPath":"transfer_batch.create_time", "x-id":"p490sv00", "title":"create_time", "type":"string" }, "success_amount":{ "x-keyPath":"transfer_batch.success_amount", "x-id":"wb385p3t", "title":"success_amount", "type":"number" }, "batch_id":{ "x-keyPath":"transfer_batch.batch_id", "x-id":"3by4s5im", "title":"batch_id", "type":"string" }, "success_num":{ "x-keyPath":"transfer_batch.success_num", "x-id":"zshufuyy", "title":"success_num", "type":"number" }, "batch_status":{ "x-keyPath":"transfer_batch.batch_status", "x-id":"93wdtze6", "title":"batch_status", "type":"string" }, "out_batch_no":{ "x-keyPath":"transfer_batch.out_batch_no", "x-id":"iu7e75ki", "title":"out_batch_no", "type":"string" }, "batch_name":{ "x-keyPath":"transfer_batch.batch_name", "x-id":"vi6dhkcd", "title":"batch_name", "type":"string" }, "update_time":{ "x-keyPath":"transfer_batch.update_time", "x-id":"wnab9di0", "title":"update_time", "type":"string" }, "fail_amount":{ "x-keyPath":"transfer_batch.fail_amount", "x-id":"go67l68p", "title":"fail_amount", "type":"number" }, "total_amount":{ "x-keyPath":"transfer_batch.total_amount", "x-id":"bqj66si3", "title":"total_amount", "type":"number" }, "appid":{ "x-keyPath":"transfer_batch.appid", "x-id":"3rnhqim6", "title":"appid", "type":"string" }, "total_num":{ "x-keyPath":"transfer_batch.total_num", "x-id":"oiqtwxw5", "title":"total_num", "type":"number" }, "batch_remark":{ "x-keyPath":"transfer_batch.batch_remark", "x-id":"y0c9i9xk", "title":"batch_remark", "type":"string" }, "batch_type":{ "x-keyPath":"transfer_batch.batch_type", "x-id":"yknu39zm", "title":"batch_type", "type":"string" }, "fail_num":{ "x-keyPath":"transfer_batch.fail_num", "x-id":"sj1ttwvg", "title":"fail_num", "type":"number" }, "transfer_scene_id":{ "x-keyPath":"transfer_batch.transfer_scene_id", "x-id":"ne1syuzw", "title":"transfer_scene_id", "type":"string" } } } } }, "intent":"create", "uuid":"6dcbfcb5-a913-40b4-8eca-c2a9ef06f5e5", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "offset":{ "x-required":false, "x-keyPath":"", "x-id":"6662a0a", "format":"", "description":"", "type":"number", "x-index":6, "title":"offset", "x-unique":false }, "detail_status":{ "x-required":false, "x-keyPath":"", "x-id":"9d42f89", "format":"", "description":"", "type":"string", "x-index":10, "title":"detail_status", "x-unique":false, "maxLength":4000 }, "limit":{ "x-required":false, "x-keyPath":"", "x-id":"64d95ca", "format":"", "description":"", "type":"number", "x-index":8, "title":"limit", "x-unique":false }, "out_batch_no":{ "x-required":true, "x-keyPath":"", "x-id":"9253263", "format":"", "description":"", "type":"string", "x-index":2, "title":"out_batch_no", "x-unique":false, "maxLength":4000 }, "need_query_detail":{ "x-required":true, "x-keyPath":"", "x-id":"61a442d", "format":"", "name":"need_query_detail", "description":"", "type":"boolean", "x-index":4, "title":"need_query_detail", "x-unique":false } }, "required":[] }, "name":"getTransferBatchByOutNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{ "offset":"{{params.offset}}", "detail_status":"{{params.detail_status}}", "limit":"{{params.limit}}", "need_query_detail":"{{params.need_query_detail}}" }, "key":"2aa44492cd7fb8" } }, "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{{params.out_batch_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"微信批次单号查单接口。商户可以通过该接口查询转账批次单以及指定状态的转账明细单。返回消息中包含微信批次单号、批次状态、批次类型、转账总金额、转账总笔数、成功金额、失败金额等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/get-transfer-batch-by-no.html", "title":"通过微信批次单号查询批次单", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"xylkkujc", "title":"value", "type":"object", "properties":{ "offset":{ "x-keyPath":"offset", "x-id":"0v1qulys", "title":"offset", "type":"number" }, "transfer_detail_list":{ "x-keyPath":"transfer_detail_list", "x-id":"91h33kik", "title":"transfer_detail_list", "type":"array", "items":{ "x-keyPath":"", "x-id":"oqplrdhf", "title":"value", "type":"object", "properties":{ "detail_status":{ "x-keyPath":"$item.detail_status", "x-id":"ip8f62yy", "title":"detail_status", "type":"string" }, "out_detail_no":{ "x-keyPath":"$item.out_detail_no", "x-id":"0v47bi41", "title":"out_detail_no", "type":"string" }, "detail_id":{ "x-keyPath":"$item.detail_id", "x-id":"toligoha", "title":"detail_id", "type":"string" } } } }, "limit":{ "x-keyPath":"limit", "x-id":"d063udym", "title":"limit", "type":"number" }, "transfer_batch":{ "x-keyPath":"", "x-id":"3yiatnci", "title":"transfer_batch", "type":"object", "properties":{ "mchid":{ "x-keyPath":"transfer_batch.mchid", "x-id":"a05z9r17", "title":"mchid", "type":"string" }, "create_time":{ "x-keyPath":"transfer_batch.create_time", "x-id":"1gjmo4yt", "title":"create_time", "type":"string" }, "success_amount":{ "x-keyPath":"transfer_batch.success_amount", "x-id":"fhz18dvb", "title":"success_amount", "type":"number" }, "batch_id":{ "x-keyPath":"transfer_batch.batch_id", "x-id":"8omafmul", "title":"batch_id", "type":"string" }, "success_num":{ "x-keyPath":"transfer_batch.success_num", "x-id":"0kch7k2l", "title":"success_num", "type":"number" }, "batch_status":{ "x-keyPath":"transfer_batch.batch_status", "x-id":"h15lx1m2", "title":"batch_status", "type":"string" }, "out_batch_no":{ "x-keyPath":"transfer_batch.out_batch_no", "x-id":"fa85p1mr", "title":"out_batch_no", "type":"string" }, "batch_name":{ "x-keyPath":"transfer_batch.batch_name", "x-id":"l2992dpz", "title":"batch_name", "type":"string" }, "update_time":{ "x-keyPath":"transfer_batch.update_time", "x-id":"zmf75mgz", "title":"update_time", "type":"string" }, "fail_amount":{ "x-keyPath":"transfer_batch.fail_amount", "x-id":"94nunai8", "title":"fail_amount", "type":"number" }, "total_amount":{ "x-keyPath":"transfer_batch.total_amount", "x-id":"dkz8q6h0", "title":"total_amount", "type":"number" }, "appid":{ "x-keyPath":"transfer_batch.appid", "x-id":"hdrr6fz7", "title":"appid", "type":"string" }, "total_num":{ "x-keyPath":"transfer_batch.total_num", "x-id":"1jbuafmc", "title":"total_num", "type":"number" }, "batch_remark":{ "x-keyPath":"transfer_batch.batch_remark", "x-id":"tz92aukf", "title":"batch_remark", "type":"string" }, "batch_type":{ "x-keyPath":"transfer_batch.batch_type", "x-id":"go0tswk2", "title":"batch_type", "type":"string" }, "fail_num":{ "x-keyPath":"transfer_batch.fail_num", "x-id":"55sow1sk", "title":"fail_num", "type":"number" }, "transfer_scene_id":{ "x-keyPath":"transfer_batch.transfer_scene_id", "x-id":"edfgzd7z", "title":"transfer_scene_id", "type":"string" } } } } }, "intent":"create", "uuid":"d1423c16-df9b-4d68-b622-0d450373be42", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "offset":{ "x-required":false, "x-keyPath":"", "x-id":"81539be", "format":"", "description":"", "type":"number", "x-index":4, "title":"offset", "x-unique":false }, "batch_id":{ "x-required":true, "x-keyPath":"", "x-id":"81d19b5", "format":"", "description":"", "type":"string", "x-index":10, "title":"batch_id", "x-unique":false, "maxLength":4000 }, "detail_status":{ "x-required":false, "x-keyPath":"", "x-id":"7bbe951", "format":"", "description":"", "type":"string", "x-index":8, "title":"detail_status", "x-unique":false, "maxLength":4000 }, "limit":{ "x-required":false, "x-keyPath":"", "x-id":"614c5af", "format":"", "description":"", "type":"number", "x-index":6, "title":"limit", "x-unique":false }, "need_query_detail":{ "x-required":true, "x-keyPath":"", "x-id":"a6e05c8", "format":"", "description":"", "type":"boolean", "x-index":2, "title":"need_query_detail", "x-unique":false } }, "required":[] }, "name":"getTransferBatchByNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{ "offset":"{{params.offset}}", "detail_status":"{{params.detail_status}}", "limit":"{{params.limit}}", "need_query_detail":"{{params.need_query_detail}}" }, "key":"28b0d79004d820" } }, "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{{params.batch_id}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"发起商家转账接口。商户可以通过该接口同时向多个用户微信零钱进行转账操作。请求消息中应包含商家批次单号、转账名称、appid、转账总金额、转账总笔数、转账openid、收款用户姓名等信息。注意受理成功将返回批次单号,此时并不代表转账成功,请通过查单接口查询单据的付款状态\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/initiate-batch-transfer.html", "title":"发起商家转账", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"a3sq52ef", "title":"value", "type":"object", "properties":{ "outBatchNo":{ "x-keyPath":"outBatchNo", "x-id":"ccexf1jz", "title":"outBatchNo", "type":"string" }, "createTime":{ "x-keyPath":"createTime", "x-id":"jzoiaupd", "title":"createTime", "type":"string" }, "batchId":{ "x-keyPath":"batchId", "x-id":"0yr0rqcp", "title":"batchId", "type":"string" }, "batchStatus":{ "x-keyPath":"batchStatus", "x-id":"jz5z13s8", "title":"batchStatus", "type":"string" } } }, "intent":"create", "uuid":"3c30b490-71c4-48ac-807d-844f4a6d88fc", "isNameInValid":false, "isShow":true, "tags":"商家转账到零钱(旧)", "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "batch_name":{ "x-required":true, "x-keyPath":"", "x-id":"8868746", "format":"", "description":"", "type":"string", "x-index":4, "title":"batch_name", "x-unique":false, "maxLength":4000 }, "transfer_detail_list":{ "x-required":true, "x-keyPath":"", "x-id":"9f956db", "format":"", "description":"", "type":"array", "x-index":12, "title":"transfer_detail_list", "items":{ "format":"", "type":"object", "properties":{ "transfer_amount":{ "x-required":true, "x-keyPath":"", "x-id":"b3c0c24", "format":"", "name":"transfer_amount", "description":"", "type":"number", "x-index":4, "title":"transfer_amount", "x-unique":false }, "openid":{ "x-required":true, "x-keyPath":"", "x-id":"8771fc0", "format":"", "name":"openid", "description":"", "type":"string", "x-index":8, "title":"openid", "x-unique":false, "maxLength":4000 }, "user_name":{ "x-keyPath":"", "x-id":"8b7b064", "format":"", "description":"", "isEnum":false, "pId":"9f956db", "type":"string", "x-index":10, "title":"user_name", "x-unique":false, "x-required":false, "name":"user_name", "maxLength":4000 }, "out_detail_no":{ "x-required":true, "x-keyPath":"", "x-id":"8ea1f98", "format":"", "name":"out_detail_no", "description":"", "type":"string", "x-index":2, "title":"out_detail_no", "x-unique":false, "maxLength":4000 }, "transfer_remark":{ "x-required":true, "x-keyPath":"", "x-id":"84aec40", "format":"", "name":"transfer_remark", "description":"", "type":"string", "x-index":6, "title":"transfer_remark", "x-unique":false, "maxLength":4000 } } }, "x-unique":false }, "total_amount":{ "x-required":true, "x-keyPath":"", "x-id":"84ae30d", "format":"", "description":"", "type":"number", "x-index":8, "title":"total_amount", "x-unique":false }, "total_num":{ "x-required":true, "x-keyPath":"", "x-id":"abf7b0f", "format":"", "description":"", "type":"number", "x-index":10, "title":"total_num", "x-unique":false }, "out_batch_no":{ "x-required":true, "x-keyPath":"", "x-id":"79039ce", "format":"", "description":"", "type":"string", "x-index":2, "title":"out_batch_no", "x-unique":false, "maxLength":4000 }, "batch_remark":{ "x-required":true, "x-keyPath":"", "x-id":"a176a1b", "format":"", "description":"", "type":"string", "x-index":6, "title":"batch_remark", "x-unique":false, "maxLength":4000 }, "transfer_scene_id":{ "x-required":false, "x-keyPath":"", "x-id":"7debfc6", "format":"", "description":"", "type":"string", "x-index":14, "title":"transfer_scene_id", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"batches", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"out_batch_no\": \"{{params.out_batch_no}}\",\n \"batch_name\": \"{{params.batch_name}}\",\n \"batch_remark\": \"{{params.batch_remark}}\",\n \"total_amount\": {{params.total_amount}},\n \"total_num\": {{params.total_num}},\n \"transfer_detail_list\": {{params.transfer_detail_list}},\n \"transfer_scene_id\": \"{{params.transfer_scene_id}}\"\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/transfer/batches" }, "isCollapse":true }, { "isTitleInValid":false, "presetParams":{ "functionName":{ "x-required":true, "x-id":"q1u9kwph", "description":"微信支付直连,回调工作流ID或回调地址", "title":"回调地址", "type":"_wxpaydc_", "x-index":1 } }, "description":"商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易会话标识后再按Native、JSAPI、APP等不同场景生成交易串调起支付。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_1.shtml", "type":"http", "title":"JSAPI下单", "outParams":{ "x-keyPath":"", "x-id":"8p76ze4g", "title":"value", "type":"object", "properties":{ "timeStamp":{ "x-keyPath":"timeStamp", "x-id":"7cdqortc", "title":"timeStamp", "type":"string" }, "packageVal":{ "x-keyPath":"packageVal", "x-id":"7bpk4chq", "title":"packageVal", "type":"string" }, "paySign":{ "x-keyPath":"paySign", "x-id":"na4l8sfr", "title":"paySign", "type":"string" }, "appId":{ "x-keyPath":"appId", "x-id":"arou9q74", "title":"appId", "type":"string" }, "signType":{ "x-keyPath":"signType", "x-id":"1kv5p5dh", "title":"signType", "type":"string" }, "nonceStr":{ "x-keyPath":"nonceStr", "x-id":"24kaz0hd", "title":"nonceStr", "type":"string" } } }, "uuid":"48c297df-c619-4b59-9def-7d57182ed992", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "time_expire":{ "x-required":false, "x-id":"657bf0b", "name":"time_expire", "title":"交易结束时间", "type":"string", "x-index":3 }, "amount":{ "x-required":true, "x-id":"b46b080", "name":"amount", "title":"订单金额", "type":"object", "list":[ { "x-required":true, "x-id":"7649d48", "name":"total", "pId":"b46b080", "title":"总金额", "type":"number" }, { "x-required":false, "x-id":"79081ee", "name":"currency", "pId":"b46b080", "title":"货币类型", "type":"string" } ], "x-index":7, "properties":{ "total":{ "x-required":true, "x-id":"7649d48", "name":"total", "title":"总金额", "type":"number", "x-index":1 }, "currency":{ "x-required":false, "x-id":"79081ee", "name":"currency", "title":"货币类型", "type":"string", "x-index":2 } }, "required":[ "total" ] }, "out_trade_no":{ "x-required":true, "x-id":"aa37c2a", "name":"out_trade_no", "title":"商户订单号", "type":"string", "x-index":2 }, "goods_tag":{ "x-required":false, "x-id":"85171f1", "name":"goods_tag", "title":"订单优惠标记", "type":"string", "x-index":5 }, "settle_info":{ "x-required":false, "x-id":"7f6ce12", "name":"settle_info", "title":"结算信息", "type":"object", "list":[ { "x-required":false, "x-id":"9fa05bb", "name":"profit_sharing", "pId":"7f6ce12", "title":"是否指定分账", "type":"boolean" } ], "x-index":11, "properties":{ "profit_sharing":{ "x-required":false, "x-id":"9fa05bb", "name":"profit_sharing", "title":"是否指定分账", "type":"boolean", "x-index":1 } }, "required":[] }, "description":{ "x-required":true, "x-id":"66816ec", "name":"description", "title":"商品描述", "type":"string", "x-index":1 }, "attach":{ "x-required":false, "x-id":"a5f5f0b", "name":"attach", "title":"附加数据", "type":"string", "x-index":4 }, "detail":{ "x-required":false, "x-id":"63d80f9", "name":"detail", "title":"优惠功能", "type":"object", "list":[ { "x-required":false, "x-id":"907ff77", "name":"invoice_id", "pId":"63d80f9", "title":"商品小票ID", "type":"string" }, { "x-required":false, "x-id":"996221b", "name":"goods_detail", "pId":"63d80f9", "title":"单品列表", "type":"array", "list":[ { "x-required":false, "x-id":"9adcb42", "name":"goods_name", "pId":"996221b", "title":"商品名称", "type":"string" }, { "x-required":false, "x-id":"956ff3f", "name":"wechatpay_goods_id", "pId":"996221b", "title":"微信支付商品编码", "type":"string" }, { "x-required":true, "x-id":"71f9f9b", "name":"quantity", "pId":"996221b", "title":"商品数量", "type":"number" }, { "x-required":true, "x-id":"817d099", "name":"merchant_goods_id", "pId":"996221b", "title":"商户侧商品编码", "type":"string" }, { "x-required":true, "x-id":"a07d0d4", "name":"unit_price", "pId":"996221b", "title":"商品单价", "type":"number" } ], "items":{ "x-required":false, "type":"object", "properties":{ "goods_name":{ "x-required":false, "x-id":"9adcb42", "name":"goods_name", "title":"商品名称", "type":"string" }, "wechatpay_goods_id":{ "x-required":false, "x-id":"956ff3f", "name":"wechatpay_goods_id", "title":"微信支付商品编码", "type":"string" }, "quantity":{ "x-required":true, "x-id":"71f9f9b", "name":"quantity", "title":"商品数量", "type":"number" }, "merchant_goods_id":{ "x-required":true, "x-id":"817d099", "name":"merchant_goods_id", "title":"商户侧商品编码", "type":"string" }, "unit_price":{ "x-required":true, "x-id":"a07d0d4", "name":"unit_price", "title":"商品单价", "type":"number" } }, "required":[ "quantity", "merchant_goods_id", "unit_price" ] } }, { "x-required":false, "x-id":"7a897fa", "name":"cost_price", "pId":"63d80f9", "title":"订单原价", "type":"number" } ], "x-index":9, "properties":{ "invoice_id":{ "x-required":false, "x-id":"907ff77", "name":"invoice_id", "title":"商品小票ID", "type":"string", "x-index":1 }, "goods_detail":{ "x-required":false, "x-id":"996221b", "name":"goods_detail", "title":"单品列表", "type":"array", "list":[ { "x-required":false, "x-id":"9adcb42", "name":"goods_name", "pId":"996221b", "title":"商品名称", "type":"string", "x-index":1 }, { "x-required":false, "x-id":"956ff3f", "name":"wechatpay_goods_id", "pId":"996221b", "title":"微信支付商品编码", "type":"string", "x-index":2 }, { "x-required":true, "x-id":"71f9f9b", "name":"quantity", "pId":"996221b", "title":"商品数量", "type":"number", "x-index":3 }, { "x-required":true, "x-id":"817d099", "name":"merchant_goods_id", "pId":"996221b", "title":"商户侧商品编码", "type":"string", "x-index":4 }, { "x-required":true, "x-id":"a07d0d4", "name":"unit_price", "pId":"996221b", "title":"商品单价", "type":"number", "x-index":5 } ], "x-index":2, "items":{ "x-required":false, "type":"object", "properties":{ "goods_name":{ "x-required":false, "x-id":"9adcb42", "name":"goods_name", "title":"商品名称", "type":"string", "x-index":1 }, "wechatpay_goods_id":{ "x-required":false, "x-id":"956ff3f", "name":"wechatpay_goods_id", "title":"微信支付商品编码", "type":"string", "x-index":2 }, "quantity":{ "x-required":true, "x-id":"71f9f9b", "name":"quantity", "title":"商品数量", "type":"number", "x-index":3 }, "merchant_goods_id":{ "x-required":true, "x-id":"817d099", "name":"merchant_goods_id", "title":"商户侧商品编码", "type":"string", "x-index":4 }, "unit_price":{ "x-required":true, "x-id":"a07d0d4", "name":"unit_price", "title":"商品单价", "type":"number", "x-index":5 } }, "required":[ "quantity", "merchant_goods_id", "unit_price" ] } }, "cost_price":{ "x-required":false, "x-id":"7a897fa", "name":"cost_price", "title":"订单原价", "type":"number", "x-index":3 } }, "required":[] }, "payer":{ "x-required":true, "x-id":"9295ba9", "name":"payer", "title":"支付者", "type":"object", "list":[ { "x-required":true, "x-id":"5ffd75a", "name":"openid", "pId":"9295ba9", "title":"用户标识", "type":"string" } ], "x-index":8, "properties":{ "openid":{ "x-required":true, "x-id":"5ffd75a", "name":"openid", "title":"用户标识", "type":"string", "x-index":1 } }, "required":[ "openid" ] }, "support_fapiao":{ "x-required":false, "x-id":"961a36e", "name":"support_fapiao", "title":"电子发票入口开放标识", "type":"boolean", "x-index":6 }, "scene_info":{ "x-required":false, "x-id":"83bbee5", "name":"scene_info", "title":"场景信息", "type":"object", "list":[ { "x-required":false, "x-id":"9e8b52f", "name":"store_info", "pId":"83bbee5", "title":"商户门店信息", "type":"object", "list":[ { "x-required":false, "x-id":"9683c04", "name":"address", "pId":"9e8b52f", "title":"详细地址", "type":"string" }, { "x-required":false, "x-id":"821a731", "name":"area_code", "pId":"9e8b52f", "title":"地区编码", "type":"string" }, { "x-required":false, "x-id":"96e2bab", "name":"name", "pId":"9e8b52f", "title":"门店名称", "type":"string" }, { "x-required":true, "x-id":"a7bd745", "name":"id", "pId":"9e8b52f", "title":"门店编号", "type":"string" } ], "properties":{ "address":{ "x-required":false, "x-id":"9683c04", "name":"address", "title":"详细地址", "type":"string" }, "area_code":{ "x-required":false, "x-id":"821a731", "name":"area_code", "title":"地区编码", "type":"string" }, "name":{ "x-required":false, "x-id":"96e2bab", "name":"name", "title":"门店名称", "type":"string" }, "id":{ "x-required":true, "x-id":"a7bd745", "name":"id", "title":"门店编号", "type":"string" } }, "required":[ "id" ] }, { "x-required":false, "x-id":"92960b7", "name":"device_id", "pId":"83bbee5", "title":"商户端设备号\t", "type":"string" }, { "x-required":true, "x-id":"67ef580", "name":"payer_client_ip", "pId":"83bbee5", "title":"用户终端IP", "type":"string" } ], "x-index":10, "properties":{ "store_info":{ "x-required":false, "x-id":"9e8b52f", "name":"store_info", "title":"商户门店信息", "type":"object", "list":[ { "x-required":false, "x-id":"9683c04", "name":"address", "pId":"9e8b52f", "title":"详细地址", "type":"string" }, { "x-required":false, "x-id":"821a731", "name":"area_code", "pId":"9e8b52f", "title":"地区编码", "type":"string" }, { "x-required":false, "x-id":"96e2bab", "name":"name", "pId":"9e8b52f", "title":"门店名称", "type":"string" }, { "x-required":true, "x-id":"a7bd745", "name":"id", "pId":"9e8b52f", "title":"门店编号", "type":"string" } ], "x-index":1, "properties":{ "address":{ "x-required":false, "x-id":"9683c04", "name":"address", "title":"详细地址", "type":"string", "x-index":1 }, "area_code":{ "x-required":false, "x-id":"821a731", "name":"area_code", "title":"地区编码", "type":"string", "x-index":2 }, "name":{ "x-required":false, "x-id":"96e2bab", "name":"name", "title":"门店名称", "type":"string", "x-index":3 }, "id":{ "x-required":true, "x-id":"a7bd745", "name":"id", "title":"门店编号", "type":"string", "x-index":4 } }, "required":[ "id" ] }, "device_id":{ "x-required":false, "x-id":"92960b7", "name":"device_id", "title":"商户端设备号\t", "type":"string", "x-index":2 }, "payer_client_ip":{ "x-required":true, "x-id":"67ef580", "name":"payer_client_ip", "title":"用户终端IP", "type":"string", "x-index":3 } }, "required":[ "payer_client_ip" ] } }, "required":[ "appid", "mchid", "description", "out_trade_no", "notify_url", "amount", "payer" ] }, "name":"unifiedOrder", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"mchid\": \"{{vars.mchid}}\",\n \"description\": \"{{params.description}}\",\n \"out_trade_no\": \"{{params.out_trade_no}}\",\n \"time_expire\": \"{{params.time_expire}}\",\n \"attach\": \"{{params.attach}}\",\n \"notify_url\": \"{{vars.notifyUrlPay}}\",\n \"goods_tag\": \"{{params.goods_tag}}\",\n \"support_fapiao\": {{params.support_fapiao}},\n \"amount\": {{params.amount}},\n \"payer\": {{params.payer}},\n \"detail\": {{params.detail}},\n \"scene_info\": {{params.scene_info}},\n \"settle_info\": {{params.settle_info}}\n}\n", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询\n注意:\n查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同\n\n\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml", "type":"http", "title":"查询订单-微信支付订单号查询", "outParams":{ "x-keyPath":"", "x-id":"ly213kdx", "title":"value", "type":"object", "properties":{ "transaction_id":{ "x-keyPath":"transaction_id", "x-id":"jqtopuq0", "title":"transaction_id", "type":"string" }, "amount":{ "x-keyPath":"", "x-id":"1q76c9cx", "title":"amount", "type":"object", "properties":{ "payer_total":{ "x-keyPath":"amount.payer_total", "x-id":"ociza2r6", "title":"payer_total", "type":"number" }, "total":{ "x-keyPath":"amount.total", "x-id":"0uydz8py", "title":"total", "type":"number" }, "currency":{ "x-keyPath":"amount.currency", "x-id":"5soaq71m", "title":"currency", "type":"string" }, "payer_currency":{ "x-keyPath":"amount.payer_currency", "x-id":"jx06skvo", "title":"payer_currency", "type":"string" } } }, "mchid":{ "x-keyPath":"mchid", "x-id":"tbj66xmh", "title":"mchid", "type":"string" }, "trade_state":{ "x-keyPath":"trade_state", "x-id":"s4sjjlua", "title":"trade_state", "type":"string" }, "bank_type":{ "x-keyPath":"bank_type", "x-id":"n1h47pm5", "title":"bank_type", "type":"string" }, "promotion_detail":{ "x-keyPath":"promotion_detail", "x-id":"djku47ev", "title":"promotion_detail", "type":"array", "items":{ "x-keyPath":"$item", "x-id":"3ggn3n2k", "title":"value", "type":"string" } }, "success_time":{ "x-keyPath":"success_time", "x-id":"4m5b4q4l", "title":"success_time", "type":"string" }, "payer":{ "x-keyPath":"", "x-id":"pwxw08yv", "title":"payer", "type":"object", "properties":{ "openid":{ "x-keyPath":"payer.openid", "x-id":"pvjpp0so", "title":"openid", "type":"string" } } }, "out_trade_no":{ "x-keyPath":"out_trade_no", "x-id":"paon43ff", "title":"out_trade_no", "type":"string" }, "appid":{ "x-keyPath":"appid", "x-id":"m1mk6nfd", "title":"appid", "type":"string" }, "trade_state_desc":{ "x-keyPath":"trade_state_desc", "x-id":"1uxennpf", "title":"trade_state_desc", "type":"string" }, "trade_type":{ "x-keyPath":"trade_type", "x-id":"1u0lmcxf", "title":"trade_type", "type":"string" }, "attach":{ "x-keyPath":"attach", "x-id":"z7iurr88", "title":"attach", "type":"string" } } }, "uuid":"b6174cbb-9449-49a1-b9bf-f4a44946a692", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "transaction_id":{ "x-required":true, "x-id":"aabcb61", "name":"transaction_id", "title":"微信支付订单号", "type":"string", "x-index":1 } }, "required":[ "transaction_id" ] }, "name":"queryOrderByTransactionId", "calleeBody":{ "method":"GET", "query":{ "values":{ "type":"object", "value":{ "mchid":"{{vars.mchid}}" }, "key":"25981c9e65b1a0" } }, "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/id/{{params.transaction_id}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询\n注意:\n查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同\n\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml", "type":"http", "title":"查询订单-商户订单号查询", "outParams":{ "x-keyPath":"", "x-id":"tvx36581", "title":"value", "type":"object", "properties":{ "transaction_id":{ "x-keyPath":"transaction_id", "x-id":"9pcd7639", "title":"transaction_id", "type":"string" }, "amount":{ "x-keyPath":"", "x-id":"h5xm19mc", "title":"amount", "type":"object", "properties":{ "payer_total":{ "x-keyPath":"amount.payer_total", "x-id":"pynkbeve", "title":"payer_total", "type":"number" }, "total":{ "x-keyPath":"amount.total", "x-id":"y3vhgfwx", "title":"total", "type":"number" }, "currency":{ "x-keyPath":"amount.currency", "x-id":"gtwhpob2", "title":"currency", "type":"string" }, "payer_currency":{ "x-keyPath":"amount.payer_currency", "x-id":"56ih5p22", "title":"payer_currency", "type":"string" } } }, "mchid":{ "x-keyPath":"mchid", "x-id":"12ungfn5", "title":"mchid", "type":"string" }, "trade_state":{ "x-keyPath":"trade_state", "x-id":"45t7fkma", "title":"trade_state", "type":"string" }, "bank_type":{ "x-keyPath":"bank_type", "x-id":"fnn36k98", "title":"bank_type", "type":"string" }, "promotion_detail":{ "x-keyPath":"promotion_detail", "x-id":"1pzyxb0e", "title":"promotion_detail", "type":"array", "items":{ "x-keyPath":"$item", "x-id":"29m2sbgt", "title":"value", "type":"string" } }, "success_time":{ "x-keyPath":"success_time", "x-id":"zt842oau", "title":"success_time", "type":"string" }, "payer":{ "x-keyPath":"", "x-id":"uydordz8", "title":"payer", "type":"object", "properties":{ "openid":{ "x-keyPath":"payer.openid", "x-id":"tvlt8ifx", "title":"openid", "type":"string" } } }, "out_trade_no":{ "x-keyPath":"out_trade_no", "x-id":"nio0j6a3", "title":"out_trade_no", "type":"string" }, "appid":{ "x-keyPath":"appid", "x-id":"mm4711o8", "title":"appid", "type":"string" }, "trade_state_desc":{ "x-keyPath":"trade_state_desc", "x-id":"5awk2s1n", "title":"trade_state_desc", "type":"string" }, "trade_type":{ "x-keyPath":"trade_type", "x-id":"w9pxsm9k", "title":"trade_type", "type":"string" }, "attach":{ "x-keyPath":"attach", "x-id":"w2q6bqpp", "title":"attach", "type":"string" } } }, "uuid":"e08c57fb-7497-4fc1-89e7-292595b9cad6", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "out_trade_no":{ "x-required":true, "x-id":"79a65f8", "name":"out_trade_no", "title":"商户订单号", "type":"string", "x-index":1 } }, "required":[ "out_trade_no" ] }, "name":"queryOrderByOutTradeNo", "calleeBody":{ "method":"GET", "query":{ "values":{ "type":"object", "value":{ "mchid":"{{vars.mchid}}" }, "key":"40097b0954c390" } }, "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{{params.out_trade_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"以下情况需要调用关单接口:\n1、商户订单支付失败需要生成新单号重新发起支付,要对原订单号调用关单,避免重复支付;\n2、系统下单后,用户支付超时,系统退出不再受理,避免用户继续,请调用关单接口。\n注意:\n• 关单没有时间限制,建议在订单生成后间隔几分钟(最短5分钟)再调用关单接口,避免出现订单状态同步不及时导致关单失败。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml", "type":"http", "title":"关闭订单", "outParams":{ "x-keyPath":"", "x-id":"3k66lbyu", "title":"value", "type":"object", "properties":{} }, "uuid":"57e19c96-caf2-4ba9-af5e-4c8b5b4d5301", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "out_trade_no":{ "x-required":true, "x-id":"6f1829f", "name":"out_trade_no", "title":"商户订单号", "type":"string", "x-index":1 } }, "required":[ "mchid", "out_trade_no" ] }, "name":"closeOrder", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"mchid\": \"{{vars.mchid}}\"\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{{params.out_trade_no}}/close" }, "isCollapse":true }, { "isTitleInValid":false, "presetParams":{ "functionName":{ "x-required":true, "x-id":"q1u9kwpj", "description":"微信支付直连,回调工作流ID或回调地址", "title":"回调地址", "type":"_wxpaydc_", "x-index":1 } }, "description":"当交易发生之后一年内,由于买家或者卖家的原因需要退款时,卖家可以通过退款接口将支付金额退还给买家,微信支付将在收到退款请求并且验证成功之后,将支付款按原路退还至买家账号上。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml", "type":"http", "title":"申请退款", "outParams":{ "x-keyPath":"", "x-id":"fbssu1mu", "title":"value", "type":"object", "properties":{ "transaction_id":{ "x-keyPath":"transaction_id", "x-id":"eoqmee8c", "title":"transaction_id", "type":"string" }, "amount":{ "x-keyPath":"", "x-id":"jmg6ck1n", "title":"amount", "type":"object", "properties":{ "payer_total":{ "x-keyPath":"amount.payer_total", "x-id":"79l14lmw", "title":"payer_total", "type":"number" }, "settlement_total":{ "x-keyPath":"amount.settlement_total", "x-id":"shn3arae", "title":"settlement_total", "type":"number" }, "total":{ "x-keyPath":"amount.total", "x-id":"foahk38c", "title":"total", "type":"number" }, "payer_refund":{ "x-keyPath":"amount.payer_refund", "x-id":"qqr5wny2", "title":"payer_refund", "type":"number" }, "refund_fee":{ "x-keyPath":"amount.refund_fee", "x-id":"gsmcx6go", "title":"refund_fee", "type":"number" }, "discount_refund":{ "x-keyPath":"amount.discount_refund", "x-id":"ly1wic3y", "title":"discount_refund", "type":"number" }, "currency":{ "x-keyPath":"amount.currency", "x-id":"6oswcbax", "title":"currency", "type":"string" }, "from":{ "x-keyPath":"amount.from", "x-id":"ddup4f1i", "title":"from", "type":"array", "items":{ "x-keyPath":"$item", "x-id":"dw2r6uw7", "title":"value", "type":"string" } }, "settlement_refund":{ "x-keyPath":"amount.settlement_refund", "x-id":"5zqbyj09", "title":"settlement_refund", "type":"number" }, "refund":{ "x-keyPath":"amount.refund", "x-id":"0l84vwp2", "title":"refund", "type":"number" } } }, "out_trade_no":{ "x-keyPath":"out_trade_no", "x-id":"kft7i864", "title":"out_trade_no", "type":"string" }, "create_time":{ "x-keyPath":"create_time", "x-id":"7n7sti4j", "title":"create_time", "type":"string" }, "promotion_detail":{ "x-keyPath":"promotion_detail", "x-id":"x9z7s053", "title":"promotion_detail", "type":"array", "items":{ "x-keyPath":"$item", "x-id":"cb67iaqa", "title":"value", "type":"string" } }, "out_refund_no":{ "x-keyPath":"out_refund_no", "x-id":"mrgzgsaw", "title":"out_refund_no", "type":"string" }, "funds_account":{ "x-keyPath":"funds_account", "x-id":"3o8w3djf", "title":"funds_account", "type":"string" }, "channel":{ "x-keyPath":"channel", "x-id":"0zzwrkwd", "title":"channel", "type":"string" }, "success_time":{ "x-keyPath":"success_time", "x-id":"glzze9yv", "title":"success_time", "type":"string" }, "user_received_account":{ "x-keyPath":"user_received_account", "x-id":"3dnv4brc", "title":"user_received_account", "type":"string" }, "refund_id":{ "x-keyPath":"refund_id", "x-id":"kdzi35iv", "title":"refund_id", "type":"string" }, "status":{ "x-keyPath":"status", "x-id":"qwxtrpwt", "title":"status", "type":"string" } } }, "uuid":"e9051e29-da70-4330-aaef-2ebb139454fc", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "transaction_id":{ "x-required":false, "x-id":"a593a0d", "name":"transaction_id", "title":"微信支付订单号", "type":"string", "x-index":1 }, "reason":{ "x-required":false, "x-id":"9365274", "name":"reason", "title":"退款原因", "type":"string", "x-index":4 }, "amount":{ "x-required":true, "x-id":"7a805a8", "name":"amount", "title":"金额信息", "type":"object", "list":[ { "x-required":true, "x-keyPath":"", "x-id":"65ea3b9", "format":"", "name":"currency", "description":"符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。\n示例值:CNY", "pId":"7a805a8", "type":"string", "x-index":2, "title":"退款币种", "x-unique":false, "maxLength":4000 }, { "x-required":true, "x-id":"ae4ef43", "name":"refund", "pId":"7a805a8", "title":"退款金额", "type":"number" }, { "x-required":false, "x-id":"bcdf06f", "name":"from", "pId":"7a805a8", "title":"退款出资账户及金额", "type":"array", "list":[ { "x-required":true, "x-id":"87724ba", "name":"account", "pId":"bcdf06f", "title":"出资账户类型", "type":"string" }, { "x-required":true, "x-id":"a41f529", "name":"amount", "pId":"bcdf06f", "title":"出资金额", "type":"number" } ], "items":{ "x-required":false, "type":"object", "properties":{ "amount":{ "x-required":true, "x-id":"a41f529", "name":"amount", "title":"出资金额", "type":"number" }, "account":{ "x-required":true, "x-id":"87724ba", "name":"account", "title":"出资账户类型", "type":"string" } }, "required":[ "account", "amount" ] } }, { "x-required":true, "x-id":"682593a", "name":"total", "pId":"7a805a8", "title":"原订单金额", "type":"number" } ], "x-index":6, "properties":{ "total":{ "x-required":true, "x-id":"682593a", "name":"total", "title":"原订单金额", "type":"number", "x-index":5 }, "from":{ "x-required":false, "x-id":"bcdf06f", "name":"from", "title":"退款出资账户及金额", "type":"array", "list":[ { "x-required":true, "x-id":"87724ba", "name":"account", "pId":"bcdf06f", "title":"出资账户类型", "type":"string", "x-index":1 }, { "x-required":true, "x-id":"a41f529", "name":"amount", "pId":"bcdf06f", "title":"出资金额", "type":"number", "x-index":2 } ], "x-index":4, "items":{ "x-required":false, "type":"object", "properties":{ "amount":{ "x-required":true, "x-id":"a41f529", "name":"amount", "title":"出资金额", "type":"number", "x-index":2 }, "account":{ "x-required":true, "x-id":"87724ba", "name":"account", "title":"出资账户类型", "type":"string", "x-index":1 } }, "required":[ "account", "amount" ] } }, "currency":{ "x-required":true, "x-keyPath":"", "x-id":"65ea3b9", "format":"", "name":"currency", "description":"符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。\n示例值:CNY", "type":"string", "x-index":2, "title":"退款币种", "x-unique":false, "maxLength":4000 }, "refund":{ "x-required":true, "x-id":"ae4ef43", "name":"refund", "title":"退款金额", "type":"number", "x-index":3 } }, "required":[ "refund", "total" ] }, "out_trade_no":{ "x-required":false, "x-id":"a8ec754", "name":"out_trade_no", "title":"商户订单号", "type":"string", "x-index":2 }, "out_refund_no":{ "x-required":true, "x-id":"7a58a9a", "name":"out_refund_no", "title":"商户退款单号", "type":"string", "x-index":3 }, "funds_account":{ "x-required":false, "x-id":"917d277", "name":"funds_account", "title":"退款资金来源", "type":"string", "x-index":5 }, "goods_detail":{ "x-required":false, "x-id":"9e076fb", "name":"goods_detail", "title":"退款商品", "type":"array", "list":[ { "x-required":false, "x-id":"a0602c9", "name":"goods_name", "pId":"9e076fb", "title":"商品名称", "type":"string", "x-index":1 }, { "x-required":false, "x-id":"78dfc51", "name":"wechatpay_goods_id", "pId":"9e076fb", "title":"微信支付商品编码", "type":"string", "x-index":2 }, { "x-required":true, "x-id":"6e24aef", "name":"merchant_goods_id", "pId":"9e076fb", "title":"商户侧商品编码", "type":"string", "x-index":3 }, { "x-required":true, "x-id":"ab0bced", "name":"refund_amount", "pId":"9e076fb", "title":"商品退款金额", "type":"number", "x-index":4 }, { "x-required":true, "x-id":"a0affba", "name":"unit_price", "pId":"9e076fb", "title":"商品单价", "type":"number", "x-index":5 }, { "x-required":true, "x-id":"afcca20", "name":"refund_quantity", "pId":"9e076fb", "title":"商品退货数量", "type":"number", "x-index":6 } ], "x-index":7, "items":{ "x-required":false, "type":"object", "properties":{ "goods_name":{ "x-required":false, "x-id":"a0602c9", "name":"goods_name", "title":"商品名称", "type":"string", "x-index":1 }, "wechatpay_goods_id":{ "x-required":false, "x-id":"78dfc51", "name":"wechatpay_goods_id", "title":"微信支付商品编码", "type":"string", "x-index":2 }, "merchant_goods_id":{ "x-required":true, "x-id":"6e24aef", "name":"merchant_goods_id", "title":"商户侧商品编码", "type":"string", "x-index":3 }, "refund_amount":{ "x-required":true, "x-id":"ab0bced", "name":"refund_amount", "title":"商品退款金额", "type":"number", "x-index":4 }, "unit_price":{ "x-required":true, "x-id":"a0affba", "name":"unit_price", "title":"商品单价", "type":"number", "x-index":5 }, "refund_quantity":{ "x-required":true, "x-id":"afcca20", "name":"refund_quantity", "title":"商品退货数量", "type":"number", "x-index":6 } }, "required":[ "merchant_goods_id", "refund_amount", "unit_price", "refund_quantity" ] } } }, "required":[ "out_refund_no", "amount", "currency" ] }, "name":"refund", "calleeBody":{ "method":"POST", "query":{ "values":{ "type":"object", "value":{}, "key":"2387be55782182" } }, "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"transaction_id\": \"{{params.transaction_id}}\",\n \"out_trade_no\": \"{{params.out_trade_no}}\",\n \"out_refund_no\": \"{{params.out_refund_no}}\",\n \"reason\": \"{{params.reason}}\",\n \"notify_url\": \"{{vars.notifyUrlRefunds}}\",\n \"funds_account\": \"{{params.funds_account}}\",\n \"amount\": {{params.amount}},\n \"currency\": \"{{params.currency}}\",\n \"goods_detail\": {{params.goods_detail}}\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/refund/domestic/refunds" }, "isCollapse":true }, { "isTitleInValid":false, "description":"提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,建议在提交退款申请后1分钟发起查询退款状态,一般来说零钱支付的退款5分钟内到账,银行卡支付的退款1-3个工作日到账。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml", "type":"http", "title":"查询单笔退款", "outParams":{ "x-keyPath":"", "x-id":"mx7ko99g", "title":"value", "type":"object", "properties":{ "transaction_id":{ "x-keyPath":"transaction_id", "x-id":"ha9p3id8", "title":"transaction_id", "type":"string" }, "amount":{ "x-keyPath":"", "x-id":"f2pvechl", "title":"amount", "type":"object", "properties":{ "payer_total":{ "x-keyPath":"amount.payer_total", "x-id":"73s7baat", "title":"payer_total", "type":"number" }, "settlement_total":{ "x-keyPath":"amount.settlement_total", "x-id":"kybrs4b6", "title":"settlement_total", "type":"number" }, "total":{ "x-keyPath":"amount.total", "x-id":"fomnagov", "title":"total", "type":"number" }, "payer_refund":{ "x-keyPath":"amount.payer_refund", "x-id":"2qk18udx", "title":"payer_refund", "type":"number" }, "refund_fee":{ "x-keyPath":"amount.refund_fee", "x-id":"bo3liaaq", "title":"refund_fee", "type":"number" }, "discount_refund":{ "x-keyPath":"amount.discount_refund", "x-id":"2vst6zt3", "title":"discount_refund", "type":"number" }, "currency":{ "x-keyPath":"amount.currency", "x-id":"t91hs0kb", "title":"currency", "type":"string" }, "from":{ "x-keyPath":"amount.from", "x-id":"bcagbpoj", "title":"from", "type":"array", "items":{ "x-keyPath":"$item", "x-id":"v9qhe6kf", "title":"value", "type":"string" } }, "settlement_refund":{ "x-keyPath":"amount.settlement_refund", "x-id":"d8fze7ry", "title":"settlement_refund", "type":"number" }, "refund":{ "x-keyPath":"amount.refund", "x-id":"te627uve", "title":"refund", "type":"number" } } }, "out_trade_no":{ "x-keyPath":"out_trade_no", "x-id":"hryj19fr", "title":"out_trade_no", "type":"string" }, "create_time":{ "x-keyPath":"create_time", "x-id":"pi8v8w8c", "title":"create_time", "type":"string" }, "promotion_detail":{ "x-keyPath":"promotion_detail", "x-id":"fdbojfv1", "title":"promotion_detail", "type":"array", "items":{ "x-keyPath":"$item", "x-id":"e31qihr0", "title":"value", "type":"string" } }, "out_refund_no":{ "x-keyPath":"out_refund_no", "x-id":"zp4lp60b", "title":"out_refund_no", "type":"string" }, "funds_account":{ "x-keyPath":"funds_account", "x-id":"kq1kx6to", "title":"funds_account", "type":"string" }, "channel":{ "x-keyPath":"channel", "x-id":"uggwa6ae", "title":"channel", "type":"string" }, "success_time":{ "x-keyPath":"success_time", "x-id":"wm8ykfha", "title":"success_time", "type":"string" }, "user_received_account":{ "x-keyPath":"user_received_account", "x-id":"tykejz29", "title":"user_received_account", "type":"string" }, "refund_id":{ "x-keyPath":"refund_id", "x-id":"e72t4hc5", "title":"refund_id", "type":"string" }, "status":{ "x-keyPath":"status", "x-id":"01jj6z0g", "title":"status", "type":"string" } } }, "uuid":"1a7eec48-545a-459c-8609-bac1ad3ad229", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "out_refund_no":{ "x-required":true, "x-id":"7e4ae6e", "name":"out_refund_no", "title":"商户退款单号", "type":"string", "x-index":1 } }, "required":[ "out_refund_no" ] }, "name":"queryRefund", "calleeBody":{ "method":"GET", "query":{ "values":{ "type":"object", "value":{}, "key":"26a87b206815ca" } }, "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{{params.out_refund_no}}" }, "isCollapse":true }, { "isTitleInValid":false, "description":"微信支付按天提供交易账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含交易相关的金额、时间、营销等信息,供商户核对订单、退款、银行到账等情况。\n注意:\n• 微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账单中,跟原支付单订单号一致;\n\n• 对账单中涉及金额的字段单位为“元”;\n\n• 对账单接口只能下载三个月以内的账单。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml", "type":"http", "title":"申请交易账单", "outParams":{ "x-keyPath":"", "x-id":"ltxic790", "title":"value", "type":"object", "properties":{ "nonce_str":{ "x-keyPath":"nonce_str", "x-id":"mgzlawyh", "title":"nonce_str", "type":"string" }, "mchid":{ "x-keyPath":"mchid", "x-id":"zrhdcfut", "title":"mchid", "type":"string" }, "signature":{ "x-keyPath":"signature", "x-id":"izwqs9su", "title":"signature", "type":"string" }, "download_url":{ "x-keyPath":"download_url", "x-id":"zngfffvw", "title":"download_url", "type":"string" }, "hash_value":{ "x-keyPath":"hash_value", "x-id":"tqq08jpk", "title":"hash_value", "type":"string" }, "serial_no":{ "x-keyPath":"serial_no", "x-id":"3df84rx5", "title":"serial_no", "type":"string" }, "hash_type":{ "x-keyPath":"hash_type", "x-id":"syc9mk1y", "title":"hash_type", "type":"string" }, "timestamp":{ "x-keyPath":"timestamp", "x-id":"34cq6u2c", "title":"timestamp", "type":"number" } } }, "uuid":"e71613ad-f78d-4422-aa6a-7d7f531b58c5", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "bill_date":{ "x-required":true, "x-keyPath":"", "x-id":"9e5ea1d", "name":"bill_date", "format":"", "isEnum":false, "description":"", "title":"账单日期", "type":"string", "x-index":4, "x-unique":false, "maxLength":4000 }, "bill_type":{ "x-required":false, "x-id":"a097c83", "name":"bill_type", "title":"账单类型", "type":"string", "x-index":5 }, "tar_type":{ "x-required":false, "x-keyPath":"", "x-id":"7421a85", "format":"", "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单", "type":"string", "x-index":2, "title":"压缩类型", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"tradebill", "calleeBody":{ "method":"GET", "query":{ "values":{ "type":"object", "value":{ "bill_date":"{{params.bill_date}}", "bill_type":"{{params.bill_type}}", "tar_type":"{{params.tar_type}}" }, "key":"2e99d86c1aa0de" } }, "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/bill/tradebill" }, "isCollapse":true }, { "isTitleInValid":false, "description":"微信支付按天提供微信支付账户的资金流水账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含该账户资金操作相关的业务单号、收支金额、记账时间等信息,供商户进行核对。\n注意:\n• 资金账单中的数据反映的是商户微信支付账户资金变动情况;\n\n• 对账单中涉及金额的字段单位为“元”。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml", "type":"http", "title":"申请资金账单", "outParams":{ "x-keyPath":"", "x-id":"u6z5317f", "title":"value", "type":"object", "properties":{ "nonce_str":{ "x-keyPath":"nonce_str", "x-id":"0bbpknx3", "title":"nonce_str", "type":"string" }, "mchid":{ "x-keyPath":"mchid", "x-id":"k8lnw0ia", "title":"mchid", "type":"string" }, "signature":{ "x-keyPath":"signature", "x-id":"8yeu0now", "title":"signature", "type":"string" }, "download_url":{ "x-keyPath":"download_url", "x-id":"fmn0eeox", "title":"download_url", "type":"string" }, "hash_value":{ "x-keyPath":"hash_value", "x-id":"xc9s7wfe", "title":"hash_value", "type":"string" }, "serial_no":{ "x-keyPath":"serial_no", "x-id":"ok5cf3zo", "title":"serial_no", "type":"string" }, "hash_type":{ "x-keyPath":"hash_type", "x-id":"kbdzgfyd", "title":"hash_type", "type":"string" }, "timestamp":{ "x-keyPath":"timestamp", "x-id":"zf539is8", "title":"timestamp", "type":"number" } } }, "uuid":"a5d6db4c-d945-4059-a3af-f10877d60d46", "intent":"create", "isNameInValid":false, "isShow":true, "inParams":{ "type":"object", "properties":{ "account_type":{ "x-required":false, "x-id":"8d4a0d2", "name":"account_type", "title":"资金账户类型", "type":"string", "x-index":4 }, "bill_date":{ "x-required":true, "x-id":"b78cf72", "name":"bill_date", "title":"账单日期", "type":"string", "x-index":3 }, "tar_type":{ "x-required":false, "x-keyPath":"", "x-id":"9dc21c4", "format":"", "name":"tar_type", "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单\n示例值:GZIP", "isEnum":false, "type":"string", "x-index":2, "title":"压缩类型", "x-unique":false, "maxLength":4000 } }, "required":[ "bill_date" ] }, "name":"fundflowbill", "calleeBody":{ "method":"GET", "query":{ "values":{ "type":"object", "value":{ "account_type":"{{params.account_type}}", "bill_date":"{{params.bill_date}}", "tar_type":"{{params.tar_type}}" }, "key":"42f87755978d74" } }, "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/bill/fundflowbill" }, "isCollapse":true }, { "isTitleInValid":false, "description":"微信订单支付成功后,商户发起分账请求,将结算后的资金分到分账接收方", "title":"请求分账", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"7nuxq09h", "title":"value", "type":"object", "properties":{ "orderId":{ "x-keyPath":"orderId", "x-id":"nbfhicq9", "title":"orderId", "type":"string" }, "receivers":{ "x-keyPath":"receivers", "x-id":"6vj5yand", "title":"receivers", "type":"array", "items":{ "x-keyPath":"", "x-id":"s8lb1ys7", "title":"value", "type":"object", "properties":{ "result":{ "x-keyPath":"$item.result", "x-id":"g69m0wbj", "title":"result", "type":"string" }, "amount":{ "x-keyPath":"$item.amount", "x-id":"vpih1wr4", "title":"amount", "type":"number" }, "finishTime":{ "x-keyPath":"$item.finishTime", "x-id":"jo3vvqex", "title":"finishTime", "type":"string" }, "createTime":{ "x-keyPath":"$item.createTime", "x-id":"yle5jrf9", "title":"createTime", "type":"string" }, "description":{ "x-keyPath":"$item.description", "x-id":"1h9n5mp1", "title":"description", "type":"string" }, "detailId":{ "x-keyPath":"$item.detailId", "x-id":"hoih3z2h", "title":"detailId", "type":"string" }, "failReason":{ "x-required":false, "x-keyPath":"$item.failReason", "x-id":"9621572", "format":"", "name":"failReason", "description":"", "type":"string", "x-index":2, "title":"failReason", "x-unique":false, "maxLength":4000 }, "type":{ "x-keyPath":"$item.type", "x-id":"8z5ofbui", "title":"type", "type":"string" }, "account":{ "x-keyPath":"$item.account", "x-id":"s4g5tvbj", "title":"account", "type":"string" } } } }, "state":{ "x-keyPath":"state", "x-id":"vfx6lct8", "title":"state", "type":"string" }, "outOrderNo":{ "x-keyPath":"outOrderNo", "x-id":"ug5t8oe3", "title":"outOrderNo", "type":"string" }, "transactionId":{ "x-keyPath":"transactionId", "x-id":"x4nvxno6", "title":"transactionId", "type":"string" } } }, "intent":"create", "uuid":"a5664445-4f8a-458f-be84-5edc3eddf2af", "isNameInValid":false, "isShow":true, "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "transaction_id":{ "x-required":true, "x-keyPath":"", "x-id":"631300b", "format":"", "description":"微信支付订单号\n示例值:4208450740201411110007820472", "type":"string", "x-index":2, "title":"微信订单号", "x-unique":false, "maxLength":4000 }, "unfreeze_unsplit":{ "x-required":true, "x-keyPath":"", "x-id":"8097e89", "format":"", "description":"1、如果为true,该笔订单剩余未分账的金额会解冻回分账方商户;\n2、如果为false,该笔订单剩余未分账的金额不会解冻回分账方商户,可以对该笔订单再次进行分账。", "type":"boolean", "x-index":8, "title":"是否解冻剩余未分资金", "x-unique":false }, "receivers":{ "x-required":true, "x-keyPath":"", "x-id":"7a7a5ad", "format":"", "description":"分账接收方列表,可以设置出资商户作为分账接受方,最多可有50个分账接收方", "type":"array", "x-index":6, "title":"分账接收方列表", "items":{ "format":"", "type":"object", "properties":{ "amount":{ "x-required":true, "x-keyPath":"", "x-id":"657694b", "format":"", "name":"amount", "description":"分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额\n示例值:888", "type":"number", "x-index":6, "title":"分账金额", "x-unique":false }, "name":{ "x-required":false, "x-keyPath":"", "x-id":"67c5a8f", "format":"", "name":"name", "description":"可选项,在接收方类型为个人的时可选填,若有值,会检查与 name 是否实名匹配,不匹配会拒绝分账请求\n1、分账接收方类型是PERSONAL_OPENID,是个人姓名的密文(选传,传则校验) 此字段的加密方法详见:敏感信息加密说明\n2、使用微信支付平台证书中的公钥\n3、使用RSAES-OAEP算法进行加密\n4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号\n示例值:hu89ohu89ohu89o", "type":"string", "x-index":4, "title":"分账个人接收方姓名", "x-unique":false, "maxLength":4000 }, "description":{ "x-required":true, "x-keyPath":"", "x-id":"b330ec8", "format":"", "name":"description", "description":"分账的原因描述,分账账单中需要体现\n示例值:分给商户A", "type":"string", "x-index":8, "title":"分账描述", "x-unique":false, "maxLength":4000 }, "type":{ "x-required":true, "x-keyPath":"", "x-id":"9e9d0c9", "format":"", "name":"type", "description":"分账接收方账号:\n1、类型是MERCHANT_ID时,是商户号(mch_id或者sub_mch_id)\n2、类型是PERSONAL_OPENID时,是个人openid", "type":"string", "x-index":2, "title":"分账接收方类型", "x-unique":false, "maxLength":4000 }, "account":{ "x-required":true, "x-keyPath":"", "x-id":"a6ff677", "format":"", "name":"account", "description":"分账接收方账号:\n1、类型是MERCHANT_ID时,是商户号(mch_id或者sub_mch_id)\n2、类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852", "type":"string", "x-index":10, "title":"分账接收方账号", "x-unique":false, "maxLength":4000 } } }, "x-unique":false }, "out_order_no":{ "x-required":true, "x-keyPath":"", "x-id":"9f7cc74", "format":"", "description":"商户系统内部的分账单号,在商户系统内部唯一,同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@\n示例值:P20150806125346", "type":"string", "x-index":4, "title":"商户分账单号", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"profitsharing_orders", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"transaction_id\": \"{{params.transaction_id}}\",\n \"out_order_no\": \"{{params.out_order_no}}\",\n \"receivers\": {{params.receivers}},\n \"unfreeze_unsplit\": {{params.unfreeze_unsplit}}\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders" }, "isCollapse":true }, { "isTitleInValid":false, "description":"发起分账请求后,可调用此接口查询分账结果", "title":"查询分账结果", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"ni2255xj", "title":"value", "type":"object", "properties":{ "transaction_id":{ "x-keyPath":"transaction_id", "x-id":"e9wrymd9", "title":"transaction_id", "type":"string" }, "receivers":{ "x-keyPath":"receivers", "x-id":"uhmcyz36", "title":"receivers", "type":"array", "items":{ "x-keyPath":"", "x-id":"gngr8moq", "title":"value", "type":"object", "properties":{ "result":{ "x-keyPath":"$item.result", "x-id":"n2v0avbf", "title":"result", "type":"string" }, "amount":{ "x-keyPath":"$item.amount", "x-id":"4xef3loz", "title":"amount", "type":"number" }, "create_time":{ "x-keyPath":"$item.create_time", "x-id":"6q3elwi6", "title":"create_time", "type":"string" }, "description":{ "x-keyPath":"$item.description", "x-id":"j4242aim", "title":"description", "type":"string" }, "detail_id":{ "x-keyPath":"$item.detail_id", "x-id":"evglumbd", "title":"detail_id", "type":"string" }, "type":{ "x-keyPath":"$item.type", "x-id":"gjqg4geb", "title":"type", "type":"string" }, "fail_reason":{ "x-required":false, "x-keyPath":"$item. fail_reason", "x-id":"6606d43", "format":"", "name":"fail_reason", "description":"分账失败原因,当分账结果result为CLOSED(已关闭)时,返回该字段\n枚举值:\n1、ACCOUNT_ABNORMAL:分账接收账户异常\n2、NO_RELATION:分账关系已解除\n3、RECEIVER_HIGH_RISK:高风险接收方\n4、RECEIVER_REAL_NAME_NOT_VERIFIED:接收方未实名\n5、NO_AUTH:分账权限已解除\n6、RECEIVER_RECEIPT_LIMIT:超出用户月收款限额\n7、PAYER_ACCOUNT_ABNORMAL:分出方账户异常\n8、INVALID_REQUEST: 描述参数设置失败\n示例值:ACCOUNT_ABNORMAL", "type":"string", "x-index":2, "title":"fail_reason", "x-unique":false, "maxLength":4000 }, "account":{ "x-keyPath":"$item.account", "x-id":"lpw6f5vl", "title":"account", "type":"string" }, "finish_time":{ "x-keyPath":"$item.finish_time", "x-id":"fvwr3n2h", "title":"finish_time", "type":"string" } } } }, "out_order_no":{ "x-keyPath":"out_order_no", "x-id":"vsw9qfq5", "title":"out_order_no", "type":"string" }, "state":{ "x-keyPath":"state", "x-id":"cbdn951i", "title":"state", "type":"string" }, "order_id":{ "x-keyPath":"order_id", "x-id":"cmez7tzj", "title":"order_id", "type":"string" } } }, "intent":"create", "uuid":"a38cbc80-33e6-451e-a62f-e650914e249c", "isNameInValid":false, "isShow":true, "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "transaction_id":{ "x-required":true, "x-keyPath":"", "x-id":"b5eeeee", "format":"", "description":"微信支付订单号\n示例值:4208450740201411110007820472", "type":"string", "x-index":2, "title":"微信订单号", "x-unique":false, "maxLength":4000 }, "out_order_no":{ "x-required":true, "x-keyPath":"", "x-id":"6ee57c7", "format":"", "description":"询分账结果,输入申请分账时的商户分账单号; 查询分账完结执行的结果,输入发起分账完结时的商户分账单号。\n示例值:P20150806125346", "type":"string", "x-index":4, "title":"商户分账单号", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"queryProfitsharingByOutTradeNo", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{ "transaction_id":"{{params.transaction_id}}" }, "key":"381e52c55a906a" } }, "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders/{{params.out_order_no}}" }, "isCollapse":true }, { "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "amount":{ "x-required":true, "x-keyPath":"", "x-id":"7d9baf3", "format":"", "description":"要从分账接收方回退的金额,单位为分,只能为整数,不能超过原始分账单分出给该接收方的金额\n示例值:10", "type":"number", "x-index":10, "title":"回退金额", "x-unique":false }, "out_order_no":{ "x-required":false, "x-keyPath":"", "x-id":"9a395e8", "format":"", "description":"原发起分账请求时使用的商户系统内部的分账单号。微信分账单号与商户分账单号二选一填写\n示例值:P20150806125346", "type":"string", "x-index":4, "title":"商户分账单号", "x-unique":false, "maxLength":4000 }, "out_return_no":{ "x-required":true, "x-keyPath":"", "x-id":"bc13703", "format":"", "description":"此回退单号是商户在自己后台生成的一个新的回退单号,在商户后台唯一\n示例值:R20190516001", "type":"string", "x-index":6, "title":"商户回退单号", "x-unique":false, "maxLength":4000 }, "description":{ "x-required":true, "x-keyPath":"", "x-id":"6ecc33a", "format":"", "description":"账回退的原因描述\n示例值:用户退款", "type":"string", "x-index":12, "title":"回退描述", "x-unique":false, "maxLength":4000 }, "return_mchid":{ "x-required":true, "x-keyPath":"", "x-id":"6f0485b", "format":"", "description":"分账接口中的分账接收方商户号\n示例值:86693852", "type":"string", "x-index":8, "title":"回退商户号", "x-unique":false, "maxLength":4000 }, "order_id":{ "x-required":false, "x-keyPath":"", "x-id":"8f099a3", "format":"", "description":"微信分账单号,微信支付系统返回的唯一标识。\n示例值:3008450740201411110007820472", "type":"string", "x-index":2, "title":"微信分账单号", "x-unique":false, "maxLength":4000 } }, "required":[] }, "isTitleInValid":false, "name":"profitsharingReturnOrders", "title":"请求分账回退", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"ql2w3xcg", "title":"value", "type":"object", "properties":{ "result":{ "x-keyPath":"result", "x-id":"4b773zmv", "title":"result", "type":"string" }, "amount":{ "x-keyPath":"amount", "x-id":"3jjmv3g3", "title":"amount", "type":"number" }, "create_time":{ "x-keyPath":"create_time", "x-id":"pusm93l4", "title":"create_time", "type":"string" }, "description":{ "x-keyPath":"description", "x-id":"63v7w206", "title":"description", "type":"string" }, "out_order_no":{ "x-keyPath":"out_order_no", "x-id":"fgeaw1s5", "title":"out_order_no", "type":"string" }, "out_return_no":{ "x-keyPath":"out_return_no", "x-id":"g3fvtrwm", "title":"out_return_no", "type":"string" }, "return_id":{ "x-keyPath":"return_id", "x-id":"7xbkw6ho", "title":"return_id", "type":"string" }, "return_mchid":{ "x-keyPath":"return_mchid", "x-id":"a4qmcntk", "title":"return_mchid", "type":"string" }, "fail_reason":{ "x-required":false, "x-keyPath":"fail_reason", "x-id":"b0bd2c3", "format":"", "description":"", "type":"string", "x-index":2, "title":"fail_reason", "x-unique":false, "maxLength":4000 }, "order_id":{ "x-keyPath":"order_id", "x-id":"57d7y2w8", "title":"order_id", "type":"string" }, "finish_time":{ "x-keyPath":"finish_time", "x-id":"v3qdhdew", "title":"finish_time", "type":"string" } } }, "intent":"create", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{{params}}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/return-orders" }, "isCollapse":true, "uuid":"aef7ff46-24e4-4e5c-b44a-c031369cf9ff", "isNameInValid":false, "isShow":true }, { "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "out_return_no":{ "x-required":true, "x-keyPath":"", "x-id":"7d9659b", "format":"", "description":"调用回退接口提供的商户系统内部的回退单号\n示例值:R20190516001", "type":"string", "x-index":2, "title":"商户回退单号", "x-unique":false, "maxLength":4000 }, "out_order_no":{ "x-required":true, "x-keyPath":"", "x-id":"8dd4021", "format":"", "description":"原发起分账请求时使用的商户系统内部的分账单号\n示例值:P20190806125346", "type":"string", "x-index":4, "title":"商户分账单号", "x-unique":false, "maxLength":4000 } }, "required":[] }, "isTitleInValid":false, "name":"queryProfitsharingReturnOrders", "title":"查询分账回退结果", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"h2rtn2ml", "title":"value", "type":"object", "properties":{ "result":{ "x-keyPath":"result", "x-id":"e5q0ju9e", "title":"result", "type":"string" }, "amount":{ "x-keyPath":"amount", "x-id":"bnc6mcez", "title":"amount", "type":"number" }, "create_time":{ "x-keyPath":"create_time", "x-id":"3er62ix9", "title":"create_time", "type":"string" }, "description":{ "x-keyPath":"description", "x-id":"asrm9yrp", "title":"description", "type":"string" }, "out_order_no":{ "x-keyPath":"out_order_no", "x-id":"hboeonyy", "title":"out_order_no", "type":"string" }, "out_return_no":{ "x-keyPath":"out_return_no", "x-id":"c245mvs1", "title":"out_return_no", "type":"string" }, "return_id":{ "x-keyPath":"return_id", "x-id":"9s0xneta", "title":"return_id", "type":"string" }, "return_mchid":{ "x-keyPath":"return_mchid", "x-id":"omf722ym", "title":"return_mchid", "type":"string" }, "fail_reason":{ "x-required":false, "x-keyPath":"fail_reason", "x-id":"8eab02f", "format":"", "description":"", "type":"string", "x-index":2, "title":"fail_reason", "x-unique":false, "maxLength":4000 }, "order_id":{ "x-keyPath":"order_id", "x-id":"six3i353", "title":"order_id", "type":"string" }, "finish_time":{ "x-keyPath":"finish_time", "x-id":"gulc35u6", "title":"finish_time", "type":"string" } } }, "intent":"create", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{ "out_order_no":"{{params.out_order_no}}" }, "key":"2a524acaf4b354" } }, "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/return-orders/{{params.out_return_no}}" }, "isCollapse":true, "uuid":"cdcd5b10-29c8-431a-aba2-d9bd906b3088", "isNameInValid":false, "isShow":true }, { "isTitleInValid":false, "description":"不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给本商户", "title":"解冻剩余资金", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"y70o8tsx", "title":"value", "type":"object", "properties":{ "transaction_id":{ "x-keyPath":"transaction_id", "x-id":"9kuzi4i2", "title":"transaction_id", "type":"string" }, "receivers":{ "x-keyPath":"receivers", "x-id":"io3b5r6q", "title":"receivers", "type":"array", "items":{ "x-keyPath":"", "x-id":"y4xreuje", "title":"value", "type":"object", "properties":{ "result":{ "x-keyPath":"$item.result", "x-id":"3ewfc0db", "title":"result", "type":"string" }, "amount":{ "x-keyPath":"$item.amount", "x-id":"6yss66sb", "title":"amount", "type":"number" }, "create_time":{ "x-keyPath":"$item.create_time", "x-id":"un7tzpr4", "title":"create_time", "type":"string" }, "description":{ "x-keyPath":"$item.description", "x-id":"lk6tgsmc", "title":"description", "type":"string" }, "detail_id":{ "x-keyPath":"$item.detail_id", "x-id":"rlz1mfji", "title":"detail_id", "type":"string" }, "type":{ "x-keyPath":"$item.type", "x-id":"vowr8wu6", "title":"type", "type":"string" }, "fail_reason":{ "x-required":false, "x-keyPath":"$item.fail_reason", "x-id":"65250a4", "format":"", "name":"fail_reason", "description":"分账失败原因,当分账结果result为CLOSED(已关闭)时,返回该字段\n枚举值:\n1、ACCOUNT_ABNORMAL : 分账接收账户异常\n2、NO_RELATION : 分账关系已解除\n3、RECEIVER_HIGH_RISK : 高风险接收方\n4、RECEIVER_REAL_NAME_NOT_VERIFIED : 接收方未实名\n5、NO_AUTH : 分账权限已解除\n6、RECEIVER_RECEIPT_LIMIT : 接收方已达收款限额\n示例值:ACCOUNT_ABNORMAL", "type":"string", "x-index":2, "title":"fail_reason", "x-unique":false, "maxLength":4000 }, "account":{ "x-keyPath":"$item.account", "x-id":"dbojnt0g", "title":"account", "type":"string" }, "finish_time":{ "x-keyPath":"$item.finish_time", "x-id":"dg3oln9r", "title":"finish_time", "type":"string" } } } }, "out_order_no":{ "x-keyPath":"out_order_no", "x-id":"jo24hxw7", "title":"out_order_no", "type":"string" }, "state":{ "x-keyPath":"state", "x-id":"virf5jyq", "title":"state", "type":"string" }, "order_id":{ "x-keyPath":"order_id", "x-id":"djv1qc0f", "title":"order_id", "type":"string" } } }, "intent":"create", "uuid":"8a079b26-a9f2-427d-9ffc-457c5d11cd9b", "isNameInValid":false, "isShow":true, "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "transaction_id":{ "x-required":true, "x-keyPath":"", "x-id":"8c96058", "format":"", "description":"微信支付订单号\n示例值:4208450740201411110007820472", "type":"string", "x-index":2, "title":"微信订单号", "x-unique":false, "maxLength":4000 }, "out_order_no":{ "x-required":true, "x-keyPath":"", "x-id":"ab8babd", "format":"", "description":"商户系统内部的分账单号,在商户系统内部唯一,同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@\n示例值:P20150806125346", "type":"string", "x-index":4, "title":"商户分账单号", "x-unique":false, "maxLength":4000 }, "description":{ "x-required":true, "x-keyPath":"", "x-id":"841a802", "format":"", "description":"账的原因描述,分账账单中需要体现\n示例值:解冻全部剩余资金", "type":"string", "x-index":6, "title":"分账描述", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"profitsharingOrdersUnfreeze", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{{params}}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders/unfreeze" }, "isCollapse":true }, { "isTitleInValid":false, "description":"可调用此接口查询订单剩余待分金额", "title":"查询剩余待分金额", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"dm3x5xxp", "title":"value", "type":"object", "properties":{ "transaction_id":{ "x-keyPath":"transaction_id", "x-id":"u0lxkt0k", "title":"transaction_id", "type":"string" }, "unsplit_amount":{ "x-keyPath":"unsplit_amount", "x-id":"ys1pelif", "title":"unsplit_amount", "type":"number" } } }, "intent":"create", "uuid":"c7a11760-bb58-484e-b8ef-6382ca8ff2ac", "isNameInValid":false, "isShow":true, "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "transaction_id":{ "x-required":true, "x-keyPath":"", "x-id":"84236c2", "format":"", "description":"微信支付订单号\n示例值:4208450740201411110007820472", "type":"string", "x-index":2, "title":"微信订单号", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"queryProfitsharingTransactions", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/transactions/{{params.transaction_id}}/amounts" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户发起添加分账接收方请求,建立分账接收方列表。后续可通过发起分账请求,将分账方商户结算后的资金,分到该分账接收方", "title":"添加分账接收方", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"imzpclsr", "title":"value", "type":"object", "properties":{ "relationType":{ "x-keyPath":"relationType", "x-id":"9vd2kb61", "title":"relationType", "type":"string" }, "customRelation":{ "x-keyPath":"customRelation", "x-id":"eg2eivqc", "title":"customRelation", "type":"string" }, "name":{ "x-keyPath":"name", "x-id":"nyoeic03", "title":"name", "type":"string" }, "type":{ "x-keyPath":"type", "x-id":"qozqljxd", "title":"type", "type":"string" }, "account":{ "x-keyPath":"account", "x-id":"i3yhwjwn", "title":"account", "type":"string" } } }, "intent":"create", "uuid":"f9c969e6-49ec-4d5a-9750-1bc5a2cb6bc0", "isNameInValid":false, "isShow":true, "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "custom_relation":{ "x-required":false, "x-keyPath":"", "x-id":"ba1f2d6", "format":"", "description":"子商户与接收方具体的关系,本字段最多10个字。\n当字段relation_type的值为CUSTOM时,本字段必填;\n当字段relation_type的值不为CUSTOM时,本字段无需填写。\n示例值:代理商", "type":"string", "x-index":10, "title":"自定义的分账关系", "x-unique":false, "maxLength":4000 }, "name":{ "x-required":false, "x-keyPath":"", "x-id":"a5d0917", "format":"", "description":"分账接收方类型是MERCHANT_ID时,是商户全称(必传),当商户是小微商户或个体户时,是开户人姓名 分账接收方类型是PERSONAL_OPENID时,是个人姓名(选传,传则校验)\n1、此字段需要加密,加密方法详见:敏感信息加密说明\n2、使用微信支付平台证书中的公钥:获取平台证书\n3、使用RSAES-OAEP算法进行加密\n4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号\n示例值:hu89ohu89ohu89o", "type":"string", "x-index":6, "title":"分账个人接收方姓名", "x-unique":false, "maxLength":4000 }, "relation_type":{ "x-required":true, "x-keyPath":"", "x-id":"ae9c816", "format":"", "description":"子商户与接收方的关系。 本字段值为枚举:\nSTORE:门店\nSTAFF:员工\nSTORE_OWNER:店主\nPARTNER:合作伙伴\nHEADQUARTER:总部\nBRAND:品牌方\nDISTRIBUTOR:分销商\nUSER:用户\nSUPPLIER: 供应商\nCUSTOM:自定义\n示例值:STORE", "type":"string", "x-index":8, "title":"与分账方的关系类型", "x-unique":false, "maxLength":4000 }, "type":{ "x-required":true, "x-keyPath":"", "x-id":"ac42331", "format":"", "description":"枚举值:\nMERCHANT_ID:商户ID\nPERSONAL_OPENID:个人openid(由父商户APPID转换得到)\n示例值:MERCHANT_ID", "type":"string", "x-index":2, "title":"分账接收方类型", "x-unique":false, "maxLength":4000 }, "account":{ "x-required":true, "x-keyPath":"", "x-id":"93a24e3", "format":"", "description":"型是MERCHANT_ID时,是商户号\n类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852", "type":"string", "x-index":4, "title":"分账接收方账号", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"addProfitsharingReceivers", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"type\": \"{{params.type}}\",\n \"account\": \"{{params.account}}\",\n \"name\": \"{{params.name}}\",\n \"relation_type\": \"{{params.relation_type}}\",\n \"custom_relation\": \"{{params.custom_relation}}\"\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/receivers/add" }, "isCollapse":true }, { "isTitleInValid":false, "description":"商户发起删除分账接收方请求。删除后,不支持将分账方商户结算后的资金,分到该分账接收方", "title":"删除分账接收方", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"fzplnriq", "title":"value", "type":"object", "properties":{ "type":{ "x-keyPath":"type", "x-id":"4oqiu65w", "title":"type", "type":"string" }, "account":{ "x-keyPath":"account", "x-id":"pp0xx0dx", "title":"account", "type":"string" } } }, "intent":"create", "uuid":"5b426592-2957-4f24-9f5f-2f405b101761", "isNameInValid":false, "isShow":true, "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "type":{ "x-required":true, "x-keyPath":"", "x-id":"a25cf4c", "format":"", "description":"枚举值:\nMERCHANT_ID:商户ID\nPERSONAL_OPENID:个人openid(由父商户APPID转换得到)\n示例值:MERCHANT_ID", "type":"string", "x-index":2, "title":"分账接收方类型", "x-unique":false, "maxLength":4000 }, "account":{ "x-required":true, "x-keyPath":"", "x-id":"6c79749", "format":"", "description":"类型是MERCHANT_ID时,是商户号\n类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852", "type":"string", "x-index":4, "title":"分账接收方账号", "x-unique":false, "maxLength":4000 } }, "required":[] }, "name":"deleteProfitsharingReceivers", "calleeBody":{ "method":"POST", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "isUrlInValid":true, "body":{ "values":{ "type":"string", "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"type\": \"{{params.type}}\",\n \"account\": \"{{params.account}}\"\n}", "key":"json" }, "contentType":"json" }, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/receivers/delete" }, "isCollapse":true }, { "inParams":{ "additionalProperties":true, "type":"object", "properties":{ "bill_date":{ "x-required":true, "x-keyPath":"", "x-id":"abc1036", "format":"", "description":"格式yyyy-MM-DD\n仅支持三个月内的账单下载申请。\n示例值:2019-06-11", "type":"string", "x-index":2, "title":"账单日期\t", "x-unique":false, "maxLength":4000 }, "tar_type":{ "x-required":false, "x-keyPath":"", "x-id":"9465226", "format":"", "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单\n示例值:GZIP", "type":"string", "x-index":4, "title":"压缩类型", "x-unique":false, "maxLength":4000 } }, "required":[] }, "isTitleInValid":false, "name":"queryProfitsharingBills", "title":"申请分账账单", "type":"http", "outParams":{ "x-keyPath":"", "x-id":"gds4il9q", "title":"value", "type":"object", "properties":{ "nonce_str":{ "x-keyPath":"nonce_str", "x-id":"gjwt1vkh", "title":"nonce_str", "type":"string" }, "mchid":{ "x-keyPath":"mchid", "x-id":"qp4nuvuz", "title":"mchid", "type":"string" }, "signature":{ "x-keyPath":"signature", "x-id":"eefl56ug", "title":"signature", "type":"string" }, "download_url":{ "x-keyPath":"download_url", "x-id":"e1p8qpdg", "title":"download_url", "type":"string" }, "hash_value":{ "x-keyPath":"hash_value", "x-id":"dy9mgifw", "title":"hash_value", "type":"string" }, "serial_no":{ "x-keyPath":"serial_no", "x-id":"lb16ifcm", "title":"serial_no", "type":"string" }, "hash_type":{ "x-keyPath":"hash_type", "x-id":"471qrv9l", "title":"hash_type", "type":"string" }, "timestamp":{ "x-keyPath":"timestamp", "x-id":"8wi185yj", "title":"timestamp", "type":"number" } } }, "intent":"create", "calleeBody":{ "method":"GET", "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};", "query":{ "values":{ "type":"object", "value":{ "bill_date":"{{params.bill_date}}", "tar_type":"{{params.tar_type}}" }, "key":"372a546fc30bfa" } }, "isUrlInValid":true, "url":"https://api.mch.weixin.qq.com/v3/profitsharing/bills" }, "isCollapse":true, "uuid":"6c7d08e5-14f7-4710-9460-c15b9d6838ac", "isNameInValid":false, "isShow":true } ], "name":"wxpay_order_apis_4tp3344", "pkgId":"honghgaier-5guiffgcf17a2eea", "templateCode":"weixinpaydc", "title":"wxpay-微信支付APIs", "type":"cloud-integration", "version":"1.0" }