Creates a quote from the value in the qrCode field. The same field accepts three kinds of input (the type is auto-detected and returned as paymentType):
- NSPK/SBP QR — a
qr.nspk.ruURL, a bank deep link, or amultiqr.ru/platiqr.rulink →paymentType: nspk. - ST00012 string (
ST00012|...) — utility / budget payments (ЖКХ). Amount is taken from theSumfield →paymentType: st00012. gibdd:uin:{20–25 digits}— a traffic-police (ГИБДД) fine by UIN. Amount and requisites are resolved automatically →paymentType: gibdd_uin.
Quote TTL is short-lived (30 seconds in current implementation).
Безопасность
apiKeyAuth
- Mock serverhttps://b2b-app.lumowallet.io/_mock/apis/orders/prepare
- Productionhttps://b2b.lumowallet.io/orders/prepare
- Staginghttps://b2b-staging.lumowallet.io/orders/prepare
curl -i -X POST \
https://b2b-app.lumowallet.io/_mock/apis/orders/prepare \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"qrCode": "string",
"externalOrderId": "string"
}'Quote prepared
Detected from the qrCode field:
nspk— QR СБП/NSPK (including multiqr / platiqr);st00012— utility / budget payment (ЖКХ);gibdd_uin— ГИБДД fine by UIN.
Enum:"nspk""st00012""gibdd_uin"
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "amountRub": 0, "amountUsdt": 0, "rate": 0, "paymentType": "nspk", "expiresAt": "2019-08-24T14:15:22Z", "isBalanceSufficient": true, "merchantName": "string" }