Requirements
Before you begin, take into account the following requirements, limitations, and preparations.Configurable terminal settings
You can define terminal settings by making API requests to the following endpoints on a company, merchant, store, or terminal level:- Terminal logos are under a dedicated
/terminalLogosendpoint. - The other settings are under a
/terminalSettingsendpoint.
Sensitive terminal settings
Some terminal settings are considered sensitive because they can affect the Terminal API communications. Sensitive terminal settings are under a/terminalSettings endpoint on a company, merchant, store, or terminal level.
To authenticate your requests to these, you need to have the following role:
- Management API—Terminal Advanced settings read and write
If you need to define more settings, you have to go through the Customer Area.
Inheritance of settings
You can define terminal settings at different levels. From high to low:- Company account level
- Merchant account level
- Store level
- Terminal level
Get current settings
To view the terminal configuration at a specific level:-
Get the ID of the account, store, or terminal you want to configure terminal settings for. You need to specify that ID in the URL of later requests.
- For the company ID, make a GET /companies request.
- For the merchant ID, make a GET /merchants request.
- For the store ID, make a GET /stores request or a GET /merchants/{merchantId}/stores request.
- For the terminal ID, make a GET /terminals request.
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
To retrieve the terminal logo, make a GET request to the
/terminalLogosendpoint for the account, store, or terminal. You can retrieve only one logo at a time. On the account or store level, you need to specify the terminal model as a query parameter. On the terminal level no model query parameter is needed because we can infer the model from the terminal ID in the URL. Use the following endpoints:- GET /companies/{companyId}/terminalLogos?model={model}
- GET /merchants/{merchantId}/terminalLogos?model={model}
- GET /stores/{storeId}/terminalLogos?model={model}
- GET /terminals/{terminalId}/terminalLogos
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
When you receive the response, Base64-decode the data string to get the image file of the logo.
Response showing current logo
-
To retrieve the other terminal settings (except the logo), make a GET request to the
/terminalSettingsendpoint for the account, store, or terminal. Use the following endpoints:- GET /companies/{companyId}/terminalSettings
- GET /merchants/{merchantId}/terminalSettings
- GET /stores/{storeId}/terminalSettings
- GET /terminals/{terminalId}/terminalSettings
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns the current configuration. Response showing current settings
Update settings
Settings are parameters grouped in objects.- To change a parameter value, include the full object that contains the parameter, even if you do not want to change all parameters in the object.
- To remove a parameter value at a certain level and restore the value inherited from the next higher level, include the full object that contains the parameter, and specify an empty value for the parameter or omit the parameter.
- Objects that are not included in the request are not updated.
Update terminal logo
-
Make sure that you know:
- The level where you need to add or remove a logo to get the desired effect.
- The current logo at that level. When removing a logo, you also need to know the logo that will be inherited from the next higher level.
- The terminal model that you want to change the logo for.
-
For a new logo, make sure the file matches the logo requirements for the terminal model, and convert the file to a Base64-encoded string.
If the dimensions of the logo do not match the requirements:
- BMP, JPG, JPEG, or PNG files are resized.
- A GIF file is converted to a single-frame image.
-
Make a PATCH request to the
/terminalLogosendpoint for the account, store, or terminal. You can update only one logo at a time. On the account or store level, you need to specify the terminal model as a query parameter. On the terminal level no model query parameter is needed because we can infer the model from the terminal ID in the URL. Use the following endpoints:- PATCH /companies/{companyId}/terminalLogos?model={model}
- PATCH /merchants/{merchantId}/terminalLogos?model={model}
- PATCH /stores/{storeId}/terminalLogos?model={model}
- PATCH /terminals/{terminalId}/terminalLogos
- data: to upload a logo, specify the Base64-encoded string of the logo file. To remove a logo, specify an empty string.
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns the logo data at the level where you made the request. When you remove a terminal logo, the terminal inherits a logo from a higher level and the response returns that other logo. For example, let’s assume you changed your mind and want to replace the store logo you just added with the logo defined at the merchant account level. You’d make a PATCHmerchants/{merchantId}/stores/{storeId}/terminalLogos?model={model}request: Remove store logocurl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns the logo inherited from a higher level: Response showing current logo
Update other settings
-
Make sure that you know:
- The level where you need to add or remove settings to get the desired effect.
- The current settings at that level. When removing settings, you also need to know the settings that will be inherited from the next higher level.
-
To update settings (except the terminal logo), make a PATCH request to the
/terminalSettingsendpoint for the account, store, or terminal. Use the following endpoints:- PATCH /companies/{companyId}/terminalSettings
- PATCH /merchants/{merchantId}/terminalSettings
- PATCH /stores/{storeId}/terminalSettings
- PATCH /terminals/{terminalId}/terminalSettings
- You previously defined tipping settings for a store but now want to remove those and go back to the tipping settings from the merchant level.
- You want to change the
skipSignaturesetting for the store from true to false.
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
The response returns the entire configuration at the level where you made the request.
When new settings take effect
The terminal downloads the configuration changes when it makes a maintenance call to our systems. This happens automatically every 180 minutes. The configuration changes then take effect when the terminal restarts. This happens automatically at the restart hour, which is usually set to 6:00 AM. To switch to the new passcode immediately, update the configuration on your terminal manually:- Go to Settings > Configuration, enter your Admin & Settings passcode and select Update.
- For non-Android terminals that use the old menu structure: go to the Admin menu and select Config > Update.
