Inquire Interface

The inquire interface is a sub-set of the Transaction interface and allows you to acquire transaction data using the Saferpay TransactionId, or OrderId, in case you haven't recieved the transaction data, or it got lost, due to technical issues.

However, the inquiry interface has some restrictions, that have to be considered when using this feature:

Rules, limitations and requirements

  1. Use the standard means first: the inquire interface is not meant to replace other API functions, like for example Payment Page Assert, or Transaction Authorize. When implementing the Payment Page, or Transaction Interface flows, you should always use the standard means first, and the inquire interface only if those cannot be executed anymore, e.g. due to the token being expired.

  2. No polling: In general, but in this case specifically, do not use polling to continuously ask for transaction data.

  3. Only successful transactions: As of now, the inquire interface only works with successful transactions.

  4. SpecVersion 1.11: You must use SpecVersion 1.11 and up.

  5. Update delay: The result of a Transaction/Inquire request does not display the current status in real time because the requested data is updated with a few minutes delay.

Saferpay reserves the right to restrict or deny access to the inquire interface, due to excessive use of the interface, or violation of these rules.

Examples

{
 "RequestHeader": {
   "SpecVersion": "1.11",
   "CustomerId": "[YOUR CUSTOMERID]",
   "RequestId": "f7ca9af6c203c055ec50b6dcc2a40831",
   "RetryIndicator": 0,
   "ClientInfo": {
     "ShopInfo": "My Shop",
     "OsInfo": "Windows Server 2016"
   }
 },
 "TransactionReference": {
   "TransactionId": "fn7O7nAIQWKMSAbIdnC3A26SMUpA"
 }
}s

Example of a Transaction Inquire response for a failed transaction:

As mentioned before, the Inquire Interface only works with successful transactions. Therefore you'll get the following response, if a transaction was either not completed by the payer, or was not successful.

{
 "ResponseHeader": {
   "SpecVersion": "1.11",
   "RequestId": "fbe3bb5ba9984ce74dcd54089b0cc95a"
 },
 "Behavior": "ABORT",
 "ErrorName": "TRANSACTION_NOT_FOUND",
 "ErrorMessage": "Transaction not found"
}

Last updated