# Freight Calculate

CJ PLATFORM allow customer to freight Calculate.

# Description

  • request parameter
Name Data Type Description
storage required , string(30) Shipping warehouse,Optional range: USA or CHINA
zip required , string(30) Zip code
countryCode required , string(30) Country shortcode, example:US
products required , array Format

# products format

[
    {
        "storage": "CHINA",
        "zip": "12345",
        "countryCode": "US",
        "products": [
            {
                "quantity": 2,
                "variantId": "29345977696309"
            }
        ]
    }
]

response parameter

Name Data Type Description
logisticName string Logistics name
price string Price
discountPrice string Discount price
aging string Arrival days range

# Freight Calculate

POST api/logistic/freightCalculate

Name Data Type Description
storage required , string(30) Shipping warehouse,Optional range: USA or CHINA
zip required , string(30) Zip code
countryCode required , string(30) Country shortcode, example:US
products required , array Format

request parameter

[
    {
    "storage": "CHINA",
        "zip": "12345",
        "countryCode": "US",
        "products": [
            {
                "quantity": 2,
                "variantId": "29345977696309"
            }
        ]
    }
]

response parameter HTTP/1.1 200 ok

[
    {
    "result": true,
    "logisticinfo": "[{\"cast\":\"0\",\"logisticName\":\"China EMS\",\"price\":20.31,\"discountPrice\":20.31,\"discount\":0,\"remark\":\"\",\"aging\":\"5-15\"}]",
    "message": []
    }
]

# Freight Calculate products format

[
    {
        "storage": "CHINA",
        "zip": "12345",
        "countryCode": "US",
        "products": [
            {
                "quantity": 2,
                "variantId": "29345977696309"
            }
        ]
    }
]