https://your-domain.com/api
All endpoints on this page require
Authorization: Bearer {token}.Overview
The Doss platform supports two merchant types:- Standard merchant — The QR code encodes a fixed payment amount. The user reviews and confirms the pre-set amount.
- Express merchant — The QR code does not include an amount. The user enters the payment amount at checkout.
Standard merchant flow
Scan QR code
Call
POST /perform-qr-code-operation to decode the merchant QR code and get merchantId, merchantDefaultCurrencyCode, and merchantPaymentAmount.Review payment
Call
POST /perform-merchant-payment-qr-code-review to validate balance and calculate the merchant fee.POST /perform-merchant-payment-qr-code-review
Validates a standard merchant QR payment. Checks merchant existence, currency availability, and user balance, and returns the calculated fee.Request parameters
The authenticated payer’s user ID.
Merchant ID decoded from the QR code.
Currency code from the QR code (e.g.
USD).Payment amount from the QR code.
Response fields
200 on success, 401 on validation failure.Error description on failure.
Merchant’s business name.
Currency symbol.
Payment amount.
Calculated merchant fee amount.
Merchant fee percentage rate. Pass to the submit endpoint.
Currency ID. Pass to the submit endpoint.
Merchant user ID. Pass to the submit endpoint.
Error conditions
| Reason | Description |
|---|---|
401 | Merchant does not exist |
401 | Merchant cannot pay themselves |
401 | Currency not found |
401 | User does not have the required currency wallet |
401 | Insufficient balance |
POST /perform-merchant-payment-qr-code-submit
Executes a standard merchant QR payment. Creates merchant payment and transaction records, and updates both the payer’s and merchant’s wallets.Request parameters
The authenticated payer’s user ID.
Merchant ID.
Total payment amount.
Merchant fee percentage from the review step.
Currency ID from the review step.
Merchant user ID from the review step.
Response fields
200 on success, 401 on error.Error description on failure.
Express merchant flow
Scan QR code
Call
POST /perform-qr-code-operation to get expressMerchantId and expressMerchantPaymentCurrencyCode.Review merchant and wallets
Call
POST /perform-express-merchant-payment-qr-code-merchant-currency-user-wallets-review.POST /perform-express-merchant-payment-qr-code-merchant-currency-user-wallets-review
Validates merchant and currency for an express merchant payment. Does not check the amount (entered in the next step).Request parameters
The authenticated payer’s user ID.
Express merchant ID from the decoded QR code.
Currency code from the decoded QR code.
Response fields
200 on success, 401 on validation failure.Error description on failure.
Merchant’s business name.
Currency ID. Pass to subsequent steps.
Currency symbol.
Merchant fee percentage. Pass to subsequent steps.
Merchant user ID. Pass to the submit endpoint.
POST /perform-express-merchant-payment-qr-code-merchant-amount-review
Validates the user-entered amount for an express merchant payment. Checks balance and calculates the fee.Request parameters
The authenticated payer’s user ID.
The amount the user wants to pay.
Currency ID from the wallet review step.
Fee percentage from the wallet review step.
Response fields
200 on success, 401 on insufficient balance.Error description on failure.
Calculated fee amount.
POST /perform-express-merchant-payment-qr-code-submit
Executes an express merchant QR payment. Creates merchant payment and transaction records and updates both wallets. If the merchant does not yet have a wallet in the payment currency, one is created automatically.Request parameters
The authenticated payer’s user ID.
Express merchant ID.
Total payment amount.
Merchant fee percentage.
Currency ID.
Merchant user ID.
Response fields
200 on success, 401 on error.Error description on failure.