Skip to main content
While an input request is in progress, you can cancel it in the same way that you can cancel an in-progress payment. Here we describe how you can cancel an input request from:

Requirements

Before you begin, take into account the following requirement.

Cancel from POS app

To cancel an InputRequest from your POS app:
  1. Make a Terminal API abort request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Abort.
    The example shows how to cancel an in-progress input request with a ServiceID of 21796. Abort an in-progress input request
    A successful AbortRequest returns a response with a 200 OK HTTP status code and no body.
  2. Check whether the cancellation was successful:
    • The screen generated by your InputRequest disappears from the terminal display.
    • The InputRequest returns a response containing:
      • Result: Failure
      • ErrorCondition: Aborted
    The following example shows the response for a confirmation input request that was cancelled. InputResponse after canceling the InputRequest

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
If this is successful:
  • The screen generated by your InputRequest disappears from the terminal display.
  • The InputRequest returns a response. Depending on the type of input, this InputResponse contains:

See also