While an input request is in progress, you can cancel it in the same way that you can cancel an in-progress payment. You can either:
- Make an
AbortRequestfrom your POS app. - Press the Cancel key
on the terminal keypad.
Cancel from POS app
To cancel an
InputRequest
from your POS app:
-
Make a Terminal API abort request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Abort.Parameter Required Description ProtocolVersion
3.0 MessageClass
Service MessageCategory
Abort MessageType
Request ServiceID
Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal ( POIID) being used.SaleID
Your unique ID for the POS system component to send this request from. POIID
The unique ID of the terminal to send this request to. Format: [device model]-[serial number].
-
The AbortRequest object, including:
Parameter Description AbortReasonMerchantAbort MessageReferenceAn object with: MessageCategory: InputSaleID: your unique ID of the POS app component that sent the input request.ServiceID: theServiceIDof the input request being cancelled.
The example shows how to cancel an in-progress input request with a
ServiceIDof 21796.A successful
AbortRequestreturns a response with a200 OKHTTP status code and no body. -
-
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 following example shows the response for a confirmation input request that was cancelled.
- 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.
If this is successful:
- The screen generated by your
InputRequestdisappears from the terminal display. -
The
InputRequestreturns a response. Depending on the type of input, thisInputResponsecontains:Type of input ResultConfirmedFlagConfirmation Success false Signature Success false