Queries a semi-integrated terminal for the result of its last processed transaction. Used when a terminal becomes unresponsive or a previous transaction response was lost or ambiguous. The response includes the last transaction details so the POS can determine whether the transaction was approved and take appropriate corrective action.
API Key
Generate your API key from the Payments Manager: Administrator Client β API Key β Add New Key. Pass it as auth-api-key in every request.
Company & Merchant Numbers
Your CompanyNumber (5-digit) and MerchantNumber (8-digit) are issued by PayFacto during onboarding.
Environment Base URL
Test: https://test.api.payfacto.cloud/v1 | Production: Provided by the PayFacto Integration team upon certification.
Request Format β Base64-Encoded Payload
Requests use HTTP POST with an application/x-www-form-urlencoded body. Assemble all parameters as a cleartext query string, Base64-encode it, then send: auth-api-key={key}&payload={base64}. This endpoint does not require card data, invoice numbers, or transaction amounts.
Semi-Integrated Terminal Only
This endpoint targets a specific semi-integrated terminal via MerchantTerminalNumber. It is not applicable to E-Commerce or MOTO transactions. The terminal number must correspond to the terminal on which the last transaction was processed.
Read the Response and Act Accordingly
Recover returns the last transaction result from the terminal. The POS application must inspect the conditional response fields β particularly trxCode, authorizationNumber, and transactionNumber β to determine whether the last transaction was approved and whether a void or correction is needed.
All parameters are passed inside the Base64-encoded payload form field. Raw body format: auth-api-key=<key>&payload=<base64>. This endpoint does not require card data, invoice numbers, or transaction amounts.
Required fields
The example below uses the test endpoint and a sandbox API key. Replace credentials and base URL before going live. Send to the same terminal number as the transaction whose result is unknown.
Always returned
Conditionally returned β Last transaction details
When returnCode is 00, the following fields describe the last transaction processed on the terminal. Inspect these values to determine whether the original transaction was approved and whether corrective action is required.
The following codes are most relevant to this endpoint. For the complete catalogue see the Return Code Index.