- Transportadoras
- Atualizar transportadora
Transportadoras
Atualizar transportadora
Atualizar transportadora
PUT
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.
Parâmetros de rota
carrierId
required
string
ID (UUID) da transportadora.
Body
application/json
xNome
string
xFant
string
IE
string
fone
string
CEP
string
xLgr
string
nro
string
xBairro
string
cMun
integer
xMun
string
UF
string
Respostas
| Status | Descrição |
|---|---|
200 | Transportadora atualizada. |
400 | Body inválido (campo obrigatório ausente, formato incorreto ou campo não permitido). |
404 | Recurso não encontrado. |
curl -X PUT "https://api.treeunfe.com.br/api/v1/carriers/CARRIERID" \
-H "x-enterprise-key: SUA_ENTERPRISE_KEY" \
-H "x-organization-id: ID_DA_ORGANIZATION" \
-H "Content-Type: application/json" \
-d '{
"xNome": "TRANSPORTADORA EXEMPLO LTDA - MATRIZ"
}'
curl -X PUT "https://api.treeunfe.com.br/api/v1/carriers/CARRIERID" \
-H "x-enterprise-key: SUA_ENTERPRISE_KEY" \
-H "x-organization-id: ID_DA_ORGANIZATION" \
-H "Content-Type: application/json" \
-d '{
"xNome": "TRANSPORTADORA EXEMPLO LTDA - MATRIZ"
}'