HI, Support
im working with windows REST api, https://docs.clover.com/build/getting...
Is this how i initialize ? i call a url request to
/Clover/InitializeConnection
/Clover/Sale both returns
Not Found
Please help. Thank you.
HI, Support
im working with windows REST api, https://docs.clover.com/build/getting...
Is this how i initialize ? i call a url request to
/Clover/InitializeConnection
/Clover/Sale both returns
Please help. Thank you.
Hi jjone,
Almost all of the requests you'll make using our REST api are POST requests, and so won't be something you can make straight from the browser. Currently, the only GET request is http://localhost:8181/Clover/Status.
For all other endpoints, you can use a service like postman. You must download the executable posted on the github readme (detailed instructions here: https://docs.clover.com/build/downloa...) and run the installer in order to set up the windows service on your desktop/laptop/device. The endpoint you are querying is straight to that service, and the service will then send the appropriate messages via USB connection to the Mini.
Best, Sophia
Please let us know if this resolves your problem. And can you please confirm you are getting an HTTP 404 when you used the wrong HTTP method?
not working.
Json return: http://localhost:8181/Clover/Sale * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8181 (#0)
POST /Clover/Sale HTTP/1.1
Host: localhost:8181
User-Agent: POS/Curl
Accept-Encoding: deflate, gzip
Accept: application/json
Content-Type: application/json
Content-Length: 0
Connection: keep-alive
< Content-Length: 0
< Server: Microsoft-HTTPAPI/2.0
< Date: Fri, 26 Aug 2016 01:52:22 GMT
<
Hi, Jeff
I used Postman, suggested by Sophia.
I made POST to /Clover/Sale
with sale request json copied from https://docs.clover.com/build/getting...
It gave me HTTP/1.1 200 OK, nothing more.
i was expecting a sale screen with total amount on my Clover Mini, but i got nothing.
Did i do something wrong? Thank you so much for your help!!!
Justin
Hi Justin,
When you make a GET request to http://localhost:8181/Clover/Status do you receive a response with this status: {"Status":"Disconnected"} ?
Receiving a 200OK simply means that the REST service running on your desktop received the request and processed it. It does not mean the Mini got the message :).
4 People are following this question.