SendIt documentation
One REST API to quote, generate labels, and track shipments with every major Mexican carrier.
SendIt is shipping infrastructure for Mexico. One REST API connects your business to the country’s major carriers (paqueterías). You get real-time rates, label generation, and normalized tracking. Prices are in Mexican pesos, and you fund by SPEI transfer.
Every request goes to the same base URL:
https://api.sendit.mx/v1
And every response uses the same envelope:
{
"success": true,
"data": { "...": "..." },
"meta": { "...": "..." }
}
Start here
Your first label
From zero to a PDF label (guía) in minutes. In test mode, no card required.
Authentication
Create API keys, understand the sk_test_ and sk_live_ prefixes, and protect your credentials.
Test mode
A complete sandbox. Simulated carriers and a $10,000 MXN virtual balance.
Webhooks
Receive every status change on your server, with verifiable signatures.
The essential flow
Your integration reaches its first label in three steps:
- Create a shipment.
POST /v1/shipmentsreturns the shipment andrates[]in one response.rates[]holds quotes from every available carrier. - Pick a rate. Each rate carries an
id, a tax-inclusive breakdown, and the estimated delivery time. The total you see is what your wallet is charged. - Buy the label.
POST /v1/shipments/:id/labelwith the chosenrateIdreturns the PDF label and the tracking number.
If you already know your carrier, or want the cheapest, buy the label in one call with the purchase object. See One-call buy.
curl -X POST https://api.sendit.mx/v1/shipments \
-H "X-API-Key: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"from": { "contactName": "Almacén CDMX", "contactPhone": "+5215512345678",
"street": "Av. Insurgentes Sur", "exteriorNumber": "1602",
"neighborhood": "Crédito Constructor", "city": "Ciudad de México",
"state": "CDMX", "postalCode": "03940", "country": "MX" },
"to": { "contactName": "María López", "contactPhone": "+5213312345678",
"street": "Av. López Mateos", "exteriorNumber": "45",
"neighborhood": "Jardines del Sol", "city": "Zapopan",
"state": "JAL", "postalCode": "45050", "country": "MX" },
"parcel": { "length": 30, "width": 20, "height": 15, "weight": 2.5 }
}'
Explore by topic
Shipments
The shipment object and its full lifecycle.
Rates
Compare carrier rates in a single call.
Orders
Store orders with line items and multiple shipments.
Wallet
Prepaid MXN balance, funded via SPEI or card.
CFDI
Configure your fiscal profile and review invoice records (beta).
Conventions
Errors, pagination, idempotency, and versioning.