Centum v2 icon

Centum v2

Consumes Centum API

Actions76

Ventas → GetOne

AI-generated

Summary

Retrieve detailed information for a single sales voucher (venta) from the Centum ERP system by specifying the sale ID, with optional filters for cancellation status, creator user ID, transport ID, and economic group division.

Inputs

  • saleId (required) — Numeric ID of the sales voucher (venta) to retrieve.
  • includeCanceled — Boolean to include canceled sales vouchers in the result; defaults to false.
  • createdByUserId — Numeric user ID of the creator of the sales voucher to filter the result.
  • transportId — Numeric ID of the transport associated with the sales voucher to filter the result.
  • divisionEmpresaGrupoEconomicoId — Numeric ID of the economic group division; if zero or omitted, defaults to the user's default division on the API.
  • simplifiedOutput — Boolean to return only the most useful top-level fields of the sales voucher data, simplifying the output.
  • cashValueInstallmentCount — Number of installments for cash value sales; shown only if 'isCashSale' is true.
  • cashValueExchangeRate — Exchange rate applied to effective cash value sales; shown only if 'isCashSale' is true.
  • cashValueId — Identifier for cash value type in effective cash sales; shown only if 'isCashSale' is true.
  • cashValueNotes — Notes or observations related to the effective cash value sale; shown only if 'isCashSale' is true.

Output shape

a single sales voucher record

The output returns detailed JSON representing the specified sales voucher ('venta'). If 'simplifiedOutput' is enabled, only key top-level fields are returned. The result respects filters such as 'includeCanceled', 'createdByUserId', 'transportId', and 'divisionEmpresaGrupoEconomicoId'. If the sale ID is invalid or not found, the operation may return an error or empty result.

Links

Discussion