Skip to main content
A Terminal API diagnosis request lets you verify the condition of a payment terminal and its components such as the communication module, the battery, or the built-in printer. If you have a Mobile SDK solution using mobile devices instead of payment terminals, a diagnosis request lets you check the security of a device. In both cases a diagnosis request also gives information about any offline payments that have not been sent to Adyen yet. Depending on your integration, see:

Requirements

Before you begin, take into account the following requirements and limitations.

Diagnose a payment terminal

The diagnosis request supports you in business critical processes, because the response includes:
  • batteryLevel: This parameter is included for battery-powered terminals, and shows the battery charge level. You can use this information to let your staff know they need to recharge the terminal soon. For guidelines regarding terminal battery usage, see Manage battery power.
  • unconfirmedBatchCount: The number of payments that the terminal has not been able to send to the Adyen host for completion (capture and settlement). An unconfirmedBatchCount greater than 0 (zero) indicates there is possibly a problem with your network.
Diagnosing a payment terminal is best done in two steps:

1. Verify the condition of a terminal

To check the condition of a payment terminal:
  1. Make a Terminal API diagnosis request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Diagnosis.

    JSON

    Java

  2. Use the following parts of the response to check the condition of the terminal:
    • The POIStatus object: The diagnosis response includes P2PE protocol, SRED, vault, and app manager versions as provided by the hardware manufacturer. You need to specify this data in your annual PCI assessment.
    Diagnosis response for a battery-powered terminal
    Diagnosis response for a P2PE terminal that is not battery-powered
  3. In the AdditionalResponse check the value of the unconfirmedBatchCount. This should be 0 (zero). If not, there may be a problem with your network.
    If the unconfirmedBatchCount is greater than 0, proceed to step 2: Verify that the Adyen host system is reachable.

2. Verify that the Adyen host system is reachable

If the diagnosis response shows an unconfirmedBatchCount greater than 0 (zero), there may be a problem with your network. To check if this is the case:
  1. Make another diagnosis request as described under 1. Verify the condition of a terminal, but this time set
    DiagnosisRequest.HostDiagnosisFlag to true. A communication test will try to reach the Adyen host system.

    JSON

    Java

  2. In the response, check the HostStatus array: Diagnosis response when Adyen host is reached

Diagnose a Mobile SDK solution

In a Mobile SDK solution, the Terminal API diagnosis request enables you to do the following:
  • Check if there are stored offline payments that have not been forwarded to Adyen yet. If the request has hostDiagnosisFlag set to true, the SDK will try to go online and forward these transactions. Diagnosis of offline payments is only included if your Mobile SDK solution supports Store and Forward offline payments.
  • Check for security threats that would block transactions. If threats are detected that an operator can solve, the response includes information about the cause and solution of the problem.
  • Check the expiry date of the Android or iOS SDK that is used on the mobile device. Transactions will be blocked if mandatory updates are not carried out.
  • For an iOS Mobile SDK solution, check if there are failed captures that need to be retried.
Proceed as follows:
  1. Make a Terminal API diagnosis request with:
    • SaleToPOIRequest.MessageHeader : The standard MessageHeader object, with the following parameters.
    Diagnosis request for a Mobile solution
  2. In the response, check the following:
    • The HostStatus array:
    For iOS, there is a 3-minute wait before completed transactions are included in the capture retry. If unconfirmedBatchCount shows remaining transactions, wait before making another diagnosis request. Diagnosis response for a mobile solution
  3. If present, Base64URL-decode the storeAndForwardStatus value. The resulting JSON object can include: Decoded storeAndForwardStatus
  4. Base64URL-decode the attestationStatus value. The resulting JSON object can include: Decoded attestationStatus

Failed diagnosis request

When the payment terminal or mobile SDK is already processing another request, the diagnosis request fails. You receive a DiagnosisResponse object with:
  • Response.Result: Failure
  • Response.ErrorCondition: Busy
Diagnosis response when busy with other request

See also