UserChoice
POST
/v2/Common/UserChoiceUserChoice 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*
stringChoiceOptions*
stringTpn
stringRegisterId
stringAuthkey*
stringSPInProxyTimeout
numberCustomFields
objectPOST/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
}
}