Sankhya icon

Sankhya

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

Actions137

Fiscal — NF-e / NFC-e / SAT / NFS-e (REST) → Cancelar NFC-e

AI-generated

Summary

Cancels a fiscal NFC-e (Note for Consumption) via the Sankhya REST API, requiring the note's ID and a cancellation reason.

Inputs

  • id (required) — The ID (number) of the NFC-e to cancel.
  • motivo (required) — The reason for the cancellation.

Output shape

A single JSON object representing the API response containing the cancellation status and details.

The response is wrapped in the standard Sankhya Gateway structure. Errors (technical or business rules) are thrown as exceptions unless configured to continue on failure.

Examples

Example 1: Cancel an NFC-e immediately after issue due to a data entry error.

ID: 12345, Motivo: 'Dados de endereço incorretos informados na emissão'

Example 2: Process a batch of cancellations from a previous workflow step.

ID: from previous item, Motivo: 'Cliente solicitou cancelamento'

Links

Discussion