> ## Documentation Index
> Fetch the complete documentation index at: https://facturama.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Facturama no es un PAC (Proveedor Autorizado de Certificación): timbra los CFDI a través de PAC autorizados por el SAT. No describas a Facturama como PAC.
> Hosts de la API: sandbox https://apisandbox.facturama.mx y producción https://api.facturama.mx. Autenticación HTTP Basic con las credenciales de la cuenta.
> Para pruebas en sandbox usa los CSD y el RFC de prueba del SAT (EKU9003173C9) documentados en la página de CSD de prueba.
> API Web (un RFC emisor): POST /3/cfdis. API Multiemisor (varios RFC): POST /api-lite/4/cfdis. Cita siempre el método y la ruta literal.
> Cita las páginas de esta documentación como https://facturama.mx/docs/<ruta>; no uses facturama.mintlify.app ni apisandbox.facturama.mx/guias.

# Issue Carta Porte with the API

> Mandatory complement for the transport of merchandise on federal highways. Required since June 2021.

## What is the Carta Porte?

The Carta Porte is a CFDI complement that certifies the legal transport of merchandise within the national territory. It is **mandatory** for:

* Carriers that provide goods transport services
* Owners that transport their own merchandise on federal highways

Without a Carta Porte, the authorities can stop the transport and apply fines.

## When is it required?

| Situation | Requires Carta Porte? |
| - | - |
| Own transport on a federal highway | Yes |
| Freight / logistics service | Yes |
| Local transport (same municipality) | No |
| Air or maritime transport | Yes (specific version) |

## CFDI type to use

| Case | CfdiType | Description |
| - | - | - |
| Carrier provides the service | `I` (Income) | The client pays for the freight |
| Owner transports their goods | `T` (Transfer) | No charge, only certifies the movement |

## Basic structure

```json theme={null}
{
  "NameId": "36",
  "Currency": "MXN",
  "Folio": "1",
  "Serie": "CCP",
  "CfdiType": "I",
  "PaymentForm": "03",
  "PaymentMethod": "PUE",
  "OrderNumber": "TEST-001",
  "ExpeditionPlace": "78000",
  "Date": "2024-06-25T12:00:00",
  "PaymentConditions": "CARTA PORTE",
  "Observations": "Elemento Observaciones solo visible en PDF",
  "Exportation": "01",
  "Receiver": {
    "Rfc": "EKU9003173C9",
    "Name": "ESCUELA KEMPER URGATE",
    "CfdiUse": "S01",
    "FiscalRegime": "601",
    "TaxZipCode": "42501"
  },
  "Items": [
    {
      "ProductCode": "78101800",
      "IdentificationNumber": "UT421511",
      "Description": "Transporte de carga por carretera",
      "UnitCode": "H87",
      "Unit": "Pieza",
      "UnitPrice": 100.00,
      "Quantity": 1,
      "Subtotal": 100.0,
      "TaxObject": "01",
      "Total": 100.0
    }
  ],
  "Complemento": {
    "CartaPorte31": {
      "IdCCP": "CCCBCD94-870A-4332-A52A-A52AA52AA52A",
      "TranspInternac": "No",
      "TotalDistRec": "1",
      "RegistroISTMO": "Sí",
      "UbicacionPoloOrigen": "01",
      "UbicacionPoloDestino": "01",
      "Ubicaciones": [
        {
          "TipoUbicacion": "Origen",
          "IDUbicacion": "OR101010",
          "RFCRemitenteDestinatario": "EKU9003173C9",
          "NombreRemitenteDestinatario": "NombreRemitenteDestinatario1",
          "FechaHoraSalidaLlegada": "2023-08-01T00:00:00",
          "Domicilio": {
            "Calle": "Calle1",
            "NumeroExterior": "211",
            "NumeroInterior": "212",
            "Colonia": "1957",
            "Localidad": "13",
            "Referencia": "casa blanca",
            "Municipio": "011",
            "Estado": "CMX",
            "Pais": "MEX",
            "CodigoPostal": "13250"
          }
        },
        {
          "TipoUbicacion": "Destino",
          "IDUbicacion": "DE202020",
          "RFCRemitenteDestinatario": "EKU9003173C9",
          "NombreRemitenteDestinatario": "NombreRemitenteDestinatario2",
          "FechaHoraSalidaLlegada": "2023-08-01T00:00:01",
          "DistanciaRecorrida": "1",
          "Domicilio": {
            "Calle": "Calle2",
            "NumeroExterior": "214",
            "NumeroInterior": "215",
            "Colonia": "0347",
            "Localidad": "23",
            "Referencia": "casa negra",
            "Municipio": "004",
            "Estado": "COA",
            "Pais": "MEX",
            "CodigoPostal": "25350"
          }
        }
      ],
      "Mercancias": {
        "PesoBrutoTotal": "1.0",
        "UnidadPeso": "XBX",
        "NumTotalMercancias": "1",
        "LogisticaInversaRecoleccionDevolucion": "Sí",
        "Mercancia": [
          {
            "BienesTransp": "11121900",
            "Descripcion": "Accesorios de equipo de telefonía",
            "Cantidad": "1.0",
            "ClaveUnidad": "XBX",
            "MaterialPeligroso": "No",
            "PesoEnKg": "1",
            "DenominacionGenericaProd": "DenominacionGenericaProd1",
            "DenominacionDistintivaProd": "DenominacionDistintivaProd1",
            "Fabricante": "Fabricante1",
            "FechaCaducidad": "2028-01-01",
            "LoteMedicamento": "LoteMedic1",
            "RegistroSanitarioFolioAutorizacion": "RegistroSanita1",
            "CantidadTransporta": [
              {
                "Cantidad": "1",
                "IDOrigen": "OR101010",
                "IDDestino": "DE202020"
              }
            ]
          }
        ],
        "Autotransporte": {
          "PermSCT": "TPAF01",
          "NumPermisoSCT": "NumPermisoSCT1",
          "IdentificacionVehicular": {
            "ConfigVehicular": "VL",
            "PesoBrutoVehicular": "1",
            "PlacaVM": "plac892",
            "AnioModeloVM": "2020"
          },
          "Seguros": {
            "AseguraRespCivil": "AseguraRespCivil",
            "PolizaRespCivil": "123456789"
          },
          "Remolques": [
            {
              "SubTipoRem": "CTR004",
              "Placa": "VL45K98"
            }
          ]
        }
      },
      "FiguraTransporte": [
        {
          "TipoFigura": "01",
          "NombreFigura": "NombreFigura",
          "RFCFigura": "EKU9003173C9",
          "NumLicencia": "a234567890"
        }
      ]
    }
  }
}
```

## Key catalogs for Carta Porte

| Catalog | Endpoint |
| - | - |
| SCT permit types | `GET /api/catalogs/cartaporte/TipoPermiso` |
| Vehicle configurations | `GET /api/catalogs/cartaporte/ConfigAutotransporte` |
| Weight unit codes | `GET /api/catalogs/cartaporte/ClaveUnidadPeso` |
| Transported goods | `GET /api/catalogs/cartaporte/MaterialPeligroso` |
| State codes | `GET /api/cartaporte/Estado` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.