---
title: "Carrier accounts"
description: "Choose which carriers (paqueterías) and services quote for your organization, and connect your own negotiated carrier contract."
---

Choose which carriers and services return rates. You can connect your own contract when the carrier connection supports account verification. With your own account, the carrier bills freight and SendIt charges the per-label software fee.

:::note
**Beta.** Every carrier is in beta. See [Carriers & services](/en/shipping/carriers) for what the label covers.
:::

| Method | Path | Scope | Description |
| --- | --- | --- | --- |
| `GET` | `/v1/carrier-preferences` | — | List every carrier with your organization's configuration |
| `GET` | `/v1/carrier-preferences/:carrierCode` | — | Get one carrier |
| `PUT` | `/v1/carrier-preferences/:carrierCode` | `carrier_preferences:write` | Update one carrier |
| `PATCH` | `/v1/carrier-preferences/bulk` | `carrier_preferences:write` | Enable or disable several at once |
| `DELETE` | `/v1/carrier-preferences/:carrierCode` | `carrier_preferences:write` | Reset one carrier to its defaults |
| `PUT` | `/v1/carrier-preferences/:carrierCode/credentials` | `carrier_preferences:write` | Store your own account's credentials |
| `DELETE` | `/v1/carrier-preferences/:carrierCode/credentials` | `carrier_preferences:write` | Clear the credentials and return to SendIt's account |
| `POST` | `/v1/carrier-preferences/:carrierCode/credentials/verify` | `carrier_preferences:write` | Verify the stored credentials |

Write endpoints require the `ADMIN` role or above.

## Check your configuration

```bash
curl https://api.sendit.mx/v1/carrier-preferences \
  -H "X-API-Key: sk_test_..."
```

```json
{
  "success": true,
  "data": [
    {
      "carrierCode": "FEDEX",
      "carrierName": "FedEx",
      "availableServices": [
        { "serviceName": "FedEx Economy", "serviceLevel": "economy" },
        { "serviceName": "FedEx Express", "serviceLevel": "express" }
      ],
      "supportsPickups": true,
      "isConfigured": true,
      "isEnabled": true,
      "enabledServices": ["economy", "express"],
      "defaultService": "express",
      "usesOwnAccount": false
    }
  ],
  "meta": { "count": 1 }
}
```

| Field | Description |
| --- | --- |
| `availableServices` | The services the carrier offers, with their `serviceLevel` |
| `supportsPickups` | Whether it accepts scheduled [pickups](/en/shipping/pickups) |
| `isConfigured` | Whether your organization has saved its own configuration for this carrier |
| `isEnabled` | Whether it takes part in `POST /v1/rates` |
| `enabledServices` | Allowed services; `null` = all of them |
| `defaultService` | Pre-selected service in your forms (convenience only) |
| `usesOwnAccount` | Whether quotes and labels use your own carrier account |

`GET /v1/carrier-preferences/:carrierCode` returns a single object with the same shape.

## Choose which carriers quote

### Body parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `isEnabled?` | `boolean` | - | Whether the carrier takes part in POST /v1/rates. |
| `enabledServices?` | `array` | - | Allowed services (serviceLevel). Each entry must exist in that carrier's availableServices. null = all of them. |
| `defaultService?` | `string` | - | Pre-selected service. Must exist in that carrier's availableServices. |

```bash
curl -X PUT https://api.sendit.mx/v1/carrier-preferences/FEDEX \
  -H "X-API-Key: sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "isEnabled": true,
    "enabledServices": ["express", "overnight"],
    "defaultService": "express"
  }'
```

The response is the updated carrier object.

To flip several at once, send the complete list of the ones you want enabled. Anything absent is disabled:

```bash
curl -X PATCH https://api.sendit.mx/v1/carrier-preferences/bulk \
  -H "X-API-Key: sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{ "enabledCarriers": ["FEDEX", "DHL", "ESTAFETA"] }'
```

```json
{
  "success": true,
  "data": {
    "enabled": ["FEDEX", "DHL", "ESTAFETA"],
    "disabled": ["SENDEX", "AMPM"]
  }
}
```

`DELETE /v1/carrier-preferences/FEDEX` resets that carrier (`204`, no body): back to `isEnabled: true`, `enabledServices: null`, `defaultService: null`, and it clears your own credentials if any were stored.

| Code | When | How to resolve it |
| --- | --- | --- |
| `400 INVALID_INPUT` | `enabledServices` or `defaultService` names a service that carrier doesn't offer | Use a `serviceLevel` from its `availableServices` |
| `403 INSUFFICIENT_SCOPE` | The key lacks `carrier_preferences:write` | Issue a key with that [scope](/en/api-conventions/scopes) |
| `404 RESOURCE_NOT_FOUND` | The `carrierCode` isn't in the catalog | Check the [carrier catalog](/en/shipping/carriers) |

