curl --request POST '/api/Pinpad/selection'

Rota de controle do Pinpad, para utilização da Função MENU do terminal. A rota deve ser chamada quando a aplicação precisará utilizar a tela do PINPAD para o usuário realizar a compra na solução de Autosserviço.

Request.

{
    "Header" : "Select",//String
    "Options" : ["item1", "item2", "item3"]//Array [string]
}

Response

👍

Status 200 - Ok.

{ 
  "SelectedItem": "",
  "SelectedItemNumber": 0
}

❗️

Status 400 - The 'options' field must have at least 1 (one) element

{
  "Message": "The 'options' field must have at least 1 (one) element",
  "StatusCode":400
}

❗️

Status 500 - First call the activate router or check connections in endpoint 'api/Healthcheck'.

{
  "Message": "First call the activate router or check connections in endpoint 'api/Healthcheck'.",
  "StatusCode": 500
}