---
title: "International shipping"
description: "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.

:::warning
**International lanes are only available in TEST mode.** In LIVE the API accepts Mexico→Mexico lanes only: any other combination fails with `UNSUPPORTED_TAX_JURISDICTION`. Use TEST to build and validate your international integration.
:::

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.

```json
{
  "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.

| Prop | Type | Default | Description |
| - | - | - | - |
| `contentsType` | `string` | - | MERCHANDISE, GIFT, DOCUMENTS, SAMPLE, or RETURNED_GOODS. |
| `dutyPayer` | `string` | - | SENDER or RECIPIENT — who pays destination import duties. |
| `items[].description` | `string` | - | Plain-language contents, 3–200 characters. |
| `items[].quantity` | `number` | - | Positive integer, at most 100,000. |
| `items[].unitValue` | `number` | - | Unit value in items[].currency (ISO code, e.g. USD, MXN). |
| `items[].originCountry` | `string` | - | ISO country where the goods were made. |
| `items[].weight` | `number` | - | Weight of one unit, in kilograms. |
| `items[].hsCode?` | `string` | - | Optional 6–10 digit tariff code. |

A declaration carries at most 50 items.

```json
{
  "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](/en/shipping/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** — `dutyPayer` decides who pays them; SendIt does not estimate the amount.
- **Pickups and address verification** — Mexico only.
