服务商代运营操作(代运营授权或者账号绑定)结果通知
1 公共参数
1.1 公共请求参数
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
notify_id | string | 是 | 50 | 通知id | 5608cccc09ddb39d41c2e3c06e3d9fejh2 |
utc_timestamp | string | 是 | 13 | 消息发送时的服务端时间 | 1514210452731 |
msg_method | string | 是 | 100 | 消息接口名称 | alipay.open.sp.operation.result.notify |
app_id | string | 是 | 20 | 消息接受方的应用id | 2014060600164699 |
msg_type | string | 否 | 5 | 消息类型。目前支持类型:sys:系统消息;usr,用户消息;app,应用消息 | sys |
msg_uid | string | 否 | 20 | 消息归属的商户支付宝uid。用户消息和应用消息时非空 | 2088102165945162 |
msg_app_id | string | 否 | 20 | 消息归属方的应用id。应用消息时非空 | 2016032301002387 |
version | string | 是 | 5 | 版本号(1.1版本为标准消息) | 1.0或者1.1 |
biz_content | string | 是 | 消息报文 | 参见具体的消息接口文档 | |
sign | string | 是 | 签名 | wco t3d8kg71dtlkwn7r9pzuoxeabjwp8/fousxcuskxsovyxbpsaidpryscjhcjmaglncjokjqlj28/asl93jotw39fx6i07lxhnbpknezalwmvpdnqui01hzszf9v1i6ggzjbiad5lg8bzttxzoj87ub2i9guj3nr/nuc9vey= | |
sign_type | string | 是 | 10 | 签名类型 | rsa2 |
encrypt_type | string | 否 | 10 | 加密算法 | aes |
charset | string | 是 | 10 | 编码集,该字符集为验签和解密所需要的字符集 | utf-8 |
notify_type | string | 否 | 20 | [1.0版本老协议参数]通知类型,1.1接口没有该参数 | trade_status |
notify_time | string | 否 | 19 | [1.0版本老协议参数]通知时间,北京时区,时间格式为:yyyy-mm-dd hh:mm:ss,如果服务器部署在国外请注意做时区转换。若version=1.1则可以使用utc_timestamp识别时间 | 1970-01-01 00:00:00 |
auth_app_id | string | 否 | 20 | [1.0版本老协议参数]授权方的应用id | 2016032301002387 |
2 消息属性
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
operate_type | string | 必选 | 32 | 代运营操作类型。 account_bind:代表绑定支付宝账号,仅对于间连商户。 operation_auth:代表代运营授权,支持间连和直连商户,其中间连场景包含绑定支付宝账号。 |
account_bind |
batch_no | string | 必选 | 64 | 支付宝批次号 | 20202314234243 |
out_biz_no | string | 必选 | 64 | 外部操作流水,发起代运营操作时传入的out_biz_no。 | 2020124234523465636345634 |
handle_status | string | 必选 | 32 | 代运营操作结果。 success:商家确认操作成功。 no_permission:表示当前商家支付宝账号无权限操作,请确认商家支付宝账号是否在推荐账号列表中。 none_account:间连商家推荐支付宝账号列表为空。 |
success |
merchant_no | string | 必选 | 32 | 被代运营的商户号 | 2088xx |
bind_user_id | string | 特殊可选 | 32 | 当被代运营者(merchant_no)为间连商户,且商家确认成功时有值,返回间连商户绑定的支付宝账号。 | 2088xx |
3 响应值
响应值 | 描述 | 是否重试 |
---|---|---|
fail | 消息获取失败 | 是 |
success | 消息获取成功 | 否 |
4 触发通知示例
isv_gateway_url?charset=gbk&biz_content=
{
"operate_type":"account_bind","batch_no":"20202314234243","out_biz_no":"2020124234523465636345634","handle_status":"success","merchant_no":"2088xx","bind_user_id":"2088xx"
}
&msg_method=alipay.open.sp.operation.result.notify&utc_timestamp=1516797622752&version=1.1&sign_type=rsa2¬ify_id=d275fec564e62af6bedbcee73f3f05fi5x&app_id=2013121700999429&sign=i y/lvqyueec10epdpntrhfiq==