Seta Digital - Vendas

Gerenciar vendas da API Seta Digital

Criar Venda

AI-generated

Summary

Create a new sales record in the Seta Digital system by specifying the client, optional external sale code, optional observations, and a list of sale items including product code, quantity, unit price, and optional discount.

Inputs

  • Código Externo da Venda — An optional external identifier for the sale.
  • Código da Pessoa (required) — The code that identifies the client/person for the sale.
  • Observações — Optional remarks or notes about the sale.
  • Itens da Venda (required) — A list of one or more items to include in the sale, each with product code, quantity, unit price, and optional discount.

Output shape

a single JSON object representing the created sale record as returned by the Seta Digital API

The operation throws an error if no sale items are provided. If 'continueOnFail' is enabled, errors are returned as JSON with an error message. Each output item corresponds to an input item.

Examples

Example 1: Creating a sale with two items for a client

Set 'Código da Pessoa' to client code, add multiple items each with 'Código do Produto', 'Quantidade', 'Preço Unitário', and optionally 'Desconto'. Optionally specify 'Código Externo da Venda' and 'Observações'. Execute to create the sale record in Seta Digital.

Discussion