Terminal Firmware
Overview
The Stitch terminal firmware APIs enable terminal app developers to manage firmware updates on payment terminals.
These APIs allow you to:
- Check if firmware updates are available
- Download required firmware files
- Report successful installation back to Stitch
Firmware Update Process
The diagram below illustrates the complete firmware update workflow:
Implementation Steps
1. Check for Available Updates
Start by calling the Terminal Status API. This returns a status object containing the firmwareUpdateRequired
field:
true
indicates new firmware is available.false
indicates all firmware is up to date.
2. Retrieve Firmware Update List
If updates are available, call the List Firmware Files API to get details about each required update.
Each entry in the returned list contains:
- Metadata about the firmware update.
- A
sha256Checksum
value for file verification. - A
downloadLink
pointing to the firmware file location.
3. Download and Verify Firmware Files
The downloadLink
provides a URL to a cloud storage location (Azure or AWS, depending on your region). For each file:
- Download the file from the provided link.
- Calculate a SHA256 checksum on the downloaded file.
- Verify that the calculated checksum matches the
sha256Checksum
value provided in the API response.
4. Install and Confirm
After successfully installing each firmware file:
- Call the Confirm Installation API.
- This notifies Stitch that the firmware has been successfully installed.
- Stitch updates its records to reflect the terminal's current firmware state.
You must repeat the 4 steps above for each firmware file in the list. The terminal application is responsible for determining the correct installation order for multiple firmware files.