Docs Menu

Door-to-Door Freight Rates API

Query the same door-to-door rates shown on our website. Search by weight for channel charges or by volume for country-specific rates and estimated totals. Quote terms specify customs clearance, duties and delivery coverage.

Search by weight (kg)#

Query door-to-door channels by destination country, cargo weight and cargo type. Get customer-facing charges and estimated transit times.

3 credits per call with results.

HTTP
POST /api/openapi/v1/freight/line/weight/search

Request fields#

FieldTypeDescription
destination_countrystringRequired. Two-letter country code, such as US or GB.
weightnumberRequired. Actual cargo weight in kg, greater than zero.
cargo_typeintOptional. 0 document, 1 parcel (default), 2 waterproof bag.
BASH
curl -X POST https://www.5688.cn/api/openapi/v1/freight/line/weight/search   -H "Content-Type: application/json"   -H "X-Awice-AppKey: AK_xxxxxxxxxxxxxxxx"   -H "X-Awice-Timestamp: 1746086400"   -H "X-Awice-Nonce: a1b2c3d4"   -H "X-Awice-Signature: YOUR_SIGNATURE"   -d '{"destination_country":"US","weight":21.5,"cargo_type":1}'

Response fields#

FieldTypeDescription
resolvedobjectCountry code, weight and cargo type used for the request.
listarrayAvailable website quotes for this service. Each quote contains the following fields.
channel_namestringChannel name shown to customers.
chargeable_weightnumberChargeable weight in kg.
unit_pricenumberIndicative price per kg.
freightnumberBase freight charge.
fuel_feenumberFuel surcharge amount.
fuel_ratestringFuel surcharge rate. May be empty.
surchargenumberOther surcharges.
total_amountnumberTotal quote as displayed on the website. Use this amount directly.
currencystringQuote currency, CNY.
ttstringEstimated transit time.
remarksstringService and pricing notes.
JSON
{
  "code": 0,
  "msg": "success",
  "request_id": "req_example",
  "data": {
    "resolved": {
      "destination_country": "US",
      "weight": 21.5,
      "cargo_type": 1
    },
    "list": [
      {
        "channel_name": "US Door-to-Door (example)",
        "chargeable_weight": 21.5,
        "unit_price": 20,
        "freight": 400,
        "fuel_fee": 30,
        "fuel_rate": "7.5%",
        "surcharge": 0,
        "total_amount": 430,
        "currency": "CNY",
        "tt": "15–20 days",
        "remarks": ""
      }
    ]
  },
  "credit_used": 3,
  "credit_balance": 997
}

Search by volume (CBM)#

Page through available rates by destination country. Each page with results is billed separately. For numeric rates, the estimated total uses the greater of the minimum and submitted volumes. Text and tiered pricing are returned as written.

1 credits per call with results.

HTTP
POST /api/openapi/v1/freight/line/volume/search

Request fields#

FieldTypeDescription
destination_countrystringRequired. Two-letter country code, such as US or GB.
volumenumberRequired. Cargo volume in CBM (cubic metres), greater than zero.
service_typestringOptional. Use ddu for rates excluding duty or ddp for rates including duty. Values are case-insensitive. Omit or leave blank for all services.
pageintOptional. Page number. Defaults to 1.
limitintOptional. Results per page. Defaults to 20, maximum 50.
BASH
curl -X POST https://www.5688.cn/api/openapi/v1/freight/line/volume/search   -H "Content-Type: application/json"   -H "X-Awice-AppKey: AK_xxxxxxxxxxxxxxxx"   -H "X-Awice-Timestamp: 1746086400"   -H "X-Awice-Nonce: a1b2c3d4"   -H "X-Awice-Signature: YOUR_SIGNATURE"   -d '{"destination_country":"AU","volume":1.2,"service_type":"ddu","page":1,"limit":20}'

DDU, DDP and delivery options#

service_codeservice_type filterDescription
clearanceddpDDP w/ Delivery
nodeliveyddpDDP, No Delivery
ddudduBonded (DDU)
noclearancedduDDU w/ Delivery
deliverydduDDU w/ Delivery
nodeliverydduDDU, No Delivery

DDP rates include import duty and DDU rates exclude it. Both groups have services without delivery. For bonded warehouse rates, check the quote for final delivery coverage and charges.

Response fields#

FieldTypeDescription
resolvedobjectCountry code and volume used for the request. When filtered, service_type contains the lowercase value ddu or ddp.
totalintTotal number of quotes matching the request.
per_pageintResults per page.
current_pageintCurrent page.
last_pageintTotal pages.
dataarrayQuotes for this page. Each quote contains the following fields.
idintRate record ID.
country_namestringDestination country name.
portstringPort or route name.
service_typestringWith a filter, each quote returns ddu or ddp. Unfiltered requests retain the original service code, the same value as service_code.
service_codestringOriginal code for the specific service. Use the table above to identify bonded warehouse services and services with or without delivery.
service_type_namestring | nullFull Chinese service name for display, such as 双清不含税含派送 (duty excluded, delivery included). Present on filtered and unfiltered quotes. Null when the name is unknown.
cargo_typestringApplicable cargo type.
ttstringEstimated transit time.
currencystringQuote currency. Defaults to USD.
minimum_volumenumberMinimum chargeable volume in CBM.
chargeable_volumenumberThe greater of the requested volume and the minimum chargeable volume, in CBM.
unit_pricenumber | nullNumeric price per CBM. Null for a text-based quote.
total_amountnumber | nullEstimated numeric total, calculated from unit price and chargeable volume and rounded to two decimal places. Null for a text-based quote.
price_textstring | nullOriginal text rate or tiered pricing terms. Null for a numeric quote.
remarksstringQuote notes.
exceedstringOversize, overweight or other limit conditions.
remotestringRemote area notes.
areastringDelivery area notes.
productstringProduct category notes.
deliverystringDelivery conditions.
scopestringService coverage.
referencestringOther quote information.
updated_atnumber | string | nullLast update of the rate record.
JSON
{
  "code": 0,
  "msg": "success",
  "request_id": "req_example",
  "data": {
    "resolved": {
      "destination_country": "AU",
      "volume": 1.2,
      "service_type": "ddu"
    },
    "total": 1,
    "per_page": 20,
    "current_page": 1,
    "last_page": 1,
    "data": [
      {
        "id": 123,
        "country_name": "Australia",
        "port": "Sydney",
        "service_type": "ddu",
        "service_code": "delivery",
        "service_type_name": "双清不含税含派送",
        "cargo_type": "General cargo",
        "tt": "15–20 days",
        "currency": "CNY",
        "minimum_volume": 1,
        "chargeable_volume": 1.2,
        "unit_price": 1500,
        "total_amount": 1800,
        "price_text": null,
        "remarks": "",
        "exceed": "",
        "remote": "",
        "area": "",
        "product": "",
        "delivery": "",
        "scope": "",
        "reference": "",
        "updated_at": 1746086400
      }
    ]
  },
  "credit_used": 1,
  "credit_balance": 999
}

Empty results and errors#

  • When the destination or requested page has no rates, the response contains code=0, an empty rate array, and credit_used=0.
  • Invalid required fields, country codes, service types or pagination return HTTP 400 / 1001. See data.field for the field name.
  • If the weight quote provider is unavailable, the API returns HTTP 502 / 5002 with zero credits deducted.

Requests use the existing app signature, balance precheck and rate limits. In a successful quote response, credit_used is the actual deduction and credit_balance is the remaining balance.