Skip to Content

Ebarimt

Ebarimt is Mongolia’s electronic tax receipt system managed by the General Department of Taxation. After a payment is completed, you can create an ebarimt to issue a tax receipt for the transaction. This is required for businesses that need to provide official tax documentation to customers.


Create Ebarimt

POST /v2/ebarimt_v3/create

Creates an ebarimt (electronic tax receipt) for a completed payment. The receipt includes VAT calculations, city tax amounts, and a lottery number for the customer.

Request Headers

HeaderValueRequired
AuthorizationBearer <access_token>Yes
Content-Typeapplication/jsonYes

Request Body

{ "payment_id": "pay-abc123", "ebarimt_receiver_type": "83", "ebarimt_receiver": "", "district_code": "34", "classification_code": "" }
FieldTypeRequiredDescription
payment_idstringYesThe payment ID to issue a tax receipt for (must be a completed payment)
ebarimt_receiver_typestringYesReceipt type: "83" for individual, "84" for organization
ebarimt_receiverstringConditionalOrganization register number (required when ebarimt_receiver_type is "84")
district_codestringNoDistrict code for tax calculation purposes
classification_codestringNoBusiness classification code

Receiver Types

Type CodeDescriptionebarimt_receiver Field
"83"Individual (citizen)Leave empty — no register number required
"84"Organization (company)Required — provide the organization’s register number

Example Request (Individual)

curl -X POST https://merchant.qpay.mn/v2/ebarimt_v3/create \ -H "Authorization: Bearer <access_token>" \ -H "Content-Type: application/json" \ -d '{ "payment_id": "pay-abc123", "ebarimt_receiver_type": "83", "ebarimt_receiver": "", "district_code": "34" }'

Example Request (Organization)

curl -X POST https://merchant.qpay.mn/v2/ebarimt_v3/create \ -H "Authorization: Bearer <access_token>" \ -H "Content-Type: application/json" \ -d '{ "payment_id": "pay-abc123", "ebarimt_receiver_type": "84", "ebarimt_receiver": "1234567", "district_code": "34" }'

Response

{ "id": "ebarimt-abc123", "ebarimt_by": "...", "ebarimt_receiver_type": "83", "ebarimt_receiver": "", "amount": "50000.00", "vat_amount": "5000.00", "city_tax_amount": "0.00", "ebarimt_qr_data": "qr_data_string...", "ebarimt_lottery": "AB12345678", "barimt_status": "CREATED", "barimt_status_date": "2026-02-26T10:00:00", "status": true, "barimt_items": [ { "name": "Product A", "amount": "50000.00", "barcode": "...", "measure_unit": "unit", "quantity": "1", "unit_price": "50000.00", "vat": "5000.00", "city_tax": "0.00" } ], "barimt_transactions": [], "barimt_histories": [ { "status": "CREATED", "status_date": "2026-02-26T10:00:00" } ] }
FieldTypeDescription
idstringUnique ebarimt identifier
ebarimt_bystringIssuing entity identifier
ebarimt_receiver_typestringReceiver type: "83" (individual) or "84" (organization)
ebarimt_receiverstringReceiver register number (empty for individuals)
amountstringTotal receipt amount
vat_amountstringVAT (Value Added Tax) amount
city_tax_amountstringCity tax amount
ebarimt_qr_datastringQR code data for the tax receipt (verifiable at ebarimt.mn)
ebarimt_lotterystringLottery number assigned to the receipt
barimt_statusstringReceipt status: CREATED or CANCELLED
barimt_status_datestringStatus change timestamp
statusbooleanWhether the receipt is currently active
barimt_itemsarrayLine items included on the receipt
barimt_transactionsarrayRelated transaction details
barimt_historiesarrayStatus change history

Barimt Item Fields

FieldTypeDescription
namestringItem name
amountstringItem total amount
barcodestringItem barcode
measure_unitstringUnit of measure (e.g., "unit", "kg")
quantitystringQuantity
unit_pricestringUnit price
vatstringVAT amount for this item
city_taxstringCity tax amount for this item

Error Responses

HTTP StatusError CodeDescription
404PAYMENT_NOTFOUNDPayment does not exist
400PAYMENT_NOT_PAIDPayment has not been completed — ebarimt can only be created for paid transactions
400EBARIMT_NOT_REGISTEREDEbarimt service is not registered for this merchant

Cancel Ebarimt

DELETE /v2/ebarimt_v3/{id}

Cancels an existing ebarimt (electronic tax receipt) by the payment ID associated with it. This voids the tax receipt in the ebarimt system.

Request Headers

HeaderValueRequired
AuthorizationBearer <access_token>Yes

Path Parameters

ParameterTypeDescription
idstringThe payment ID associated with the ebarimt to cancel

Example Request

curl -X DELETE https://merchant.qpay.mn/v2/ebarimt_v3/pay-abc123 \ -H "Authorization: Bearer <access_token>"

Response

{ "id": "ebarimt-abc123", "ebarimt_by": "...", "barimt_status": "CANCELLED", "barimt_status_date": "2026-02-26T11:00:00", "status": true }
FieldTypeDescription
idstringEbarimt identifier
ebarimt_bystringIssuing entity identifier
barimt_statusstringUpdated status (will be CANCELLED)
barimt_status_datestringCancellation timestamp
statusbooleanWhether the operation was successful

Error Responses

HTTP StatusError CodeDescription
404PAYMENT_NOTFOUNDPayment does not exist
400EBARIMT_NOT_REGISTEREDNo ebarimt found for this payment
400EBARIMT_CANCEL_NOTSUPPERDEDEbarimt cancellation is not supported for this receipt

Ebarimt Workflow

The typical ebarimt flow in a payment integration:

1. Create Invoice POST /v2/invoice | v 2. Customer Pays (via QR code or bank app) | v 3. Verify Payment POST /v2/payment/check | v 4. Create Ebarimt POST /v2/ebarimt_v3/create | v 5. Display Receipt Show QR code (ebarimt_qr_data) and lottery number to customer

Key Points

  • Ebarimt can only be created for completed (paid) payments
  • Each payment can have one active ebarimt at a time
  • Cancelled ebarimts are voided in the national tax system
  • The ebarimt_lottery number is part of Mongolia’s tax receipt lottery system
  • Customers can verify receipts using the ebarimt_qr_data at ebarimt.mn 
  • For invoices that include tax line items, use the ebarimt invoice type during invoice creation (see Create Invoice)
Last updated on