Pairing process
If you use a Synqpay device as a remote client (USB/ HTTP/ TCP / WebSocket), you'll need to perform pairing with the device.
The pairing process results in a short API key that must be attached to each request appropriately for each communication method.
The process includes two steps: the first is a call to the method pair
, and the second is a call to authenticate
.
A serial number is needed to call and pair
the device. This can be achieved either on the original box, on the back of the device, or inside the operator menu by pressing on the POWERED BY CODEBLOCKS at the bottom of the screen:
Tip
The barcode contains the Serial Number of the device
Process Example
The following example uses cURL to send requests over HTTP. You can use any client of your choice.
Info
pair
and authenticate
methods don't require an API key. The API key field must be filled with zeros for framed-based transport.
Start the pairing process by sending a pair
request:
After sending a pair
request, a 6-digit OTP will show up on the screen:
Now send authenticate
with the displayed OTP:
Now, the response contains an eight-digit key.
This key is used when sending all the requests to the device, for example: