包体:
{
"appid": "wxc1ead51。。。。",
"out_batch_no": "5azd518f1f4504aa5b。。。。",
"batch_name": "Uni withdrawal",
"batch_remark": "Uni withdrawal of funds",
"total_amount": 1,
"total_num": 1,
"transfer_detail_list": [
{
"out_detail_no": "26fd2d98d244214。。。",
"transfer_amount": 1,
"transfer_remark": "Uni withdrawal of funds",
"openid": "o4zkJ6VZsnR。。。。"
}
]
}
HTTP 头参数:
{
Accept: application/json
User-Agent: Uni/1.0
Wechatpay-Serial: 32C5Z4ASB387....
Authorization: WECHATPAY2-SHA256-RSA2048 mchid="165576840...", nonce_str="d158ezx1db95da...",
signature="pxdY+L09TcbJ+6Eg9vm8xfrdngin09C/dH2hzYOoTcyU0fZ6r8wgEX0yVBBGI2GjVd1iY8kKZtWIl8K6VOO...Hi63JPyl3GFA==",
timestamp="1728903598", serial_no="32C546B387C53634...."
traceparent: 00-ddcd118d4110be394feaf603877b9002-3edff964e1a7f5e7-00
Content-Type: application/json; charset=utf-8
Content-Length: 364
}
应答
StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Server: nginx
Date: Mon, 14 Oct 2024 10:59:59 GMT
Connection: keep-alive
Keep-Alive: timeout=8
Cache-Control: no-cache, must-revalidate
X-Content-Type-Options: nosniff
Request-ID: 08AFF3B3B80610C307189782BBCA80120856928C5F9401-270924332
Content-Type: application/json; charset=utf-8
Content-Length: 56
Content-Language: zh-CN
}, Trailing Headers:
{
}
证书已经生成过 拿到准确得密钥了,相关的参数AppId等都是准确无误的。会有什么原因?
老老实实去用sdkhttps://pay.weixin.qq.com/docs/merchant/sdk-tools/sdk-tool.html