Sankhya icon

Sankhya

Integração completa com o ERP Sankhya — REST v1/v2 e Gateway

Actions137

PDV — Ponto de Venda (REST) → Fechar Caixa

AI-generated

Summary

Execute the FECHAR_CAIXA (Close Cash Register) REST API operation to close a specified cash register (caixa) in the Sankhya point-of-sale system.

Inputs

  • pdvDados (required) — JSON object with the cash register closing data, including codigoCaixa (cash register code), codigoEmpresa (company code), optional valorSangria (cash withdrawal amount), and observacao (observations).

Output shape

The JSON response from the Sankhya REST endpoint, representing the result of the fecharCaixa operation.

The operation sends a POST request to /v1/pdv/fecharCaixa with the JSON body provided in pdvDados and returns the parsed JSON response. Errors are thrown for HTTP or business-level failures.

Examples

Example 1: Close the cash register with ID 1 for company 1 without any cash withdrawal or observation.

Set 'pdvDados' to {"codigoCaixa":1,"codigoEmpresa":1,"valorSangria":0,"observacao":""}.

Links

Discussion