接口地址: https://api.weixin.qq.com/shop/pay/createorder
错误提示: {"errcode":47001,"errmsg":"data format error rid: 65437cae-0af77ec5-2dfe7c32"}
请求参数 {"openid":"用户OPENID","combine_trade_no":"ZH000001047133020231102184045667","expire_time":1698955639,"sub_orders":[{"mchid":"商户号","description":"(1)2015年小户赛熟普老茶头","amount":13800,"trade_no":"FK000001047133020231102184045667"}]}
请求参数格式化后:
{
"openid": "用户OPENID",
"combine_trade_no": "ZH000001047133020231102184045667",
"expire_time": 1698955639,
"sub_orders": [
{
"mchid": "商户号",
"description": "(1)2015年小户赛熟普老茶头",
"amount": 13800,
"trade_no": "FK000001047133020231102184045667"
}
]
}
看官方给的格式没错啊,怎么返回这个错误呢?我没发现哪里有错误,哪位高手指导下
崩溃, ContentType加了。 application/json, 请求的Encoding 也加了Utf-8。 最后,请求内容也要utf-8格式化下。。之前很多接口也都没需要啊,真是奇怪了。