REST API
UserChoice
POST/v2/Common/UserChoice

UserChoice prompts the customer to select an option from a list displayed on the terminal screen. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.

Body Parameters

Title*
string
ChoiceOptions*
string
Tpn
string
RegisterId
string
Authkey*
string
SPInProxyTimeout
number
CustomFields
object
POST/v2/Common/UserChoice
1curl --location 'https://test.spinpos.net/v2/Common/UserChoice' \
2--header 'Content-Type: application/json' \
3--data '{
4 "Title": "",
5 "Tpn": "",
6 "RegisterId": "",
7 "Authkey": "",
8 "SPInProxyTimeout": "",
9 "CustomFields": {},
10 "ChoiceOptions": []
11}'
Response

// Awaiting response…

Sample response
{
  "SelectedOption": "",
  "GeneralResponse": {
    "ResultCode": "0",
    "StatusCode": "0000",
    "Message": "",
    "DetailedMessage": "",
    "DelayBeforeNextRequest": null
  }
}