1. Transportadoras
  2. Cadastrar transportadora
POST

​
Autenticação

x-enterprise-key
required
string

Chave Enterprise com a permissão desta rota. Veja Autenticação.

x-organization-id
required
string

ID da organization (empresa emitente) em que a operação é feita.

​
Body

application/json

CNPJCPF
required
string
xNome
required
string
xFant
string
IE
string
fone
string
CEP
string
xLgr
string
nro
string
xBairro
string
cMun
integer
xMun
string
UF
string

​
Respostas

StatusDescrição
201Transportadora criada.
400Body inválido (campo obrigatório ausente, formato incorreto ou campo não permitido).
401Credencial ausente, inválida ou expirada.
curl -X POST "https://api.treeunfe.com.br/api/v1/carriers" \
  -H "x-enterprise-key: SUA_ENTERPRISE_KEY" \
  -H "x-organization-id: ID_DA_ORGANIZATION" \
  -H "Content-Type: application/json" \
  -d '{
    "CNPJCPF": "12345678000195",
    "xNome": "TRANSPORTADORA EXEMPLO LTDA",
    "xFant": "TRANSPORTES EXEMPLO",
    "IE": "112347339",
    "fone": "+556499999999",
    "CEP": "76600000",
    "xLgr": "Rua Exemplo",
    "nro": "138",
    "xBairro": "Centro",
    "cMun": 5208707,
    "xMun": "Goiânia",
    "UF": "GO"
  }'