KashierDevelopersKashier Developers

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
Authorization<token>

Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.

In: header

Path Parameters

serialNo*string

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

POST
/v3/payment/pos/messages/{serialNo}