Sankhya icon

Sankhya

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

Actions137

Vendas — Pedidos REST (REST) → Calcular Impostos

AI-generated

Summary

Calculate taxes for a sales order using the Sankhya REST API's fiscal tax calculation endpoint.

Inputs

  • Nota Modelo (required) — Model number of the note (invoice) to base the tax calculation on.
  • Código do Cliente (required) — Client code for whom the taxes are calculated.

Output shape

a JSON object containing the tax calculation result as returned by the endpoint.

The operation sends a POST request to the '/v1/fiscal/impostos/calculo' endpoint with 'notaModelo' and 'codigoCliente' set in the request body. The response contains detailed tax calculation data or business/technical errors if applicable.

Examples

Example 1: Calculate taxes for a new sales order

Set 'Nota Modelo' to the desired invoice model number and 'Código do Cliente' to the client's ID whose order taxes need to be calculated.

Links

Discussion