收藏
回答

特约商户进件接口,400 Bad Request,未能解决,帮忙分析下?

看到社区里有类似的问题,但是没能解决,请大家帮忙看下

<html>

<head><title>400 Bad Request</title></head>

<body bgcolor="white">

<center><h1>400 Bad Request</h1></center>

<hr><center>nginx</center>

</body>

</html>、

头部:

[Accept: application/json, Content-Type: application/json; charset=UTF-8, Wechatpay-Serial: kjkjkj***********************, User-Agent: wxpay sdk java v1.0 ********, Authorization: WECHATPAY2-SHA256-RSA2048 mchid="********,",nonce_str="727e4f2398ed4f6b8a775d8c1aab59ad",timestamp="1651984090",serial_no="53B****************************",signature="R6j6OiQ4Elda4L8YpeJ0gpoHJz2UWZoVUOk6yj9CyD1fcksVtP4yhcMjnNpQadqA3BpqCoATLX3Sf4itQCie5baPXwHCnv1NTg/IyfRJodYZwBJfcMNJbMCbnOH7Bxc8X+AbaHYUhi5XvV9xlsn/XxWtRotOyRSQc628zsZ00PSG6FbHD+qEd0SDRw0xazMPlvEijSbTQJxk9dhhF/JgKv/w2NfSgH7A0u7G5uJKZTJSsIQGEpvtxPY7MrbM8xq1usajpjYN7XK4UWk7d9V+gN2JU9qgNb6ECKNz/xXpQIyWzFFVhy482taqTN0Z0ZLUmFfHG1AUq1wBMwfQ24vhZw=="]


内容

