KashierDevelopersKashier Developers

Generate a POS payment QR code

curl -X POST "https://test-api.kashier.io/v3/payment/pos/qr" \  -H "Kashier-Hash: string" \  -H "Content-Type: application/json" \  -d '{    "paymentMethod": {      "type": "card"    },    "order": {      "reference": "ORD123456",      "amount": "100.00"    },    "merchantId": "YOUR_MID",    "posTerminal": "YOUR_TERMINAL_ID",    "metaData": {},    "newPaymentUI": true  }'
{  "qrUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA…",  "status": "SUCCESS",  "message": "Successfully performed"}

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 data URI. The request must carry a Kashier-Hash header. The generated payment link is created in EGP.

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

Header Parameters

Kashier-Hash*string

Order hash generated from your backend using the HMAC SHA256 crypto mechanism, as described in the Kashier hashing documentation.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Order to generate a POS payment QR code for.

Response Body

application/json

application/json

application/json

application/json

application/json

POST
/v3/payment/pos/qr