triPOS REST API

<back to all web services

SelectionRequest

The following routes are available for this service:
GET/api/v1/selection/{laneId}Displays the specified selection formUse the selection endpoint to get cardholder selections via the pinpad. See selection documentation for more information.
SelectionRequest Parameters:
NameParameterData TypeRequiredDescription
LaneIdpathstringYesThe lane ID.
FormquerystringYesThe selection form to display. more»

Allowable Values

  • YesNoTextArea
  • MultiOption
  • MultiOptionTextArea
HeaderquerystringNoThe header text to display to the cardholder. This is only used for the YesNoTextArea or MultiOptionTextArea form.
SubHeaderquerystringNoThe subheader text to display to the cardholder. This is only used for the YesNoTextArea or MultiOptionTextArea form.
TextquerystringNoThe text to display to the cardholder. For the MultiOption form, this is the prompt text. For the YesNoTextArea form, this is the text for the text area. Use | (pipe) for newline.
MultiLineTextquerystringNoThe list of individual lines of text to be displayed on the PIN pad. Separate each text with a pipe '|' (e.g. multiLineText=promptLine1|promptLine2). For the MultiOption form, this is the prompt text.
OptionsquerystringNoThe selection options to provide to the cardholder. Separate each option with a pipe '|' (e.g. options=one|two|three). This is only used with the MultiOption and MultiOptionTextArea forms.
SelectionResponse Parameters:
NameParameterData TypeRequiredDescription
SelectionIndexformintNoFor the YesNoTextArea form, selectionIndex will be 0 when the cardholder selects No and 1 when the cardholder selects Yes. For the MultiOption form, selectionIndex is the zero-based index of the option that the cardholder selected. The first option specified will be considered option 0.
ApiResponse Parameters:
NameParameterData TypeRequiredDescription
ErrorsformList<ApiError>NoA list of errors that occurred.
HasErrorsformboolNoIndicates if there are errors.
LinksformIEnumerable<ApiLink>NoA list of resource links
LogsformList<string>NoA list of log entries detailing what happened during the request. Ideally only used during development or troubleshooting as this can be quite verbose.
TypeformstringNoThe type of object held in the result.
WarningsformList<ApiWarning>NoA list of warnings that occurred.
ApiError Parameters:
NameParameterData TypeRequiredDescription
UserMessageformstringNoAn error message targeted at the end user of the integrated business application.
DeveloperMessageformstringNoAn error message targeted at the developer of the integrated business application.
ErrorTypeformstringNoCode associated with the error if it exists.
ExceptionMessageformstringNoThe body of the exception message.
ExceptionTypeFullNameformstringNoThe full name of the exception.
ExceptionTypeShortNameformstringNoThe short name of the exception.
ApiLink Parameters:
NameParameterData TypeRequiredDescription
HrefformstringNoA target (a URI)
MethodformstringNoThe HTTP method to access the HREF target
RelationformstringNoThe relation aka. 'rel' (the name of the link)
ApiWarning Parameters:
NameParameterData TypeRequiredDescription
DeveloperMessageformstringNoA warning message targeted at the developer of the integrated business application.
UserMessageformstringNoA warning message targeted at the end user of the integrated business application.

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/SelectionRequest HTTP/1.1 
Host: triposqa.vantiv.com 
Content-Type: application/json
Content-Length: length

{"laneId":0,"form":"String","header":"String","subHeader":"String","text":"String","multiLineText":"String","options":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"selectionIndex":0,"_errors":[{"userMessage":"String","developerMessage":"String","errorType":"String","exceptionMessage":"String","exceptionTypeFullName":"String","exceptionTypeShortName":"String"}],"_hasErrors":true,"_links":[],"_logs":["String"],"_type":"String","_warnings":[{"developerMessage":"String","userMessage":"String"}]}