收藏
回答

自定义交易组件,生成售后单接口报参数错误?

订单详情接口返回数据如下

{
    "errcode"0,
    "order": {
        "order_id"3302285532221015552,
        "out_order_id""5422636288806",
        "openid""otIcp48nMZx_fSb9_G7AoJ14r9GI",
        "create_time""2022-03-31 14:38:10",
        "order_detail": {
            "product_infos": [
                {
                    "out_product_id""14537",
                    "out_sku_id""28125",
                    "product_cnt"1,
                    "sale_price"100,
                    "title":"\特\价\羽\绒\服",
                    "head_img""https://image.flyfishoutlets.com/Attachment/20220330/62443f39c1c90.jpg",
                    "path""pages/goodsDet/goodsDet?id=14537",
                    "sku_attrs": []
                }
            ],
            "pay_info": {
                "prepay_id""wx31143810044185a39a449cacd5a9210000",
                "prepay_time""2022-03-31 14:38:10",
                "transaction_id""4200001313202203310651266453",
                "pay_time""2022-03-31 14:38:29",
                "pay_method_type"0
            },
            "price_info": {
                "freight"0,
                "final_price"100,
                "order_price"100
            },
            "pay_info_list": [],
            "promotion_info": {}
        },
        "delivery_detail": {
            "delivery_type"1,
            "finish_all_delivery"1,
            "delivery_list": [
                {
                    "waybill_id""773126976015362",
                    "delivery_id""YD",
                    "product_info_list": [
                        {
                            "out_product_id""14537",
                            "out_sku_id""28125",
                            "product_cnt"1
                        }
                    ]
                }
            ]
        },
        "status"100,
        "path""pagesUser/orderDet/orderDet?id=5422636288806",
        "update_time""2022-03-31 15:44:46",
        "address_info": {
            "receiver_name":"\张\三",
            "detailed_address":"\新\港\中\路397\号",
            "tel_number""020-81167888"
        },
        "scene"1177
    }}

然后去请求生成售后单接口

https://api.weixin.qq.com/shop/ecaftersale/add

请求参数如下

{"out_order_id":5422636288806,"openid":"otIcp48nMZx_fSb9_G7AoJ14r9GI","orderamt":100,"out_aftersale_id":"592253930x8017124","product_info":{"out_product_id":"14537","out_sku_id":"28125","product_cnt":1},"refund_reason":"协商一致退款","refund_reason_type":8,"type":2}

此时报{

    "errcode": 2747002,

    "errmsg": " 参数错误"

}

是什么原因呢

回答关注问题邀请回答
收藏
登录 后发表内容