Epson TM-T20II-i TM-i Series WebConfig API Users Manual for TM-i firmware ver. - Page 17

Response Body Format, For details on an error code when response fails, see

Page 17 highlights

Chapter 2 Response Body Format JSON format { "response" : { "success" : "%Result%" , "code" : "%Reason%" } } This portion is added when response fails. Response body (Example : set_tcpip_wired.cgi) When response is successful { "response" : { "success" : "true" 2 } } When response fails { "response" : { "success" : "false" , "code" : "InvalidIPAddress" } } For details on an error code when response fails, see "Error Codes and Actions to Take" on page 50. 17

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

17
Chapter 2
Response Body Format
2
JSON format
Response body (Example : set_tcpip_wired.cgi)
For details on an error code when response fails, see
"Error Codes and Actions to Take"
on page 50
.
{ "response" :
{
"success" : "%Result%" ,
"code" : "%Reason%"
}
}
This portion is added when response fails.
{ "response" :
{
"success" : "true"
}
}
When response is successful
{ "response" :
{
"success" : "false" ,
"code" : "InvalidIPAddress"
}
}
When response fails