CSQ Docs
    CSQ Docs
    CSQ API Doc
    • CSQ API Doc
    • Dummy Product Usage Guide
    • Back to home
    • Location-based Products
    • Get Labels
      GET
    • Get Countries
      GET
    • Get Categories
      GET
    • Get States
      GET
    • Get Municipalities
      GET
    • Get Deliver Locations
      GET
    • Get Products
      GET
    • Get Fields
      GET
    • Get Nationalities
      GET
    • Create Cart
      POST
    • Purchase
      POST
    • Get Orders
      GET
    • Get Order Status Details
      GET
    • Get Orders All Info
      GET
    • Revert
      POST

      Revert

      Testing
      POST
      /util/revert/{terminalId}/{operatorId}/{localReference}
      This method allows authorized terminals to revert a previously completed locatiopn based purchase 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 reversion logic specific to certain order statuses.
      Reversion is subject to constraints based on the purchase order status:
      Some order statuses do not allow reversion under any circumstances (e.g., orders already Delivered).
      Others may allow it only within a limited time frame after the original transaction (e.g., if the order is still in Pending status).
      To ensure a successful reversal, all required parameters—such as timestamps and local reference—must match the original top-up. If the order status 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",
          "cartId": "string",
          "originalLocalReference": 0,
          "originalLocalDate": "2019-08-24T14:15:22Z"
      }

      Request Code 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",
          "cartId": "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-10-14 10:24:29
      Previous
      Get Orders All Info
      Built with