iCount icon

iCount

ניהול מסמכים חשבונאיים ב-iCount

Document → Cancel

AI-generated

Summary

Cancel a specified document in the iCount system.

Inputs

  • doctype (required) — Select the type of document to cancel, such as Invoice, Receipt, or Order.
  • docnum (required) — Provide the document number to be cancelled.
  • refund_cc — Indicate whether to process a refund for the credit card associated with the document.
  • reason — Provide a reason for the cancellation.

Output shape

no body — success/failure only

Cancellation should be confirmed by the iCount API; errors may occur if the document number is invalid or if a credit card transaction cannot be refunded.

Examples

Example 1: Canceling an invoice with a specific document number and no refund needed.

Set 'doctype' to 'invoice', provide a 'docnum', leave 'refund_cc' as false.

Example 2: Canceling a receipt with a reason provided and requesting a credit card refund.

Set 'doctype' to 'receipt', provide a 'docnum', set 'refund_cc' to true, and include a cancellation 'reason'.

Discussion