Skip to main content

/abort

Request body:

FieldTypeRequiredFormat / constraints
documentExtIDstringYesMandatory
docTimestringNoyyyy-MM-dd HH:mm:ss
docNumberstringNoExternal document number
amountinteger (int64)NoMinor units

Only documentExtID is used to locate the document in the current implementation. docTime, docNumber and amount are retained for contract compatibility but do not affect the operation.

Success response:

FieldTypeRequiredNotes
documentIDinteger (int64)NoInternal document id
documentExtIDstringNoExternal document id

/abort releases every terminal operation of the document: pending operations are aborted, hanging cancels are finished, and every already charged payment is reversed. If any of them cannot be undone, /abort answers with an error and keeps the document — retry it, and do not treat the receipt as cancelled.