收藏
回答

云开发分账添加分账接收方,总是报错参数格式错误?

exports.main = async (event, context) => {
    const res = await cloud.cloudPay.profitSharingAddReceiver({
        "sub_mch_id""1612648921",
        "sub_appid""wxd2d16a504f24665e",
        "nonce_str":"jiangnanbu223yi223xdhsdak2",


        "receiver": {
            "type""PERSONAL_OPENID"// 个人openid
            "account""ok1Nu5EpcW0USpiSlVB2Ww9m4ZW4",
            "relation_type""PARTNER"
        }
    })
    return res
}

// 报错:
errCode: 0
errMsg: "cloudPay.profitSharingAddReceiver:ok"
returnCode: "FAIL"
returnMsg: "参数格式校验错误"
回答关注问题邀请回答
收藏

1 个回答

  • Memory
    Memory
    2021-11-05

    receiver格式为String,如使用openid,account字段需要传PERSONAL_SUB_OPENID

    2021-11-05
    有用 2
    回复
登录 后发表内容