CSQ Docs
    CSQ Docs
    CSQ API Doc
    • CSQ API Doc
    • Dummy Product Usage Guide
    • Back to home
    • Utils
    • Balances
      GET
    • Prices Direct
      GET
    • Prices Reverse
      GET
    • Transaction Info
      GET
    • Revert
      POST

      Revert

      Testing
      POST
      /util/revert/{terminalId}/{operatorId}/{localReference}
      This method allows authorized terminals to revert a previously completed prepaid top-up transaction, restoring the credited amount back to the system’s available balance.
      Use this endpoint to:
      Cancel a prepaid transaction that was already processed.
      Return the funds to the originating balance.
      Handle product-specific reversion logic.
      Reversion is subject to product-specific constraints:
      Some products do not allow reversion under any circumstances.
      Others may allow it only within a limited time frame after the original transaction.
      To ensure a successful reversal, all required parameters—such as timestamps and local reference—must match the original top-up. If the product or time window conditions are not met, the operation will return a corresponding error message.

      Request

      Path Params

      Header Params

      Body Params application/json

      Example
      {
          "amountToSendX100": 0,
          "localDateTime": "2019-08-24T14:15:22Z",
          "account": "string",
          "originalLocalReference": 0,
          "originalLocalDate": "2019-08-24T14:15:22Z"
      }

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://evsb.csqworld.com/util/revert///' \
      --header 'U;' \
      --header 'SH;' \
      --header 'ST;' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "amountToSendX100": 0,
          "localDateTime": "2019-08-24T14:15:22Z",
          "account": "string",
          "originalLocalReference": 0,
          "originalLocalDate": "2019-08-24T14:15:22Z"
      }'

      Responses

      🟢200OK
      application/json
      OK
      Body

      Example
      {
          "rc": 0,
          "items": [
              {
                  "finalstatus": 0,
                  "resultcode": "string",
                  "resultmessage": "string",
                  "supplierreference": "string",
                  "suppliertoken": "string"
              }
          ]
      }
      Modified at 2025-07-07 08:25:17
      Previous
      Transaction Info
      Built with