iCount icon

iCount

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

Document → Convert

AI-generated

Summary

Convert a document by specifying its type and number, and optionally retrieve conversion options.

Inputs

  • doctype (required) — The type of the current document.
  • docnum (required) — The document number for conversion.
  • getOptions — Whether to fetch the possible conversion options (if false, the conversion_type must be provided).
  • conversion_type — The type of conversion (to be retrieved from Get Conversion Options).

Output shape

a success response indicating the converted document or an error message.

The output will vary based on conversion success or failure, including any relevant error details.

Examples

Example 1: Converting a receipt document

Set 'doctype' to 'Receipt', 'docnum' to 12345, and 'getOptions' to true to retrieve available conversion types.

Example 2: Converting a report without fetching options

Set 'doctype' to 'Report', 'docnum' to 54321, 'getOptions' to false, and provide the specific 'conversion_type' as 'PDF'.

Discussion