Saltar al contenido
SendIt está en desarrollo y todavía no opera comercialmente · SendIt is in development and not yet commercially available.
SendItdocs
English
Esc
navigateopen⌘Jpreview
En esta página

Carriers and services

Read the service catalog and use exact codes when selecting a rate.

The catalog contains the services that SendIt can show in rate results. It is read-only: use it to populate selectors and validate a carrier and service combination.

Carriers Beta

Carrier carrierCode Status
DHL Express DHL Beta
FedEx FEDEX Beta
Estafeta ESTAFETA Beta
Sendex SENDEX Beta
AM PM AMPM Beta
Other OTHER Beta

The effective list for a route is the rates[] array returned when you rate a shipment.

Endpoints

Method Path Scope Description
GET /v1/carrier-services carrier_services:read List enabled services; accepts carrierCode
GET /v1/carrier-services/:carrierCode/:serviceCode carrier_services:read Get one exact service

List services

curl "https://api.sendit.mx/v1/carrier-services?carrierCode=FEDEX" \
  -H "X-API-Key: sk_test_..."
{
  "success": true,
  "data": [
    {
      "id": "cs_fedex_priority_overnight",
      "carrierCode": "FEDEX",
      "serviceCode": "PRIORITY_OVERNIGHT",
      "serviceName": "FedEx Priority Overnight",
      "serviceLevel": "overnight",
      "isInternational": false,
      "maxWeightKg": "68.00",
      "maxDimensionCm": "274.00",
      "minDays": 1,
      "maxDays": 1,
      "enabled": true,
      "countries": ["MX"]
    }
  ]
}

Get one exact service

curl https://api.sendit.mx/v1/carrier-services/FEDEX/PRIORITY_OVERNIGHT \
  -H "X-API-Key: sk_test_..."

The response contains the same service object as the list response.

Select by exact code

Each rate carries two different fields:

Field Use
serviceCode The carrier-native exact product identifier. Use it to select the service for a one-call purchase.
serviceLevel A broad normalized category for filtering or display. It does not identify one exact product.

Send carrierCode + serviceCode to select an exact service when creating and purchasing a shipment. When buying an existing rate through the labels endpoint, send its rateId. Codes that are not yet in the catalog do not appear in customer rates.

Handle errors

Code When it happens How to resolve it
403 INSUFFICIENT_SCOPE The key lacks carrier_services:read Issue a key with that scope
404 RESOURCE_NOT_FOUND The carrier and code combination does not exist Query the list and use a current serviceCode

¿Te ha resultado útil esta página?