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 be signed with a Kashier-Hash header or it is rejected with 403. The generated payment link is created in EGP.

Authorization

secretKey
Authorization<token>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

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