收藏
回答

调取即时配送预下单接口,报类目错误?麻烦看下

请求接口:https://api.weixin.qq.com/cgi-bin/express/local/business/order/pre_add?access_token=33_kCD_UNi9ukF6s_YaZNPQNYIVahkoBsxDmauyYkqpVNV6gKW4__6swYo9QKpbeju40De77a4rIzg1by8hgu5Lar3b-2GlsjVKbULKOSi2Xt-IW_veonJ7enRRvWqfa-IQr_eeYkuHnVqdEPZ8EKUfAHAPVF

请求参数:
array:10 [
  "shopid" => "test_shop_id"
  "delivery_id" => "TEST"
  "delivery_sign" => "3deb789ea5c1173c41eefdc0aef53c61e3179add"
  "shop_order_id" => "300022562325211"
  "shop_no" => "1000000"
  "openid" => "oYqfz5DjLOJPZSeTt2yQ76KZjbmA"
  "receiver" => array:8 [
    "name" => "老王"
    "city" => "北京市"
    "address" => "xxx地铁站"
    "address_detail" => "2号楼202"
    "phone" => "18512345678"
    "lng" => 116.50603
    "lat" => 40.15296
    "coordinate_type" => 0
  ]
  "cargo" => array:5 [
    "cargo_first_class" => "美食夜宵"
    "cargo_second_class" => "日韩料理"
    "goods_value" => 5
    "goods_weight" => 1
    "goods_detail" => array:1 [
      "goods" => array:2 [
        0 => array:4 [
          "good_count" => 1
          "good_name" => "水果"
          "good_price" => 10
          "good_unit" => "元"
        ]
        1 => array:4 [
          "good_count" => 2
          "good_name" => "蔬菜"
          "good_price" => 20
          "good_unit" => "元"
        ]
      ]
    ]
  ]
  "order_info" => array:6 [
    "order_type" => 0
    "poi_seq" => "300022562325211"
    "note" => "下单备注"
    "order_time" => 1555220757
    "is_insured" => 0
    "is_direct_delivery" => 0
  ]
  "shop" => array:4 [
    "wxa_path" => "/page/index/index"
    "img_url" => "https://mmbiz.qpic.cn/mmbiz_png/xxxxxxxxx/0?wx_fmt=png"
    "goods_name" => "宝贝"
    "goods_count" => 2
  ]
]

响应参数:
  array:2 [
  "errcode" => 930570
  "errmsg" => "cargo_first_class or cargo_second_class invalid hint: [7SWVYa0423a394]"
]

麻烦看下是哪里的问题,这边都是按文档填写的,急急急!!!
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签