1. 用户打款
1.1.1. 基本信息
Path: /v1/user/transfer
Method: POST
接口描述:此功能并不公开使用,如需使用请联系销赞云申请开通
1.1.2. 请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
appId | string | 是 | wxappid123456789 | 小程序appId |
tradeNo | string | 是 | O123456789abc | 商户订单号,需保持唯一性(只能是字母或者数字,不能包含有符号) |
openid | string | 是 | openid123456789 | 小程序用户openid |
amount | number | 是 | 30 | 企业付款金额,单位为分,每次调用金额的范围在0.3≤amount≤200元之间 |
desc | string | 是 | 活动打款 | 企业付款操作说明信息 |
1.1.3. 返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
code | number | 非必须 | 状态码 1000代表调用销赞云成功,非1000代表有误 | ||
message | string | 非必须 | 信息提示 | ||
content | null | 非必须 |
字段transferResult是调用微信接口后返回的全部数据,本系统将微信返回的全部数据一并返回,具体返回的字段及描述请参考文档:https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_2
是否打款成功请以微信返回结果为准
返回成功示例
{
"code": 1000,
"message": "success",
"content": {
"transferResult": {
"return_code": "SUCCESS",
"return_msg": "支付成功",
"mch_appid": "wx5763e3974985d123",
"mchid": "1600302345",
"nonce_str": "lxuDzMnRjpcXzxLx0q",
"result_code": "SUCCESS",
"partner_trade_no": "10013574201505191526582441",
"payment_no": "1000018301201505190181489473",
"payment_time": "2023-05-19 15:26:59"
}
}
}
返回失败示例
{
"code": 1000,
"message": "success",
"content": {
"transferResult": {
"return_code": "SUCCESS",
"return_msg": "支付失败",
"mch_appid": "wx5763e3974985d646",
"mchid": "1600303079",
"result_code": "FAIL",
"err_code": "PAYEE_ACCOUNT_ABNORMAL",
"err_code_des": "用户账户收款异常"
}
}
}