Sankhya icon

Sankhya

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

Actions137

Vendas — Pedidos REST (REST) → Cancelar Pedido

AI-generated

Summary

Cancel the sales order identified by its order code optionally providing a cancellation reason.

Inputs

  • Código do Pedido (required) — The numeric code identifying the sales order to cancel.
  • Motivo — Optional string to specify the reason for cancellation.

Output shape

a single JSON object with the cancellation response from the Sankhya REST API

The operation calls the POST endpoint /v1/vendas/pedidos/{codigoPedido}/cancela with a JSON body containing the cancellation reason. It returns the API response parsed as a JSON object. Errors due to invalid input or API failures will throw exceptions.

Links

Discussion