{

    "business_code":"******_2022050812274838",

    "contact_info":{

        "contact_name":"lxmf4Mf7LVvPmZWhBgfJyW7+4bjxxn9+c3g9h9TTEllELEXsJ5pdu87Un/pOL0qO0NlO245MlorZoaJIuyrj/b0dD21EB5JQj9VufdegkvZkH1RTG7fG0LaMWiDjildW1UnN74geJiRfx46/5nnmCOG+6mHiXetNR07id1lpDDa19O0CzJ06SFTarhwt7/5Qpgs5JNW+IElenoZATf8youMXlEE8X1RX8+CLVmxd9a/G4TCiDSmeFnapuOBow5T5iQV3/1TfGIIVwuKnBqwuTLYwZqIPjXAU+fUhV2YZZmVhY8rxEFIOyS3AI6lRXH1QoQBwDqyY7z5Sw56+i2bpKQ==",

        "contact_id_number":"ST3+J9VF4ACy9wSFIgoaESGtlEsnV0+r3k5FPagk0QfIkhiXLS7p3W41AXbR1vTfGXEbW96ygwzMJulPG0f9MeL69eHCBN2gsSmcCn9x78FHrvBk/41yTnOyIVAjyC+oUq+We3l8lnAz1/tEy25SeqhJaOVy9cyYBENN/j1mWzKYtFs4sftFL/oSPLuduZO1SKPToZHW9OZjqOSF3dv5Zo/8hCJvgTkdeCJR53v1WdqZhD3kqoc113wklY8DGrCzfeREtq1UPBrHVXmG8J1yLZSyjHMNTYMbuY6ThJgTjJSWKFPfL9ArBQqwYUqlNpHImQ9BYvWukVJguaApb9DNuA==",

        "openid":"",

        "mobile_phone":"oYw9I5pJGc4pntxeZ+4ciNNY3jIbcJqNsY9WDkZKZMh2PkiKJ0WtVzBcz2Kt32u6EGU6TaH83rSn+z1WDpeJSMZ/sLx4IgO4Z5Hi3cN9ArCNguBZE7oJvFk1ZNLCOyc3Tftnie1E/hsxO4xsWZmhFOxHqXFY+IqmxfE7VdGNbirqqa2JX4j1m2mZcoNpInp8JBcJOw1tLrsSVPrlboEnN3oz+XiLAO/Hd71QnlF7AI/8xKx+aeYy3JGXMeEl9vdz6JF+p1wambWzhiW5ZsuQQs8k3ubz4SrKpZDjjCGHUPY7zLjsvc4h5WqSk0AkuQ2VUaVHul27Edl4NcVof3Owuw==",

        "contact_email":"Vgo7rLfAhuY3n+IfPtgEaiMxkDDs3XkVa8OcSS7hUvay3pnGIijBZCAr0Gy1ibGjj2S6gNkuVyspwcEp2CLyYMhUBmryn1qcHZByFfL+dzF0Qj5C79tXcssvh5G4ZMlhae5S4A3TH9pbKPdA5Hfm/trlajLQZTS9fPAnAcMbdg8aF4BFP6ZquvEaJZusYqiN6NLWi7OJqQNpwTnoTkV72Twl8JgBqJb19DEPfYKRxUE3ZZbwwrT00TkTE2CBCbKKzGorRjYrzZQLFJjOjQDzFd8TNMizyIpuhTC0H3jLwvJUDDyyQDCvLbAS9LZLcZY5sqR6Ao4n96HHalrz2pV+Kg=="

    },

    "subject_info":{

        "subject_type":"SUBJECT_TYPE_ENTERPRISE",

        "finance_institution":false,

        "business_license_info":{

            "license_copy":"eVvb07dQj2wRk9lprFUr2P55G98ea2RmB8Z-AqqhO9D--DWTyVncLarprgyFF2ye6Rne9tAoUR5mpKLHpg8yuj6_D1xdjVeXuLkDH-_vhD4",

            "license_number":"**********",

            "merchant_name":"山东链****科技有限公司",

            "legal_person":"**翠"

        },

        "certificate_info":{

            "cert_copy":"",

            "cert_type":"",

            "cert_number":"",

            "merchant_name":"",

            "company_address":"",

            "legal_person":"",

            "period_begin":"",

            "period_end":""

        },

        "identity_info":{

            "id_doc_type":"IDENTIFICATION_TYPE_IDCARD",

            "id_card_info":{

                "id_card_copy":"eVvb07dQj2wRk9lprFUr2P6zXlP7fcT7n8-MJXkMsu4hnOJ9V2jNQnW9mbumT7dCptb_n6XbvLbUun7J1cCBfppKzRS1vaWEmss1eRdGAsI",

                "id_card_national":"eVvb07dQj2wRk9lprFUr2IBngbMK0wrj9_Z6gOLHVkDoDTbgFcxS99kcbCHgNLXp-koOdN4fdviLDcZhVRLX-hIqe9ZlT7e05KHgyUuPozI",

                "id_card_name":"sxGXGEO2RbXNaKc1xpTV5XS9rlTpXHlVQfMC+kCqtWtI0iauSI2AxSvmRuAqps+x5qVFQWN3dRYLUpmUVr7CucPgWvYcVQiJk66IuKTGstl2lm66QRd2u47ePBIFyEd4G872LHypY9uhg1u4D5Zw3ufTtrj4P4PFXSmHka7L7ovYbls4FRNM+mjmEd8ARAr3u5GhNOMkLyOFg97jQ4TFL8Dqrx7iBqYFa2vMDG2D70UNL+E4F7rQTWMAlQHC1Sc/mODoHtkG+ayOHLGKSqcF9xeyRG2DfWd6LgIeWP5HmFP+GV+q8MQz945Dk1cmQ2aW9T4/LA9/J7mtyvaqPyRToA==",

                "id_card_number":"XemdyQmdyd3A3aLkrnjjiwPCJB1//XkAfKA1vGCSZ//l7DydlhzH77s5PjNufdxHCKNwyRzu8aKExad+sTjdP/CsZFAigYswvaX4io84XDfBFFPiNsuQzimtvSK/vnbciAr2E8zAiW5+oGzeOgix/5UJ+t1OPePCnLIWren9FAH1llHYWm06mUWOnKXzr5sc74WOXiTwyJyenBMn/ET7Q4fJ6bioRkfRLbZIOfQyUgW0L0tPGmYfcJl9uQZd1qhi14yLzvuPH8yJvRPC1b16I0kHl7OhSphQL+D6fAC93xNKTjvdqTMqEVDc0u0wdSG+LbjqV8YIG0EmijECxicROA==",

                "card_period_begin":"2021-09-15",

                "card_period_end":"2041-09-15"

            },

            "owner":true

        },

        "id_doc_info":{

            "id_doc_copy":"",

            "id_doc_name":"",

            "id_doc_number":"",

            "doc_period_begin":"",

            "doc_period_end":""

        },

        "ubo_info":{

            "id_type":"",

            "id_card_copy":"",

            "id_card_national":"",

            "id_doc_copy":"",

            "name":"",

            "id_number":"",

            "id_period_begin":"",

            "id_period_end":""

        }

    },

    "business_info":{

        "merchant_shortname":"山东链****科技有限公司",

        "service_phone":"18******899",

        "sales_info":{

            "sales_scenes_type":[

                "SALES_SCENES_MINI_PROGRAM"

            ],

            "biz_store_info":{

                "biz_store_name":"",

                "biz_address_code":"",

                "biz_store_address":"",

                "store_entrance_pic":[


                ],

                "indoor_pic":[


                ],

                "biz_sub_appid":""

            },

            "mp_info":{

                "mp_appid":"",

                "mp_sub_appid":"",

                "mp_pics":[


                ]

            },

            "mini_program_info":{

                "mini_program_appid":"wx53e*****53",

                "mini_program_pics":[

                    "eVvb07dQj2wRk9lprFUr2POXLVRVOkrxGDKPcbvM0K5Fb6uQ1Y0Cnl936zWDi5x8rpiBWvSkuV9_R11bX4YcOOrPp6peWMxhJsj0gtilu58",

                    "eVvb07dQj2wRk9lprFUr2HD6kEY6xUiQVFGhXO41QFR0ly22tuUNddo2XQVPQAsvwUhQMIoteqJ0W4APQ90uWO9YfDxyvBNwLSvFa0Xv5bo",

                    "eVvb07dQj2wRk9lprFUr2NaOsN0TSj08bySWCOtAnxwyzwXafoyMMY1Aij56zoGCFtD0uwE5MAAVYH_1AiXhe9oa-2mkJiaGBNwBr88auRU"

                ]

            },

            "app_info":{

                "app_appid":"",

                "app_sub_appid":"",

                "app_pics":[


                ]

            },

            "web_info":{

                "domain":"",

                "web_authorisation":"",

                "web_appid":""

            },

            "wework_info":{

                "sub_corp_id":"",

                "wework_pics":[


                ]

            }

        }

    },

    "settlement_info":{

        "settlement_id":"716",

        "qualification_type":"线下零售",

        "qualifications":[


        ],

        "activities_id":"",

        "activities_rate":"",

        "activities_additions":[


        ]

    },

    "bank_account_info":{

        "bank_account_type":"BANK_ACCOUNT_TYPE_CORPORATE",    "account_name":"PwijW2blmM8w94PdEN4YJN1tR/qja1GAEvOiI+hB5I5U284LJS/G2y7LY1rNA16IMk6pRV5JQa9x8TCnW9P+avKsOV7RRkgTpFyvCXAwCEToxffmpiRPYJtaGhRIQ0ZA5KiiWo6DDsKvZywsj/72OvkaJWcCwKLerjviibpokKGtA7BbLLo0D8LQfJbG5yBEP8aT+mrnq58xnNLwm1WqBU0yf/g+tI6p2wk+gb2J4iqpUjbFphazqIiuoLNrhHPww6XlWtuVwA5WTiHjzublwvDzVnic1M3cn1C/K/GYI6aeRtWcvxnulWrPWlgkweYojKaxYrBRvqFRjcGP5gwP1A==",

        "account_bank":"招商银行",

        "bank_branch_id":"",

        "bank_name":"招商银行股份有限公司济南分行",

        "bank_address_code":"370102",

        "account_number":"XBgY2D6f85CntyXwGETCYAgzj02jryuDD2t5IDVmilUoL1qc5PFd9ipDwewwb2d8CJrC0lM5jdc/NuzCzkO+8DHm7rlbp/ChEfbomV+qL9H8bjP+Vvdyamh45mldNwLwA76P+RspyjgK9HGL1sZsW9x47tMiKNOT1KhuOESaWlABk+MM9CluFiT8X4GWPkD6aIYFOubUkYa3WOfj7Nr5uEEcp75Dw330eZ7wPkkHtmy/hc75eDKE2wxzBexlAbshmpUYvikz/mltyIKeEgQ6IrYh/zvMhuwLCKw8V3cBnd+o8u9NQLYEd9ydZ5yWvp66w0fTzfK3NewP6/1RXizOqA=="

    },

    "addition_info":{

        "legal_person_commitment":"",

        "legal_person_video":"",

        "business_addition_pics":[


        ],

        "business_addition_msg":""

    }

}


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

1 个回答

  • 明
    2022-05-08

    问题,已经解决, 微信工具中生成client 中 有添加 userAgent token 的封装,我多此一举,自己添加了请求头,可能没加对;发现工具包中有删掉,申请成功了

     CloseableHttpClient httpClient = WechatPayHttpClientBuilder.create()

                    .withMerchant(PayConfig.spMchid, PayConfig.mchSerialNo, merchantPrivateKey)

                    .withValidator(new WechatPay2Validator(verifier))

                    .build();

    2022-05-08
    有用 1
    回复
登录 后发表内容