International shipping
Quote and buy labels on lanes that leave Mexico, enter Mexico, or run between two foreign countries — available in TEST.
You can quote, buy, and void labels on three lane types in addition to domestic shipping:
- Export — origin Mexico, destination another country (MX→US).
- Import — origin another country, destination Mexico (US→MX).
- Foreign-to-foreign — both ends outside Mexico (US→US, US→CA). Useful when you ship between other countries.
In TEST the global carriers (FedEx, DHL) serve every lane; Mexico-centric carriers serve Mexican origins only. The quote response is already filtered — only carriers that serve the lane appear.
Quote an international lane
POST /v1/rates and GET /v1/shipments/:id/rates accept country on each location; it defaults to MX. Only Mexico has a postal catalog: a foreign location must include city and state, and its postalCode is validated against that country’s format.
{
"origin": { "postalCode": "06600" },
"destination": {
"postalCode": "78040",
"country": "US",
"city": "Laredo",
"state": "TX"
},
"parcel": { "length": 30, "width": 20, "height": 15, "weight": 2.5 }
}
An incomplete or malformed foreign location fails with 400 INVALID_INPUT (details.code: INCOMPLETE_FOREIGN_LOCATION).
Currency and taxes
You are always quoted and charged in your wallet’s currency — Mexican pesos. If a rate arrives priced in another currency, the conversion happens once, at quote time: purchase, void, and refund settle at the quoted total without converting again.
In TEST, SendIt rates international freight at 0% IVA. With your own carrier account, the SendIt software fee includes 16% IVA. Your carrier bills the freight separately. Use a TEST key for international shipments.
Add the customs declaration
Buying a label on a lane that crosses a border requires customsDeclaration on the shipment — at creation or via PUT /v1/shipments/:id while it is a DRAFT. A lane inside a single country, even a foreign one (US→US), needs none.
Purchasing without it fails before any money moves with 400 INVALID_INPUT (details.code: CUSTOMS_DECLARATION_REQUIRED). Attaching the declaration is not a rate-affecting edit: quotes you already fetched remain valid.
contentsTypestring
MERCHANDISE, GIFT, DOCUMENTS, SAMPLE, or RETURNED_GOODS.
stringdutyPayerstring
SENDER or RECIPIENT — who pays destination import duties.
stringitems[].descriptionstring
Plain-language contents, 3–200 characters.
stringitems[].quantitynumber
Positive integer, at most 100,000.
numberitems[].unitValuenumber
Unit value in items[].currency (ISO code, e.g. USD, MXN).
numberitems[].originCountrystring
ISO country where the goods were made.
stringitems[].weightnumber
Weight of one unit, in kilograms.
numberitems[].hsCode?string
Optional 6–10 digit tariff code.
stringA declaration carries at most 50 items.
{
"customsDeclaration": {
"contentsType": "MERCHANDISE",
"dutyPayer": "RECIPIENT",
"items": [
{
"description": "Cotton T-shirts",
"quantity": 10,
"unitValue": 15,
"currency": "USD",
"originCountry": "MX",
"weight": 2.2,
"hsCode": "610910"
}
]
}
}
The declaration is frozen on purchase and passed to the carrier. It is your legal statement to customs: SendIt validates its shape, not its contents.
Addresses outside Mexico
exteriorNumber and neighborhood are required only for Mexican addresses. Everywhere else they are optional; street, city, state, postalCode, and country remain required. This applies to inline addresses and to saved addresses alike.
Errors
| Code | When it happens | How to resolve it |
|---|---|---|
INCOMPLETE_FOREIGN_LOCATION |
A foreign location lacks city/state, or its postalCode fails the country’s format |
Send city, state, and a postal code valid for that country |
CUSTOMS_DECLARATION_REQUIRED |
You buy a label on a cross-border lane without a declaration | Add customsDeclaration to the shipment and buy again — your quotes remain valid |
UNSUPPORTED_TAX_JURISDICTION |
You request a non-MX→MX lane in LIVE mode | International lanes operate in TEST only today |
INVALID_INPUT |
Another validation error (unknown country, invalid items) | Check error.details for the exact field |
Current limits
- MXN wallet — quotes always settle in pesos.
- One parcel per shipment — no multi-piece shipments yet.
- Duties —
dutyPayerdecides who pays them; SendIt does not estimate the amount. - Pickups and address verification — Mexico only.