- Your POS app by sending a Terminal API abort request.
- The terminal.
Requirements
Before you begin, take into account the following requirement.Cancel from POS app
To cancel anInputRequest from your POS app:
-
Make a Terminal API abort request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Abort.
ServiceIDof 21796. Abort an in-progress input requestA successfulAbortRequestreturns a response with a200 OKHTTP status code and no body. -
The standard
-
Check whether the cancellation was successful:
-
The screen generated by your
InputRequestdisappears from the terminal display. -
The
InputRequestreturns a response containing:Result: FailureErrorCondition: Aborted
-
The screen generated by your
Cancel from terminal
To cancel an in-progress input request from a terminal:- Press the Cancel key
on the terminal keypad.
In case of a terminal without a keypad, on the display select the Cancel icon
-
The screen generated by your
InputRequestdisappears from the terminal display. -
The
InputRequestreturns a response. Depending on the type of input, thisInputResponsecontains:
