Skip to content

List payments

View as Markdown

Returns your payments, newest first, with their fee and net amount, filtered by terminalId or a date range (from, to). Payments taken at a terminal without an invoice are included. Each item has the same fields as Retrieve a payment. Continue with cursor while hasMore is true.

A key limited to one terminal sees only that terminal’s payments. A key without a terminal limit passes terminalId to filter by terminal.

Changes in 2026-09-27

GET /api/v1/paymentsSince 2026-09-27

Authentication

Secret key (Bearer)

Headers

NameTypeRequiredValuesDescription
TapPay-Versionstringno
TapPay-Timestampstringno
TapPay-Noncestringno
TapPay-Signaturestringno

Query parameters

NameTypeRequiredValuesDescription
cursorstringno
limitintegerno
terminalIdstring (uuid)no
fromstringnocreated_at огноо (YYYY-MM-DD) = Улаанбаатарын (UTC+8) хуанлийн өдөр; `to` өдөр бүтнээрээ орно
tostringnocreated_at огноо (YYYY-MM-DD) = Улаанбаатарын (UTC+8) хуанлийн өдөр; `to` өдөр бүтнээрээ орно

Response 200

NameTypeRequiredValuesDescription
successbooleanyestrue
dataobjectyes
data.dataarray<object>yes
data.data[].idstringyes
data.data[].intentIdstringyes
data.data[].invoiceIdstring | nullyes
data.data[].statusstringyesPROCESSING, SUCCEEDED, FAILED, OVERPAID, AUTHORIZED, CANCELLED
data.data[].amountnumberyes
data.data[].currencystringyes
data.data[].channelstringyesQPAY, NODE_QR, WECHAT, CARD, R2P
data.data[].payerWalletobject | nullyes
data.data[].payerWallet.codestringyes
data.data[].payerWallet.namestringyes
data.data[].payerWallet.logoUrlstring | nullyes
data.data[].payerWallet.typestringyesAPP, WEB, WECHAT
data.data[].stickerobject | nullyes
data.data[].sticker.serialNostring | nullyes
data.data[].sticker.sqrRefstringyes
data.data[].sticker.namestring | nullyes
data.data[].feeAmountnumber | nullyes
data.data[].merchantNetnumber | nullyes
data.data[].serviceFeeMerchantnumberyes
data.data[].serviceFeeCustomernumberyes
data.data[].succeededAtstring | nullyes
data.data[].createdAtstringyes
data.data[].fulfillmentobject | nullyes
data.data[].fulfillment.statusstringyesPENDING, IN_PROGRESS, COMPLETED, FAILED, CANCELLED
data.data[].fulfillment.stagestring | nullyes
data.data[].fulfillment.messagestring | nullyes
data.data[].fulfillment.updatedAtstring (date-time)yes
data.data[].receiptobject | nullyes
data.data[].receipt.receiptobjectyes
data.data[].receipt.receipt.idstring (uuid)yes
data.data[].receipt.receipt.statusstringyesPENDING, REGISTERED, FAILED, RETURNED
data.data[].receipt.receipt.issuerstringyesMERCHANT, NODE
data.data[].receipt.receipt.receiptTypestring | nullyesB2C, B2B, SALES, null
data.data[].receipt.receipt.ddtdstring | nullyes
data.data[].receipt.receipt.lotterystring | nullyes
data.data[].receipt.receipt.qrDatastring | nullyes
data.data[].receipt.receipt.urlstring | nullyes
data.data[].receipt.receipt.merchantReceiptNostring | nullyes
data.data[].receipt.receipt.amountstring | nullyes
data.data[].receipt.receipt.vatstring | nullyes
data.data[].receipt.receipt.cityTaxstring | nullyes
data.data[].receipt.receipt.issuedAtstring | nullyes
data.data[].receipt.receipt.returnedAtstring | nullyes
data.data[].receipt.receipt.failureReasonstring | nullyes
data.data[].receipt.receipt.linesarray | nullyes
data.data[].receipt.receipt.attemptsintegeryes
data.data[].receipt.receipt.nextAttemptAtstring | nullyes
data.data[].receipt.receipt.recipientFallbackbooleanyes
data.data[].receipt.receipt.partsarray | nullyes
data.data[].receipt.historyarray<object>yes
data.data[].receipt.history[].idstring (uuid)yes
data.data[].receipt.history[].statusstringyesPENDING, REGISTERED, FAILED, RETURNED
data.data[].receipt.history[].issuerstringyesMERCHANT, NODE
data.data[].receipt.history[].receiptTypestring | nullyesB2C, B2B, SALES, null
data.data[].receipt.history[].ddtdstring | nullyes
data.data[].receipt.history[].lotterystring | nullyes
data.data[].receipt.history[].qrDatastring | nullyes
data.data[].receipt.history[].urlstring | nullyes
data.data[].receipt.history[].merchantReceiptNostring | nullyes
data.data[].receipt.history[].amountstring | nullyes
data.data[].receipt.history[].vatstring | nullyes
data.data[].receipt.history[].cityTaxstring | nullyes
data.data[].receipt.history[].issuedAtstring | nullyes
data.data[].receipt.history[].returnedAtstring | nullyes
data.data[].receipt.history[].failureReasonstring | nullyes
data.data[].receipt.history[].linesarray | nullyes
data.data[].receipt.history[].attemptsintegeryes
data.data[].receipt.history[].nextAttemptAtstring | nullyes
data.data[].receipt.history[].recipientFallbackbooleanyes
data.data[].receipt.history[].partsarray | nullyes
data.data[].ebarimtobject | nullyes
data.data[].ebarimt.idstring (uuid)yes
data.data[].ebarimt.statusstringyesPENDING, REGISTERED, FAILED, RETURNED
data.data[].ebarimt.issuerstringyesMERCHANT, NODE
data.data[].ebarimt.receiptTypestring | nullyesB2C, B2B, SALES, null
data.data[].ebarimt.ddtdstring | nullyes
data.data[].ebarimt.lotterystring | nullyes
data.data[].ebarimt.qrDatastring | nullyes
data.data[].ebarimt.urlstring | nullyes
data.data[].ebarimt.merchantReceiptNostring | nullyes
data.data[].ebarimt.amountstring | nullyes
data.data[].ebarimt.vatstring | nullyes
data.data[].ebarimt.cityTaxstring | nullyes
data.data[].ebarimt.issuedAtstring | nullyes
data.data[].ebarimt.returnedAtstring | nullyes
data.data[].ebarimt.failureReasonstring | nullyes
data.data[].ebarimt.linesarray | nullyes
data.data[].ebarimt.attemptsintegeryes
data.data[].ebarimt.nextAttemptAtstring | nullyes
data.data[].ebarimt.recipientFallbackbooleanyes
data.data[].ebarimt.partsarray | nullyes
data.data[].authorizationTypestringyesFINAL, PREAUTH
data.data[].preauthModestring | nullyesCHARGE_REFUND, HOLD, null
data.data[].preauthStatusstring | nullyesOPEN, FINALIZED, AUTO_FINALIZED, null
data.data[].finalAmountstring | nullyes
data.data[].finalizeDueAtstring | nullyes
data.data[].authorizedAtstring | nullyes
data.data[].preauthRefundIdstring | nullyes
data.data[].paymentMethodIdstringno
data.data[].customerstringno
data.data[].failureCodestring | nullno
data.data[].declineRetryablebooleanno
data.data[].ebarimtRecipientobject | nullyes
data.data[].ebarimtRecipient.typestringyesCITIZEN, ORG, NONE
data.data[].ebarimtRecipient.registerstring | nullyes
data.data[].ebarimtRecipient.tinstring | nullyes
data.data[].ebarimtRecipient.emailstring | nullyes
data.data[].settlementobject | nullyes
data.data[].settlement.cycleIdstring (uuid)yes
data.data[].settlement.businessDatestringyes
data.data[].settlement.seqintegeryes
data.data[].settlement.statusstringyesOPEN, RUNNING, CLOSED, CARRIED
data.data[].settlement.creditedbooleanyes
data.data[].promotionsarray<object>no
data.data[].promotions[].promotionIdstring (uuid)yes
data.data[].promotions[].kindstringyes
data.data[].promotions[].amountnumberyes
data.hasMorebooleanyes
data.nextCursorstring | nullyes

