Skip to main content

/deposit and /withdraw

Request body:

FieldTypeRequiredFormat / constraints
documentIDinteger (int64)NoInternal document id
documentExtIDstringNoExternal document id
amountinteger (int64)YesMust be > 0
employeeNamestringNoCashier name
genPreviewbooleanNoIf true, requests a fiscal receipt preview (see preview_data in the response)

Success response:

FieldTypeRequiredNotes
documentIDinteger (int64)NoCash operation document id
documentExtIDstringNoExternal document id (echoed from the request)
fiscalIDstringNoFiscal id
fiscalNumstringNoFiscal number
fiscalUrlstringNoFiscal URL
preview_datastringNoReceipt preview text; present only when genPreview=true was requested
amountinteger (int64)NoEchoes the request's amount
currency_namestringNoCurrency of amount

Specific recovery behavior:

  • For retry/resume, server matches an existing cash document by operation type (deposit/withdraw) and cash amount.
  • documentExtID (or documentID) is used as retry key to locate/reuse the same document safely.
  • If neither documentExtID nor documentID is provided, deterministic recovery is not guaranteed.
  • If a document from a previous, unfinished operation is pending and the request cannot be matched to it, the request is rejected with code = 44 (CASHBOX_BUSY) rather than starting a new document — see §12.3.