Actions120
- Authentication Actions
- Bloqueios Actions
- Get Motivos
- Get Bloqueio Faturamento
- Get Bloqueio Conta
- Get Bloqueio Carteira
- Get Bloqueio Compra Pedido
- Get Bloqueio Cotacao Compra
- Get Bloqueio Data Minima Vencimento
- Get Bloqueio Estoque Negativo
- Get Bloqueio Financiamento Pedido
- Get Bloqueio Frete Pago
- Get Bloqueio Limite Credito
- Get Bloqueio Limite Individual
- Get Bloqueio Manutencao Preventiva
- Get Bloqueio Margem
- Get Bloqueio Mes Reajuste
- Get Bloqueio Parcela Minima
- Get Bloqueio Saldo Atrasado
- Desaprovar Bloqueio
- Liberar Bloqueio
- Liberar Bloqueio Limite Credito
- Liberar Bloqueio Limite Individual
- Classificacao Actions
- Cliente Actions
- Instituição Financeira Actions
- Linha de Crédito Actions
- Máquina Actions
- Mecânico Actions
- Motorista Actions
- Negócio Actions
- Nota Fiscal Actions
- Oficina Actions
- Orçamento Actions
- Orçamento Balcão Actions
- Ordem de Serviço Actions
- Criar Ordem de Serviço Completa
- Consultar por ID
- Consultar por Código Externo
- Listar Agendamentos
- Listar Agendamentos por ID
- Listar Status do Lock
- Listar Ordens de Serviço
- Incluir Ordem de Serviço
- Listar Ordens de Serviço Geral
- Incluir Apontamento
- Incluir Despesa
- Incluir Peça
- Incluir Serviço
- Editar Peça
- Editar Serviço
- Editar Veículo
- Incluir Observação
- Ordem Serviço Tipo Actions
- Pedido Actions
- Política de Prazo Actions
- Política de Preço Actions
- Produto Actions
- Prospect Actions
- Saída Actions
- Serviço Actions
- Status Financiamento Actions
- Título Actions
- Veículo Cliente Actions
- Veículo Próprio Actions
- Vendas Actions
- Vendedor Actions
Ordem de Serviço → Incluir Despesa
AI-generatedOverview
The "Ordem de Serviço" (Service Order) resource with the "Incluir Despesa" (Include Expense) operation allows users to add an expense entry to an existing service order in the Nuvem Solution system. This node is useful for automotive workshops, service centers, or any business managing service orders that need to track additional expenses related to a service order.
Typical scenarios include:
- Adding costs such as parts, labor, or external services to a service order after it has been created.
- Recording miscellaneous expenses incurred during the execution of a service order.
- Keeping detailed financial records linked directly to specific service orders for billing and reporting purposes.
Example use case:
- A workshop technician completes a repair and needs to log an extra expense for a replacement part not initially included in the order. Using this node, they can append that expense to the service order by specifying the order ID and providing the expense details in JSON format.
Properties
| Name | Meaning |
|---|---|
| ID da Ordem de Serviço | The unique numeric identifier of the service order to which the expense will be added. |
| Request Body | A JSON object containing the details of the expense to include in the service order. |
The "Request Body" property expects a JSON structure describing the expense. The exact fields depend on the API specification but typically include expense type, amount, description, date, etc.
Output
The node outputs a JSON array containing the response from the Nuvem Solution API after attempting to include the expense in the specified service order. The output JSON reflects the result of the POST request to the endpoint:
POST /erp/oficina/ordensServico/{ordemServicoId}/despesas
where {ordemServicoId} is the service order ID provided.
The output JSON typically includes confirmation of the expense inclusion, possibly with the newly created expense's ID and details.
This node does not output binary data.
Dependencies
- Requires an active connection to the Nuvem Solution API.
- Requires credentials including:
- Base URL of the API.
- Software key.
- Secret.
- User ID.
- User key.
These credentials must be configured in n8n under the appropriate credential type (an API key credential with authentication tokens).
Troubleshooting
- Authentication errors: If the node fails due to authentication, verify that the API credentials (software key, secret, user ID, user key) are correct and have not expired.
- Invalid JSON in Request Body: Ensure the JSON provided in the "Request Body" property is well-formed and matches the expected schema for an expense.
- Service order ID issues: Confirm that the "ID da Ordem de Serviço" corresponds to an existing service order in the system.
- API errors: The node may throw errors if the API returns error responses (e.g., 400 Bad Request, 404 Not Found). Review the error message for details and adjust input parameters accordingly.
- Network issues: Connectivity problems between n8n and the Nuvem Solution API can cause failures; check network access and firewall settings.
Links and References
- Nuvem Solution API Documentation (general reference; specific endpoints require authenticated access)
- For detailed API request and response formats, consult the official Nuvem Solution developer resources or support.
Note: This summary is based solely on static analysis of the provided source code and property definitions.