userEmail) é o login do usuário principal.timeZoneId, é usado o fuso padrão (ID 13).permissionGroup, occurrenceSetting, alarmSetting, language, timeZone e customerCnpj vêm null.permissionGroupId precisa ser um grupo do tipo Cliente. userEmail é único (422).languageId inexistente → 400 com {"error": "language_id inválido: <id>"}.curl --location 'https://api.cloud-services.yuv.com.br/customer' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customerName": "Transportadora Exemplo",
"userName": "Maria Souza",
"userEmail": "maria@exemplo.com.br",
"userPassword": "senha123",
"permissionGroupId": 1,
"languageId": 1,
"timeZoneId": 13,
"customerZipCode": "01310-100",
"customerAddress": "Av. Paulista, 1000",
"customerCity": "São Paulo",
"customerPhone": "(11) 99999-0000",
"streamingLimit": 5
}'{
"data": {
"customerId": 45,
"customerName": "Transportadora Exemplo",
"customerEmail": "maria@exemplo.com.br",
"customerIsEnabled": true,
"permissionGroup": null,
"occurrenceSetting": null,
"customerCnpj": null,
"customerZipCode": "01310-100",
"customerAddress": "Av. Paulista, 1000",
"customerComplement": null,
"customerNeighborhood": null,
"customerCity": "São Paulo",
"customerState": null,
"customerPhone": "(11) 99999-0000",
"customerObservation": null,
"customerStreamingLimit": 5,
"occurrenceSettingId": null,
"alarmSettingId": null,
"alarmSetting": null,
"customerCreatedAt": "2025-05-20T12:00:00Z",
"customerUpdatedAt": "2025-05-20T12:00:00Z",
"userId": 120,
"userName": "Maria Souza",
"userIsEnabled": true,
"userTypeId": 4,
"permissionGroupId": 1,
"languageId": 1,
"language": null,
"timeZoneId": 13,
"timeZone": null
}
}