# Check the shipping model

# Dxplaination of Interface Call Request

http请求方式:POST
https://api.weixin.qq.com/product/delivery/get_freight_template?access_token=xxxxxxxxx

# Example of request parameters

{
}

# Examples of back-up

{
    "errcode" : 0,
    "errcode" : "",
    "template_list":
    [
        {
            "template_id":11846,
            "name":"新疆西藏不包邮",
            "valuation_type":1,
            "send_time":7,
            "address_info":
            {
                "province_name":"北京市",
                "city_name":"北京市",
                "county_name":"东城区"
            },
            "delivery_type":1,
            "delivery_id":[""],
            "shipping_method":2,
            "all_condition_free_detail":
            {
                "condition_free_detail_list":
                [
                   {
                       "address_infos":
                       [
                           {
                               "province_name":"安徽省",
                               "city_name":"马鞍山市",
                               "county_name":""
                           }
                       ],
                       "min_weight":1,
                       "min_amount":100,
                       "valuation_flag":1,
                       "amount_flag":1
                    } 
                ]
            },
            "all_freight_calc_method":
            {
                "freight_calc_method_list":
                [
                   {
                       "address_info":
                       [
                           {
                               "province_name":"新疆维吾尔自治区"
                           },
                           {
                               "province_name":"西藏自治区"
                           }
                       ],
                       "is_default":false,
                       "first_val_amount":1,
                       "first_price":1000,
                       "second_val_amount":1,
                       "second_price":800
                  }
                ]
            },
            "create_time":1594968424,
            "update_time":1594968424,
            "is_default":0,
            "not_send_area":
            {
                "address_info":[]
            }
        }
    ]
}

# Dxplaination of request parameters

参数 type Is it compulsory? Introductions

# Dxplaination of callback parameters

参数 type Introductions
errcode string Error code
errmsg string Error message
template_list[].template_id number Freight Template ID
template_list[].name string Shipping Model Name
template_list[].valuation_type nunber How to bill
template_list[].send_time number Shipping time
template_list[].address_info object Shipping Address
template_list[].delivery_type number Delivery methods
template_list[].delivery_id[] array List of courier companies
template_list[].shipping_method number Is it mailed or not?
template_list[].all_condition_free_detail object Conditions Postal details
template_list[].all_freight_calc_method object Specific method of billing for designated areas
template_list[].create_time number Created time
template_list[].update_time number Updated time
template_list[].is_default number Is this the default template?
template_list[].not_send_area object Areas not shipped

# object-address_info

参数 type Introductions
province_name string province
city_name string city
county_name string Districts and Counties

# object-all_condition_free_detail

参数 type Introductions
condition_free_detail_list[].address_infos object Address_info Address_info
condition_free_detail_list[].min_piece number Minimum number of parcels
condition_free_detail_list[].min_weight number Shipping Minimum Weight
condition_free_detail_list[].min_amount number Minimum Amount for Postal
condition_free_detail_list[].valuation_flag number Whether the corresponding option for billing method is already set
condition_free_detail_list[].amount_flag number Is the amount set?

# object-all_freight_calc_method

参数 type Introductions
freight_calc_method_list[].address_info object Address_info Address_info
freight_calc_method_list[].is_default number Is this the default shipping rate?
freight_calc_method_list[].delivery_id string A courier company
freight_calc_method_list[].first_val_amount number First leg freight meets weight, unit kg
freight_calc_method_list[].first_price number The amount of the first leg of freight, in unit
freight_calc_method_list[].second_val_amount number Renewal Unit Weight, Unit Kg
freight_calc_method_list[].second_price number Amount of increase in renewal cost per unit, unit divided

# object-not_send_area

参数 type Introductions
address_info object No delivery area, same address_info

# Enumeration value -valuation_type

枚举值 describe
1 Order by Order
2 By weight

# Enumeration value - send_time

枚举值 describe
1 4 hours
2 8 hours
3 12 hours
4 16 hours
5 20 hours
6 24 hours
7 48 hours
8 3 days
9 5 days
10 7 days
11 10 days
12 12 days
13 14 days
14 16 days
15 20 days
16 25 days
17 30 days
18 35 days
19 45 days

# Enumeration value - delivery_type

枚举值 describe
1 express delivery

# Enumeration value - shipping_method

枚举值 describe
1 shipping included
2 Conditions Postal
3 No mail.

# Return code

返回码 Error Type
-1 System exceptions
-2 Token too long