收藏
回答

/v3/fund-app/mch-transfer/transfer-bills接口怎么办?

报错如下:

{"code":"PARAM_ERROR","message":"需传入转账场景报备信息,请检查"}

但我的请求体中包含transfer_scene_report_infos参数,并且参数的info_type符合文档要求。为什么依然报错了呢?

我的请求头如下:

request_data = {

            "appid": settings.WECHAT_APP_ID,

            "out_bill_no": out_detail_no,

            "transfer_scene_id": "1005",

            "openid": openid,

            "transfer_amount": int(amount * 100),  # 金额转为分

            "transfer_remark":"注安做题大师推广佣金",

            "transfer_scene_report_infos":[

                {

                    "info_type":"活动名称",

                    "info_content":"做题大师推广活动"

                },

                {

                    "info_type":"奖励说明",

                    "info_content":f"{date}佣金{amount}元"

                }

            ],

            "notify_url":url

        }

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容