- Carriers
- Update carrier
Carriers
Update carrier
Update carrier
PUT
Authentication
x-enterprise-key
required
string
Enterprise key with this route’s permission. See Authentication.
x-organization-id
required
string
ID of the organization (issuing company) the operation applies to.
Path parameters
carrierId
required
string
The carrier’s ID (UUID).
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
Responses
| Status | Description |
|---|---|
200 | Carrier updated. |
400 | Invalid body (missing required field, wrong format, or field not allowed). |
404 | Resource not found. |
curl -X PUT "https://api.treeunfe.com.br/api/v1/carriers/CARRIERID" \
-H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-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: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"xNome": "TRANSPORTADORA EXEMPLO LTDA - MATRIZ"
}'