Check Purchase Transaction

The merchant’s system should call repeatedly “Check Purchase transaction” function right after generating invoice with frequency of certain interval /10 seconds is recommended/. The invoice shall expire in 5 minutes after creation if it is not paid. If the customer still needs to pay merchant system has to generate new purchase QR again.

$client = new http\Client;
$request = new http\Client\Request;


$body = new http\Message\Body;
  'Content-Type' => 'application/json',
  'Authorization' => 'Basic {Basic auth combination of Your branch username and MonPay account id}'


$response = $client->getResponse();
echo $response->getBody();
OkHttpClient client = new OkHttpClient().newBuilder().build();

Request request = new Request.Builder()
  .method("GET", null)
  .addHeader("Content-Type", "application/json")
  .addHeader("Authorization", "Basic {Basic auth combination of Your branch username and MonPay account id}")

Response response = client.newCall(request).execute();
Method GET
URL https://wallet.monpay.mn/rest/branch/qrpurchase/check
Authorization Basic Access Authentication
Accept application/json
Parameters Type Required Description
uuid string Yes “uuid” returned by previous generate QR api call.
Parameters Type Description
code integer Code determines if request was successful or not
info string Description
result uuid string Check uuid
userVatId string paid user's ebarimt vat id
Response type
Http Status Code Description
200 0 Successful
400 5 Bad request
400 23 QR not scanned
401 1 Unauthorized
500 999 Internal error