TOTVS RM icon

TOTVS RM

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

Accounts Payable/Receivable → Create Entry

AI-generated

Summary

Creates a financial entry in the TOTVS RM Accounts Payable/Receivable module by POSTing a JSON payload to the MovData DataServer endpoint /rmsrestdataserver/rest/MovData. The request is authenticated with a JWT obtained from the configured totvsRmApi credentials. The supplied Request Body is parsed, given a 'context' value (custom or derived from credential/override values), and sent as the request body.

Inputs

  • Request Body (JSON) (required) — JSON payload for the new financial entry. Required fields vary per DataServer; for Accounts Payable/Receivable the DataServer is MovData. The node parses this value and injects a 'context' field into it before sending.
  • Company Code Override — Optional. Leave 0 to use the company code configured in the credential. If set to a positive value, it is used in the default RM context for the request.
  • RM Context — Optional. Additional RM context string, e.g. CODSISTEMA=S;CODUSUARIO=admin;CODFILIAL=1. Leave empty to use the default context: CODCOLIGADA=;CODFILIAL=.

Output shape

json

Returns the parsed JSON response from the MovData DataServer. If the response is an array, each element becomes an output item; otherwise a single output item is returned.

Links

Discussion