Hello! A few weeks ago I was working on a POC to light up a poynt device using REST and the payment bridge, but for some reason the device will no longer receive the push notifications for requests.
For reference, I’m sending the following request:
POST /cloudMessages HTTP/1.1
Host: services.poynt.net
Content-Type: application/json
Authorization: Bearer ACCESSTOKEN
Cache-Control: no-cache
{
"ttl": 500,
"businessId": "40bc407a-7ebb-4fdf-b2a9-550bea784767",
"storeId": "cc05c159-1f2e-4547-a7d6-394a92bb0d9a",
"terminalId": "2hlf",
"data": "{\"action\":\"sale\", \"purchaseAmount\": 1000, \"tipAmount\": 100, \"currency\":\"USD\", \"referenceId\":\"ABC1234\"}"
}
The response I get back from the server is good, and here are the header values:
Connection →keep-alive
Content-Length →0
Date →Thu, 08 Dec 2016 21:20:33 GMT
Instance-Id →i-0cd8948a9f2810f95
Poynt-Build-Info →1.2.281-20161208-0010
Poynt-Request-Id →07f153f5-ed0f-4f87-8152-135e0aa67c3f
Server →nginx
Can someone tell me if I’m losing my mind? It seems that either the request has changed or the service isn’t working anymore. No matter what I do, the device doesn’t get the notification, and running diagnostics on the device has everything turn green.