Skip to main content
Terminal actions are operations that need to be carried out on payment terminals, and that can be planned for a certain date and time. Most of those actions are planned by Adyen, like updating to a release, or obtaining logs. Some actions can be planned by you. Here we describe how you can use our Management API to automate terminal actions to deploy apps and certificates on Android payment terminals.

Requirements

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

When planned actions take effect

Terminal actions are changes in the configuration of the terminal. The terminal receives configuration changes when it makes a maintenance call and implements the changes when it reboots at the restart hour (at 06:00 AM by default).
To ensure this process succeeds, we recommend that you keep your terminals turned on and connected to the network overnight.
In the case of Android terminal actions, the terminal does not wait until the restart hour.
  • If you planned the Android action without a date and time, the action is implemented with the next maintenance call. If WebSockets are enabled, the action is implemented immediately.
  • If you planned the Android action for a specific date and time, the action is implemented with the first maintenance call after that date/time in the time zone of the terminal. If WebSockets are enabled, the action is implemented at the exact date and time that you specified.
If the action involves an Android app that is already installed on the terminal and that happens to be open at the time of the action, the app closes.

Android terminal actions

Android terminal actions are related to the deployment of apps that you want to run on your Android terminals. For example, a POS app. To run such an app, you need to install it on the terminal. Maybe you also need to remove an old version that you no longer want to use. Some apps need a digital certificate. For example, a certificate to protect network communications between a POS app and the back end of that app. Such a certificate needs to be installed on the terminal, and replaced with a new one before the validity period of the certificate expires. To sum up, Android terminal actions you can plan are:
  • Install a new app or app version.
  • Uninstall an old app or app version.
  • Install a new certificate.
  • Uninstall an expired certificate.
These actions are part of a larger process where you:
  1. Make sure that the app meets the requirements.
  2. Upload the app in your Customer Area. We then sign the app and convert it so that the terminal can handle the app.
  3. If the app requires a certificate, upload the certificate as well, so that we can sign it.
  4. Plan terminal actions to install or uninstall apps and certificates. You can plan actions in your Customer Area, but here we describe how to plan actions by making API calls to:
    1. Get the IDs of the apps or certificates that have been uploaded.
    2. Get the IDs of the terminals that you want to apply the action to.
    3. Plan an Android terminal action.

1. Get Android app and certificate IDs

When planning an Android terminal action, you need to provide the ID of the Android app or certificate you want to install or uninstall. To get those IDs, check which apps and certificates have been uploaded:
  1. Make sure that you know the ID of your company. If you do not know this ID, make a GET /companies request.
  2. Check what Android apps and optionally what Android certificates are available.
Get a list of Android apps that have been uploaded, by making a GET /companies/{companyId}/androidApps request.
These are the query parameters to filter the paginated response:
  • pageNumber: returns the apps shown on the specified page.
  • pageSize: the number of apps to have on a page. The default is 20, the maximum is 100.
Get list of uploaded apps

curl

Java

PHP

C#

NodeJS (JavaScript)

Go

Python

Ruby

NodeJS (TypeScript)

The response returns the following details of all apps that have been uploaded to Adyen and are in the ready status:Response