> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-kalipso-to-mss/receipts/ext_receipts_cancel.md).

# EXT\_Receipts\_Cancel

Function to ask MSS to cancel a receipt.

*Input parameters:*

* inDocumentExercise – Exercise of the receipt;
* inDocumentType – Type of the receipt;
* inDocumentSeries – Series of the receipt;
* inDocumentNumber – Number of the receipt;
* inCancelCode – If not empty MSS will cancel the receipt with this motive code, otherwise will open MSS cancel motive selection window;

*Output parameters:*

* outResultCode – Return code: 0 – Done / < 0 User canceled selection or error occurred;
