后面用查询发货状态接口,发现订单 有 merchant_id 和 sub_merchant_id 两个商户号。 而 发货信息录入接口中 mchid 输入了sub_merchant_id ,改填入 merchant_id 就成功了
为什么使用发货信息录入接口,若order_number_type设置为1,则提示10060001?如果这样填写body,order_number_type设置为1,然后填mchid,out_trade_no: "order_key":{ "order_number_type":1, "mchid":"XXXXXXXX", "out_trade_no":"obnfu9he4z8on1697861700", }, "logistics_type":1, "delivery_mode":1, "shipping_list":[{ "tracking_no":logisticNo, "express_company":companyId, "item_desc":"游戏对战卡片", "contact":{ "receiver_contact":phoneNumXing } }], "upload_time":szTime, "payer":{ "openid":openid } 则回复"{"errcode":10060001,"errmsg":"支付单不存在, hint: [69937c36-46f7-461b-ae96-e62b82641a0e] rid: 654516fe-5696669b-72b98de4"}"5696669b-72b98de4"}" 而order_number_type设置为2,然后填transaction_id: "order_key":{ "order_number_type":2, "transaction_id":"4200002004202310214971138190", }, "logistics_type":1, "delivery_mode":1, "shipping_list":[{ "tracking_no":logisticNo, "express_company":companyId, "item_desc":"游戏对战卡片", "contact":{ "receiver_contact":phoneNumXing } }], "upload_time":szTime, "payer":{ "openid":openid } 这样就没有问题,能提示发货 无论在开发工具下调试支付订单,还是真实环境下的支付订单,都是这样。应该怎么能让order_number_type:1 正常用,麻烦解答下,谢谢
2023-11-08