Skip to main content

SCA Functional Specification

SURVEY

Last updated: 04-Dec-2024
This command directs the device to display up to two (2) lines of message and prompt for up to six (6) radio buttons with associated custom text labels.

Device UI Required: Yes

Request Packet
Field Rule Type Minimum Maximum Value(s) Description
FUNCTION_TYPE Required Static value N/A N/A DEVICE Type of function.
COMMAND Required Static value N/A N/A SURVEY Command name
DISPLAY_TEXT1 Optional Character 1 50   Display text line 1. Example: HOW WOULD YOU RATE YOUR
DISPLAY_TEXT2 Optional Character 1 50   Display text line 2. Example: SERVICE TODAY
RADIO_BUTTON_TEXT1 Required Character 1 50   Radio button text line 1. Example: Option 1
RADIO_BUTTON_TEXT2 Required Character 1 50   Radio button text line 2. Example: Option 2
RADIO_BUTTON_TEXT3 Optional Character 1 50   Radio button text line 3. Example: Option 3
RADIO_BUTTON_TEXT4 Optional Character 1 50   Radio button text line 4. Example: Option 4
RADIO_BUTTON_TEXT5 Optional Character 1 50   Radio button text line 5. Example: Option 5
RADIO_BUTTON_TEXT6 Optional Character 1 50   Radio button text line 6. Example: Option 6
RETURN_SCREEN Optional List 1 15
  • IDLE_SCREEN
  • LINE_ITEM
  • STAY_CURRENT
This field indicates the screens, where after executing the request, the application will return. Default settings for return screen is STAY_CURRENT.
POS_RECON Optional Character 1 30   POS reconciliation. POS Reconciliation field to be echoed back in response to POS. Example: RetailPOS1
COUNTER Required Numeric 1 10   COUNTER is used for a given MAC label. Each COUNTER should be higher than the last one. This is used to authenticate the POS. Example: 100
MAC Required Base64 Encoded Data N/A N/A N/A Message Authentication Code. This is used to authenticate the POS.
MAC_LABEL Required Character 1 50   Associated label that tells the device which MAC_KEY to use to decrypt the value of MAC. This is used to authenticate the POS. Example: REG1
Example

Following is an example of request packet

<TRANSACTION>
    <FUNCTION_TYPE>DEVICE</FUNCTION_TYPE>
    <COMMAND>SURVEY</COMMAND>
    <DISPLAY_TEXT1>Please rate your service</DISPLAY_TEXT1>
    <RADIO_BUTTON_TEXT1>Option 1</RADIO_BUTTON_TEXT1>
    <RADIO_BUTTON_TEXT2>Option 2</RADIO_BUTTON_TEXT2>
    <RADIO_BUTTON_TEXT3>Option 3</RADIO_BUTTON_TEXT3>
    <RADIO_BUTTON_TEXT4>Option 4</RADIO_BUTTON_TEXT4>
    <RADIO_BUTTON_TEXT5>Option 5</RADIO_BUTTON_TEXT5>
    <RADIO_BUTTON_TEXT6>Option 6</RADIO_BUTTON_TEXT6>
    <RETURN_SCREEN>LINE_ITEM</RETURN_SCREEN>
    <COUNTER>166</COUNTER>
    <MAC></MAC>
    <MAC_LABEL>REG2</MAC_LABEL>
    </TRANSACTION>
Response Packet
Field Type Value Description
RESPONSE_TEXT Character   Processor response text. Example: Survey Captured
RESULT Character   This indicates the Result details. Example: OK
RESULT_CODE Numeric Expected result code: -1, 59001, 59006, 59040 This indicates the result code. Refer to Result/Error Codes for details.
TERMINATION_STATUS Character SUCCESS or FAILURE This indicates the transaction termination status. This is the overall status of the transaction irrespective of approved or declined. Like, if the output is generated then the status is SUCCESS and if no output is generated then the status will be FAILURE.
SURVEY_DATA Character   Display text of radio button opted. Returns 0 if the survey is skipped. Example: Option 5
POS_RECON Character   POS reconciliation field echoed back if sent in request. Example: RetailPOS1
COUNTER Numeric   Echoes counter sent in the request. Example: 100
Example

Following is an example of response packet

<RESPONSE>
    <RESPONSE_TEXT>Survey Captured</RESPONSE_TEXT>
    <RESULT>OK</RESULT>
    <RESULT_CODE>-1</RESULT_CODE>
    <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>
    <COUNTER>166</COUNTER>
    <SURVEY_DATA>Option 4</SURVEY_DATA>
    </RESPONSE>

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo