Applies to: Terminal API
Learn how to customize buyer workflows, save cards on file, check a device status, and perform other tasks.
The Terminal API
Important
Terminal actions are in Beta.
Applies to: Terminal API
Learn how to customize buyer workflows, save cards on file, check a device status, and perform other tasks.
The Terminal API
Terminal actions are in Beta.
PAYMENTS_READ
for getting or searching for a Terminal action request.PAYMENTS_WRITE
for creating or canceling a Terminal action request.After pairing a Square Terminal using the Devices API, you can create a new CreateTerminalAction
When the buyer completes the action on the Square Terminal, the POS application can be notified by a Square webhook or get the action result using the Terminal API.
The following example shows a POST request to create a new Terminal action for saving a card on file:
Create terminal action
You can retrieve a filtered list of Terminal action requests created by an account by sending a POST request to the SearchTerminalActions
The following example shows a request to search for a Terminal action with the device status of PENDING
:
Search terminal actions
You can send a POST request to cancel a Terminal action if the status of the request permits it or if the request is pending or in progress.
The following example shows a POST request to cancel a Terminal action that takes an action_id
in the path parameter:
Cancel terminal action
The Terminal API allows you to create the following Terminal actions:
In addition to Terminal actions, the Terminal API allows sellers to customize the Square Terminal idle screen and showcase their business and brand. For more information, see Customize the Square Terminal Idle Screen
If you need more assistance, contact Developer and App Marketplace Support