Device Interaction/requestInput
Request Input from Cardholder
Prompt the cardholder for text, a selection, or a rating.
POST
/v1/device/inputAsk the cardholder (or operator) for input using the terminal screen. Supports text, numeric, email, phone, selection lists, yes/no prompts, and star ratings. The call blocks until the user responds, cancels, or the timeout is reached — perfect for capturing emails for digital receipts, dine-in vs takeaway choices, or post-payment NPS prompts.
Request body
application/json
promptstringrequiredPrompt text displayed to the user (max 100 chars).
Example: "Enter your email for receipt"
inputTypeenumrequiredType of input to request.
TEXTNUMERICEMAILPHONESELECTIONYES_NORATINGoptionsarrayOptions for SELECTION input type.
minLengthintegerMinimum input length (TEXT/NUMERIC/EMAIL/PHONE).
maxLengthintegerMaximum input length (TEXT/NUMERIC/EMAIL/PHONE).
timeoutMsintegerTimeout in milliseconds (1000–120000).
Example: 30000
Response
application/json
valuestringnullableThe user's input. Null if cancelled or timed out.
cancelledbooleanrequiredUser explicitly cancelled.
Example: false
timedOutbooleanrequiredInput timed out.
Example: false
commerce-api/openapi.yaml · requestInput