Reverse a Transaction

Learn about reversing transactions.

Reverse a transaction

EndpointMethodKey valuesRequired fields
/v2/transactions/{id}/reversalPOSTidid

This request performs a Reversal operation. It creates a second transaction with negated taxability amounts to "reverse" the original transaction.

Path parameters

ParameterDetailsDescription
idRequired
string length between 1 and 40
The Transaction ID of the transaction to be reversed. This is a unique user-defined value that was provided on the original tax calculation.

Sample request - Reversal

{
  "data": {
    "transactionId": "string",
    "postingDate": "2024-03-07",
    "documentNumber": "string"
  }
}

Sample response - Reversal

{
  "data": {
    "transactionId": "string",
    "postingDate": "2024-03-07",
    "documentNumber": "string"
  },
  "meta": {
    "app": "string",
    "timeElapsed(ms)": 0,
    "timeReceived": "2024-03-07T22:45:29Z",
    "timeElapsedDetails": [
      {
        "key": "string",
        "value": "string"
      }
    ]
  }
}