Epson TM-m50II Epson POS Printer WebAPI Interface Specification - Page 25
Request
View all Epson TM-m50II manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 25 highlights
4. APIs This section describes the WebAPIs that are exposed to the Application in order for them to operate Devices. The APIs enable the Application to take advantage of the device features such as configure device settings. 4.1. Request All of the APIs use the Request-Line on the HTTP request message as below. Elements Method Request-URI HTTP-Version Request Header fields Allowed value POST Identifies a resource on each API described on subsequent subsections. It may contain a query string in the URI according to each API specification. (e.g. /SET?admin_password=xxxxxx ) "HTTP/1.1" Comply with RFC 2616. If the message body contains the content, the HTTP client MUST identify the ContentType depending on the data as below. Content-Type: application/json; charset=UTF-8 Table 4-1 Request Message Here's an example HTTP request. ----- begin --1:POST /PRESENTATION/ADVANCED/SETTING/SET?admin_password=xxxxxxx HTTP/1.1 *Method, *Request-URI, *Query String, *HTTP-Version 2:Host: 192.0.2.1 3:Connection: keep-alive 4:Content-Length: 2078 5:Content-Type: application/json *Content-Type 6:User-Agent: Mozilla/5.0 8: 9:{ "NetworkSettings":{ "Basic":{ "PrinterName":"ISVPrinter", "Location":"building", "obtainIPAddr":1, "BOOTPSettings":0, "APIPASettings":0, "IPAddr":"192.168.1.100", "SubnetMask":"255.255.255.0", "DefaultGateway":"192.168.1.1", .......... } *Message Body (JSON) ----- end --- Epson POS Printer WebAPI Interface Specification Revision A M00152302 September 8, 2022 Page: 25