Freight — LTL & FTL

Quote and ship pallets and full truckloads with the same endpoints you use for parcels.

Not everything fits in a box. Envia also moves pallets (LTL) and full truckloads (FTL) — through the same endpoints you already use, with a different payload.

When to use it
ParcelBoxes. The default
LTL — Less than TruckloadPallets and crates that share a truck with other shippers' freight
FTL — Full TruckloadYou take the whole truck

One field decides everything

shipment.type routes the request internally:

shipment.typeMode
1Parcel (the default — you can omit it)
2LTL
3FTL

For freight, shipment.type is required. Leave it out and your pallet is quoted as a parcel — usually with a price that makes no sense, or a flat rejection from the carrier.

The endpoints do not change: /ship/rate, /ship/generate, /ship/pickup and /ship/cancel all accept freight.

Not every carrier does freight

Freight is a separate action, and a carrier that quotes parcels may not quote pallets:

{ "error": { "code": 900, "message": "Carrier castores doesn't have the action rateFtl" } }

Check before you offer it: GET /carrier-actions with country_code lists what each carrier supports, and needs no token. Some carriers also ask for fields the parcel flow does not — paquetexpress, for one, requires the origin district.

Freight asks for more of the address

The required fields change with shipment.type. The endpoints are the same, the contract is not:

Parcel (type: 1)Freight (type: 2 or 3)
origin / destination requirecity, state, country, postalCodethe same plus name, phone and street

Quote a pallet with the address you would use for a parcel and you get:

{ "meta": "error", "error": { "code": 400, "message": "Required property missing: name, …" } }

It is the same error a missing field always gives, which makes it easy to read as "our request is malformed" rather than "freight wants more". Send the full address for freight and the difference disappears.

The response tells you which path it took

meta is not rate for freight:

shipment.typemeta in the response
1 parcelrate
2 LTLrateLtl
3 FTLrateFtl

If your client branches on meta to decide how to read the body, branch on all three: otherwise a freight response is read as a parcel one, without any error.

Quoting LTL

API reference → Get Shipping Rates

curl -X POST https://api-test.envia.com/ship/rate/ \
  -H "Authorization: Bearer $ENVIA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "origin": {
      "name": "Bodega Monterrey", "phone": "8112345678", "street": "Av. Constitucion",
      "city": "Monterrey", "state": "NL", "country": "MX", "postalCode": "64000"
    },
    "destination": {
      "name": "Planta Guadalajara", "phone": "3312345678", "street": "Av. Vallarta",
      "city": "Guadalajara", "state": "JAL", "country": "MX", "postalCode": "44100"
    },
    "packages": [{
      "content": "Refacciones metálicas",
      "amount": 4,
      "type": "pallet",
      "weight": 320,
      "dimensions": { "length": 120, "width": 100, "height": 150 }
    }],
    "shipment": {
      "carrier": "castores",
      "type": 2,
      "declaredValue": 185000,
      "invoiceNumber": "F-2026-4471"
    }
  }'

What LTL adds

shipment accepts three fields that parcels do not:

FieldWhat it does
declaredValueValue of the freight, for insurance and customs
invoiceNumberYour invoice number, printed on the carrier's paperwork
additionalServicesExtra services for the freight — see Additional Services

type is not a number here

In a parcel, packages[].type is a numeric shipment classification. In LTL it is the container, from a closed list:

pallet · box · container · bucket · reel · gallon · cage · jug · roll · drum · wooden_box · piece_no_pallet · kegs · tied · cardboard_buckets · ibc_container · jerrycan

A value outside that list is rejected with error 1100. See Errors & Troubleshooting.

Quoting FTL

FTL is simpler, because you are buying the truck, not paying by volume:

{
  "packages": [{ "content": "Producto terminado", "amount": 1, "type": "container" }],
  "shipment": { "carrier": "estafeta", "type": 3 }
}

dimensions and weight are not required for FTL. The price does not depend on them. Sending them is harmless, and leaving them out is not an error.

What to watch for

Not every carrier takes freightMany reject it with 1100 "Doesn't support pallet". Quote several and expect some to decline — that is normal, not a bug
Pickup is not optional in practiceA pallet cannot be dropped at a counter. Schedule it with /ship/pickup, sending the same shipment.type
Carta Porte appliesGround freight inside Mexico must travel with one. See Add Carta Porte complement
Weight limits are per packageError 1105 "Doesn't support more than {n}kg for package unit" is per package, not per shipment. Split the load across packages

Full flow

1. Rate      POST /ship/rate        shipment.type = 2 or 3
2. Label     POST /ship/generate    same type, same packages
3. Carta Porte (MX)  POST /ship/complement   with the shipmentId
4. Pickup    POST /ship/pickup      same type
5. Track     POST /ship/track

Next steps


Did this page help you?