Errors

CodeStatusMessage
AUTH-001401The API key is missing, invalid or revoked.
EVT-206401Production keys are not accepted in the sandbox. Use a sandbox key (sk_test_/pk_test_).
EVT-207401Sandbox keys are not accepted in production. Use a production key (sk_live_/pk_live_).
AUTH-018403The request came from an IP address that is not on the key's allowlist.
AUTH-058403The API key does not have the scope this operation requires.
SIG-002401The request timestamp is outside the allowed time window.
SIG-003401The request signature is missing or does not match.
SIG-005409This request nonce was already used.
VAL-014400The TapPay-Version header is not a known API version.
BIZ-004403The terminal is not active.
BIZ-005403The merchant account is not in a state that allows this request.
VAL-001400The request failed validation.
BIZ-013404The terminal was not found.
curl -sS "https://api.tappay.mn/api/v1/payments?limit=10" \
  -H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
  -H "TapPay-Version: 2026-09-27"
import { TapPay } from '@tappay-mn/node';

const tappay = new TapPay({ apiKey: 'sk_test_YOUR_SECRET_KEY' });
const page = await tappay.payments.list({ query: { limit: 10 } }).firstPage();
console.log(JSON.stringify(page));
<?php
require 'vendor/autoload.php';

use TapPay\TapPay;

$tappay = new TapPay(['apiKey' => 'sk_test_YOUR_SECRET_KEY']);
$page = $tappay->payments->list(['query' => ['limit' => 10]])->firstPage();
echo json_encode(['data' => $page->data, 'hasMore' => $page->hasMore, 'nextCursor' => $page->nextCursor]);
import json
import tappay

client = tappay.TapPay("sk_test_YOUR_SECRET_KEY")
page = client.payments.list({"limit": 10}).first_page()
print(json.dumps({"data": page.data, "has_more": page.has_more, "next_cursor": page.next_cursor}))
{
  "success": true,
  "data": {
    "data": [
      {
        "id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e04",
        "intentId": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e03",
        "invoiceId": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e01",
        "status": "SUCCEEDED",
        "amount": 1000,
        "currency": "MNT",
        "channel": "CARD",
        "payerWallet": null,
        "sticker": null,
        "feeAmount": 15,
        "merchantNet": 985,
        "serviceFeeMerchant": 0,
        "serviceFeeCustomer": 0,
        "succeededAt": "2026-10-03T08:16:12.000Z",
        "createdAt": "2026-10-03T08:16:12.000Z",
        "fulfillment": null,
        "receipt": null,
        "ebarimt": null,
        "authorizationType": "FINAL",
        "preauthMode": null,
        "preauthStatus": null,
        "finalAmount": null,
        "finalizeDueAt": null,
        "authorizedAt": null,
        "preauthRefundId": null,
        "ebarimtRecipient": null,
        "settlement": {
          "cycleId": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e30",
          "businessDate": "2026-10-03",
          "seq": 2,
          "status": "CLOSED",
          "credited": true
        }
      }
    ],
    "hasMore": false,
    "nextCursor": null
  }
}

For the full flow, read the guide.