Terminal
UpdatePut
https://sandbox-api.srpago.com/v1/terminal/ter_dev_5cf6b8c39bede
Actualiza una terminal.
headers
AuthorizationBearer Token
Content-Typeapplication/json
body
{
"location":"",
"ip_address": "192.168.1.1",
"port": "00",
"label": "Reader Simulator",
"status": "online",
"device_info":{
"serial_number":"00000"
},
"reader_info":{
"serial_number":"00001"
}
}
Example Request
curl --location --request PUT 'https://sandbox-api.srpago.com/v1/terminal/ter_dev_5cf6b8c39bede' \
--header 'Content-Type: application/json' \
--data-raw '{
"location":"",
"ip_address": "192.168.1.1",
"port": "00",
"label": "Reader Simulator",
"status": "online",
"device_info":{
"serial_number":"00000"
},
"reader_info":{
"serial_number":"00001"
}
}
Example Response
{
"success": true,
"result": {
"id": "ter_dev_5ced84eabf459",
"label": "Reader Simulator",
"port": "00",
"reader_info": {
"serial_number": "00001"
},
"device_info": {
"serial_number": "00000"
},
"status": "online",
"date_create": "2019-05-28T13:58:50-05:00",
"date_update": "2019-05-28T14:36:34-05:00"
}
}