Skip to main content

Reversal transactions

A reversal transaction is made up of two elements in Twinfield:

  • General information (header), such as company, daybook, transaction date, currency, etc.
  • Transaction lines (lines) of two following types:
    • Detail lines.
    • VAT lines, with totals per VAT rate and the amounts on which the VAT was calculated.

A Reversal transaction is always a complete reverse of the Journal transaction it is based on.

Get

Web service type: XML Web Services

Get information about reversed transaction.

Root

XML structure
<reverse>
<original></original>
</reverse>

Element name: reverse

NameDescription
@actionAttribute to indicate the required action for the original transaction.
getreversetransactioninfo = get reverse transaction for original transaction.
originalContains general information about original transaction.
reversedContains general information about reversed transaction.
settingsContains reverse settings.

Original

XML structure
<original>
<office></office>
<code></code>
<number></number>
</original>

Element name: original

NameTypeDescription
officecodeOriginal transaction office code.
codecodeOriginal transaction type code.
numberintegerOriginal transaction number.

Reversed

XML structure
<reversed>
<office></office>
<code></code>
<number></number>
</reversed>

Element name: reversed

NameTypeDescription
officecodeReversed transaction office code.
codecodeReversed transaction type code.
numberintegerReversed transaction number.

Settings

XML structure
<settings>
<reverseinnextperiod></reverseinnextperiod>
</settings>

Element name: settings

NameTypeDescription
reverseinnextperiodbooleanIndicates that reversed transaction should be posted in the next period.

XML Example

XML structure
<reverse>
<original>
<office>COMPANY</office>
<code>MEMO</code>
<number>202100001</number>
</original>
</reverse>

Post final

Web service type: XML Web Services

State before:

  • Original final transaction is created

State after:

  • Original final transaction is created
  • Reversed final transaction is created
  • Reversal settings are set
  • Reversal link is created

Root

XML structure
<reverse action="">
<original></original>
</reverse>

Element name: reverse

NameDescription
@actionAttribute to indicate the required action for the original transaction.
postfinal = reversed transaction will be created and posted as final
originalContains general information about original transaction.
reversedContains general information about reversed transaction.
settingsContains reverse settings.

Original

XML structure
<original>
<office></office>
<code></code>
<number></number>
</original>

Element name: original

NameTypeDescription
officecodeOriginal transaction office code.
codecodeOriginal transaction type code.
numberintegerOriginal transaction number.

Reversed

XML structure
<reversed>
<office></office>
<code></code>
<number></number>
</reversed>

Element name: reversed

NameTypeDescription
officecodeReversed transaction office code.
codecodeReversed transaction type code.
numberintegerReversed transaction number.

Settings

XML structure
<settings>
<reverseinnextperiod></reverseinnextperiod>
</settings>

Element name: settings

NameTypeDescription
reverseinnextperiodbooleanIndicates that reversed transaction should be posted in the next period.

XML Example

XML structure
<reverse action="postfinal">
<original>
<office>COMPANY</office>
<code>MEMO</code>
<number>202100001</number>
</original>
</reverse>

Post provisional

Web service type: XML Web Services

Save reverse settings for provisional transaction only.

State before:

  • Original provisional transaction is created

State after:

  • Original provisional transaction is created
  • Reversal settings are set

Root

XML structure
<reverse action="">
<original></original>
</reverse>

Element name: reverse

NameDescription
@actionAttribute to indicate the required action for the original transaction.
postprovisional = reverse settings will be saved for provisional transaction.
originalContains general information about original transaction.
settingsContains reverse settings.

Original

XML structure
<original>
<office></office>
<code></code>
<number></number>
</original>

Element name: original

NameTypeDescription
officecodeOriginal transaction office code.
codecodeOriginal transaction type code.
numberintegerOriginal transaction number.

Settings

XML structure
<settings>
<reverseinnextperiod></reverseinnextperiod>
</settings>

Element name: settings

NameTypeDescription
reverseinnextperiodbooleanIndicates that reversed transaction should be posted in the next period.

XML Example

XML structure
<reverse action="postprovisional">
<original>
<office>COMPANY</office>
<code>MEMO</code>
<number>202100001</number>
</original>
</reverse>

Delete

Web service type: XML Web Services

State before:

  • Original provisional transaction is created
  • Reversal settings are set

State after:

  • Original provisional transaction is created
  • Reversal settings has been removed

Root

XML structure
<reverse action="">
<original></original>
</reverse>

Element name: reverse

NameDescription
@actionAttribute to indicate the required action for the original transaction.
undo = reverse settings will be removed for provisional transaction
originalContains general information about original transaction.

Original

XML structure
<original>
<office></office>
<code></code>
<number></number>
</original>

Element name: original

NameTypeDescription
officecodeOriginal transaction office code.
codecodeOriginal transaction type code.
numberintegerOriginal transaction number.

XML Example

XML structure
<reverse action="undo">
<original>
<office>COMPANY</office>
<code>MEMO</code>
<number>202100001</number>
</original>
</reverse>