TOTVS RM icon

TOTVS RM

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

Invoice (Stock) → Get Invoice

AI-generated

Summary

Retrieve a single invoice record from the TOTVS RM Invoice (Stock) DataServer using an optional SQL filter and selecting specific fields.

Inputs

  • filter — Optional RM SQL filter string to narrow down the returned invoice record, supporting operators like =, LIKE, AND, OR, IN. Example: CODCOLIGADA=1 AND CODSITUACAO='A'.
  • select — Comma-separated list of invoice fields to return. Leave empty to return all fields.
  • codColigada — Company code override. Set to 0 to use the company code from the credential.
  • context — Additional RM context string (e.g., CODSISTEMA=S;CODUSUARIO=admin;CODFILIAL=1). Leave empty to use defaults from credentials.

Output shape

a single invoice record as JSON object or an array containing it

Returns the JSON-parsed response of the invoice record matching the filter. If multiple records match, typically the first is returned. Errors related to request failures are thrown unless 'Continue On Fail' is active, in which case error details are returned in the output.

Links

Discussion