Terminal

RegisterPost

https://sandbox-api.srpago.com/v1/terminal

Registra una terminal.

headers

AuthorizationBearer Token

Content-Typeapplication/json

body

{
        "label": "Reader Simulator",
        
        "ip_address": "192.168.1.1",
        "port": "12345",
        "status": "online",
        "device_info":{
        	"serial_number":"123"
        },
        "reader_info":{
        	"serial_number":"123"
        }
    }

 


Example Request 

curl --location --request POST 'https://sandbox-api.srpago.com/v1/terminal' \
--header 'Content-Type: application/json' \
--header 'X-User-Agent: {}' \
--data-raw '{
        "label": "Reader Simulator",

        "ip_address": "192.168.1.1",
        "port": "12345",
        "status": "online",
        "device_info":{
            "serial_number":"123"
        },
        "reader_info":{
            "serial_number":"123"
        }
    }'

 

Example Response

{
  "success": true,
  "result": {
    "id": "ter_dev_5cf017a073954",
    "label": "Reader Simulator",
    "uuid": "a1",
    "ip_address": "192.168.1.1",
    "port": "12345",
    "status": "online"
  }
}