TOTVS RM icon

TOTVS RM

Interact with TOTVS ERP Linha RM — DataServer REST, native REST APIs, and automatic JWT authentication

Accounting Entry → Create Entry

AI-generated

Summary

Creates an accounting entry in TOTVS RM by POSTing the provided JSON body to the CttLancData DataServer via RMSRestDataServer. Supply entry fields in the Request Body (JSON) parameter; the node automatically adds an RM context property before sending. Company Code Override sets CODCOLIGADA when greater than 0, otherwise the credential company code is used. RM Context, if empty, defaults to CODCOLIGADA=;CODFILIAL=<credential filial or 1>. The DataServer response is returned as JSON, with array responses split into separate output items.

Inputs

  • Request Body (JSON) (required) — JSON payload for the accounting entry. The node does not declare a schema, so the required fields depend on the CttLancData DataServer contract. Any existing 'context' property in this payload is overwritten by the node before sending.
  • Company Code Override — Optional company code override. If greater than 0, it is used as CODCOLIGADA; if left at 0, the company code from the credential is used.
  • RM Context — Optional RM context string. If empty, the node uses CODCOLIGADA=;CODFILIAL=<credential filial or 1>. If provided, the string is used exactly as entered and is placed into the request body's 'context' field.

Output shape

JSON object or array from the DataServer response.

The response from CttLancData is parsed as JSON. If the response is an array, each element is returned as a separate output item; otherwise a single output item is returned. If the node is configured to continue on fail, errors are returned as JSON objects with an 'error' property.

Examples

Example 1: Supply the accounting entry fields in the Request Body (JSON) parameter. The node parses the JSON, injects an RM context property, and sends it as a POST request. The DataServer response is returned as JSON.

Creates an accounting entry in TOTVS RM by POSTing the supplied JSON payload to the CttLancData DataServer via RMSRestDataServer.

Links

Discussion