Send a message to a POS terminal
curl -X POST "https://test-api.kashier.io/v3/payment/pos/messages/YOUR_TERMINAL_SERIAL" \ -H "Content-Type: application/json" \ -d '{ "event": "sale", "data": { "message": { "amount": "100.00", "currency": "EGP", "merchantOrderId": "ORD123456", "transactionType": "sale", "printReceipt": true, "metaData": {}, "reconciliation": { "webhookUrl": "https://example.com/kashier-pos-webhook" } } } }'{ "status": "string", "body": {}}Sends a JSON message to one of your POS terminals.
Two events are used by merchant backends:
- sale — start a card-present payment on the terminal.
- details — pull the details of a transaction you already know the transactionId of.
A 200 only means the message reached the terminal. The card-present result (approved / declined) arrives later on the data.message.reconciliation.webhookUrl you supplied, carrying a transactionResponseCode.
Authorization
secretKey Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.
In: header
Path Parameters
The serial number of the POS terminal.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A message sent to the terminal.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Get request transactions GET
Returns the transactions that belong to a specific request, paginated. Some transactions may be unselected from the request; they stay on it and come back with selected: false and an unselectedAt t…
Generate a POS payment QR code POST
Generates a QR code that a customer scans with their phone to open a Kashier hosted payment page for the order, instead of presenting a card at the terminal. The response carries the QR image as a…