## How this affects your quotes

| Endpoint | Honors `isEnabled` | Honors `enabledServices` |
| --- | --- | --- |
| `POST /v1/rates` | Yes | Yes |
| `POST /v1/rates/carrier/:carrierCode` | Yes — if the carrier is disabled or can't quote, it returns `200` with an empty list (`CARRIER_DISABLED` / `CARRIER_UNAVAILABLE` in the detail) | Yes |

A carrier-specific quoting flow respects the same configuration — there is no API way around the toggle.

## Use your own carrier account

If you have a negotiated contract with DHL, FedEx, or Estafeta, store those credentials and SendIt will quote and buy with them. The carrier bills the freight to you, under your contract; SendIt charges only a per-label fee.

### Body parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `accountNumber?` | `string` | - | The account number the carrier issued you. |
| `apiKey?` | `string` | - | API key issued by the carrier. |
| `apiSecret?` | `string` | - | API secret issued by the carrier. |
| `meta?` | `object` | - | Extra fields that specific carrier requires (for example meterNumber). |

Send **at least one** of the four.

```bash
curl -X PUT https://api.sendit.mx/v1/carrier-preferences/FEDEX/credentials \
  -H "X-API-Key: sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "accountNumber": "123456789",
    "apiKey": "carrier-issued-key",
    "apiSecret": "carrier-issued-secret",
    "meta": { "meterNumber": "987654" }
  }'
```

The response is the normal carrier object, now with `usesOwnAccount: true`:

```json
{
  "success": true,
  "data": {
    "carrierCode": "FEDEX",
    "carrierName": "FedEx",
    "isConfigured": true,
    "isEnabled": true,
    "enabledServices": null,
    "defaultService": null,
    "usesOwnAccount": true
  }
}
```

The response **never** echoes the credentials you sent. Do not keep them in frontend state or write them to logs after submitting them.

### Verify and clear

```bash
curl -X POST https://api.sendit.mx/v1/carrier-preferences/FEDEX/credentials/verify \
  -H "X-API-Key: sk_test_..."
```

```json
{
  "success": true,
  "data": { "carrierCode": "FEDEX", "valid": true }
}
```

`DELETE /v1/carrier-preferences/FEDEX/credentials` clears the credentials and returns the object with `usesOwnAccount: false`; from then on quotes use SendIt's account again.

| Code | When | How to resolve it |
| --- | --- | --- |
| `400 INVALID_INPUT` | You sent none of the four fields | Include at least `accountNumber`, `apiKey`, `apiSecret`, or `meta` |
| `403 INSUFFICIENT_SCOPE` | The key lacks `carrier_preferences:write` | Issue a key with that [scope](/en/api-conventions/scopes) |
| `404 RESOURCE_NOT_FOUND` | The `carrierCode` doesn't exist, or there are no stored credentials to verify or clear | Store the credentials first with `PUT` |

## What changes in the quote

A quote made with your own account carries two extra fields:

```json
{
  "carrierCode": "FEDEX",
  "serviceLevel": "express",
  "totalPrice": 2.00,
  "currency": "MXN",
  "usesOwnAccount": true,
  "carrierChargeEstimate": 287.43,
  "breakdown": {
    "baseRate": 1.72,
    "fuelSurcharge": 0.00,
    "insuranceCost": 0.00,
    "subtotal": 1.72,
    "ivaRate": 0.16,
    "ivaAmount": 0.28,
    "total": 2.00
  }
}
```

- **`totalPrice`** is the SendIt per-label fee including IVA. Your wallet covers this amount.
- **`carrierChargeEstimate`** is the freight estimate from **your own contract**. It's informational: it never enters SendIt's wallet or your [CFDI](/en/wallet-and-billing/cfdi), because the carrier invoices it to you separately. It may differ from the final invoice if the carrier applies adjustments.
- **`usesOwnAccount: true`** marks those semantics. Quotes on SendIt's account carry neither field and are unchanged.

Display them separately in your UI: SendIt's charge and the carrier's estimated charge are two different things.

### Per-label fee

| Plan | Fee per label on your own account (IVA included) |
| --- | --- |
| Free | $2.00 MXN |
| Growth | $1.20 MXN |
| Scale | $0.80 MXN |
| Enterprise | Per contract |

This fee is SendIt's only charge for that label — it is exactly what is debited from the wallet. Read it from `limits` on `GET /v1/billing/plans` rather than hard-coding it. On Enterprise the fee is contractual; the label is still created and counted.

## Rules when switching accounts

- **Re-quote** after storing or clearing credentials. Earlier quotes describe the earlier account and no longer apply.
- To void a label or manage its pickup, keep valid credentials for the original account. You can rotate keys for that account.
- Insurance on a label bought with your account is covered and billed by your carrier, not by SendIt.
