Search

Are you looking for test card numbers?

Would you like to contact support?

Verify transaction status

Learn how to verify the status of a transaction when you don't receive a response.

While making a transaction, a communication or technical issue can prevent your cash register from receiving a response. Without this response your store staff may be unable to verify whether the transaction has been processed, or its result. They may also attempt to cancel or refund the transaction, or risk a duplicate transaction.

Instead, your integration should request the transaction's status to verify whether the transaction is:

If the transaction has been processed you also receive the original transaction response, indicating the result.

If you are making frequent transaction status requests then you may have a network connectivity issue. Make sure that your terminal is connected to the internet, and ensure that your integration meets our functional requirements.

Before you begin

Before you verify the status of a transaction with our Terminal API, make sure you have:

  1. Read and understood the Terminal API fundamentals.
  2. Made a transaction, such as a payment.

Request transaction status

We recommend that your integration automatically requests the status of a transaction, any time it fails to receive a transaction response.

Payment requests timeout after 120 seconds. If you do not receive a payment response (or you receive a response indicating a timeout) after 120 seconds, your integration should automatically request the transaction status.

To request the status of a transaction, your cash register should:

  • Make a POST request to a Terminal API endpoint, specifying:

    • MessageHeader:

      • ProtocolVersion: 3.0
      • MessageCategory: TransactionStatus
      • MessageType: Request
      • SaleID: Your unique ID for the cash register making the transaction status request.
      • ServiceID: Your unique ID generated by this cash register for the transaction status request. This needs to be unique within the last 48 hours.
      • POIID: Unique ID of the terminal.
    • TransactionStatusRequest:

      • ReceiptReprintFlag: true
      • DocumentQualifier: Receipt data you wish to receive in the response. Can be one or both of:

        • CashierReceipt: Cashier receipt, including signature data.
        • CustomerReceipt: Shopper receipt.
      • MessageReference: This object is optional. If you do not include it you receive the status of the most recent transaction made by the terminal.

        • SaleID: The SaleID of the cash register that made the original transaction.
        • ServiceID: The ServiceID of the original transaction.
        • MessageCategory: The original transaction type, either:

          • Payment: Payment request.
          • Reversal: Refund request.
          • StoredValue: Request to activate or load balance on a gift card.

    The example below shows how you would request the status of a payment with the ServiceID 29235.

    {
      "SaleToPOIRequest": {
        "MessageHeader": {
          "ProtocolVersion": "3.0",
          "MessageClass": "Service",
          "MessageCategory": "TransactionStatus",
          "MessageType": "Request",
          "SaleID": "POSSystemID12345",
          "ServiceID": "29235status",
          "POIID": "V400m-324688179"
        },
        "TransactionStatusRequest": {
          "ReceiptReprintFlag": true,
          "DocumentQualifier": [
            "CashierReceipt",
            "CustomerReceipt"
          ],
          "MessageReference": {
            "SaleID": "POSSystemID12345",
            "ServiceID": "29235",
            "MessageCategory": "Payment"
          }
        }
      }
    }

    For a complete list of fields you can pass when requesting a transaction status, see the TransactionStatusRequest API reference.

The response contains a TransactionStatusResponse.Response.Result, indicating whether the transaction has been processed:

  • Success : Transaction has been processed. The original transaction response is also provided.
  • Failure: Transaction has not been processed. The reason is indicated by the ErrorCondition:

An example of each result is provided below.

Transaction processed

A TransactionStatusResponse.Response.Result of Success indicates that the transaction was processed. Use the original transaction response, provided in the RepeatedResponseMessageBody object, to determine how to process the transaction.

The example response below indicates that this transaction, a payment, was processed. The RepeatedResponseMessageBody object in the response indicates that the payment was successful (PaymentResponse.Response.Result is Success).

{
  "SaleToPOIResponse":{
    "TransactionStatusResponse":{
      "MessageReference":{
        "SaleID":"POSSystemID12345",
        "MessageCategory":"Payment",
        "ServiceID":"29235"
      },
      "Response":{
        "Result":"Success"
      },
      "RepeatedMessageResponse":{
        "RepeatedResponseMessageBody":{
          "PaymentResponse":{
            "POIData":{
              "POITransactionID":{
                "TimeStamp":"2019-03-07T10:11:04+00:00",
                "TransactionID":"4rVu001559643049000.981517998282382K"
              },
              "POIReconciliationID":"1000"
            },
            "SaleData":{
              "SaleTransactionID":{
                "TimeStamp":"2019-03-07T10:11:04+00:00",
                "TransactionID":"29235"
              }
            },
            "PaymentReceipt":[...],
            "PaymentResult":{...},
            "Response":{
              "Result":"Success",
              "AdditionalResponse":"...pspReference=981517998282382K..."
            }
          }
        },
        "MessageHeader":{
          "SaleID":"POSSystemID12345",
          "MessageClass":"Service",
          "MessageCategory":"Payment",
          "ServiceID":"29235",
          "POIID":"V400m-324688179",
          "MessageType":"Response"
        }
      }
    },
    "MessageHeader":{
      "SaleID":"POSSystemID12345",
      "MessageClass":"Service",
      "MessageCategory":"TransactionStatus",
      "ServiceID":"29235status",
      "POIID":"V400m-324688179",
      "MessageType":"Response"
    }
  }
}

For a complete list of fields you can receive in a transaction status response, see the TransactionStatusResponse API reference.

Transaction in-progress

A TransactionStatusResponse.Response.ErrorCondition of InProgress indicates the transaction is still being processed. This is usually due to the terminal waiting for input from the shopper (for example, a tip or currency conversion request), but can also result from a delay with the card issuer.

We recommend that you continue to request the status of this transaction again each 5 seconds, until you receive a response indicating the transaction is processed.

The example response below indicates that this transaction is still in-progress.

{
  "SaleToPOIResponse":{
    "MessageHeader":{
      "MessageType":"Response",
      "MessageCategory":"TransactionStatus",
      "MessageClass":"Service",
      "ProtocolVersion":"3.0",
      "POIID":"V400m-324688179",
      "SaleID":"POSSystemID12345",
      "ServiceID":"29235status"
    },
    "TransactionStatusResponse":{
      "Response":{
        "Result":"Failure",
        "ErrorCondition":"InProgress",
        "AdditionalResponse":"Uncompleted transaction"
      }
    }
  }
}

For a complete list of fields you can receive in a transaction status response, see the TransactionStatusResponse API reference.

Transaction not found

A TransactionStatusResponse.Response.ErrorCondition of NotFound indicates that we were not able to find the transaction with the SaleID and ServiceID you specified. This means that either:

  • The POIID, SaleID or ServiceID you specified in the transaction status request are incorrect. Check that you provided the POIID, SaleID, and ServiceID from the original transaction in the TransactionStatusRequest.MessageReference.
  • We did not receive your transaction request. You can attempt the transaction again.

The example response below indicates that this transaction was not found.

{
  "SaleToPOIResponse":{
    "MessageHeader":{
      "POIID":"V400m-324688179",
      "SaleID":"POSSystemID12345",
      "ServiceID":"29235-status",
      "ProtocolVersion":"3.0",
      "MessageCategory":"TransactionStatus",
      "MessageType":"Response",
      "MessageClass":"Service"
    },
    "TransactionStatusResponse":{
      "Response":{
        "ErrorCondition":"NotFound",
        "Result":"Failure",
        "AdditionalResponse":"Message not Found, last PaymentRequest has ID 29234"
      }
    }
  }
}

Next steps