Skip to content

Retrieve a payment

View as Markdown

Returns one payment with its status and amount. Use expand to include related objects.

settlement shows the settlement cycle of your share of the payment: cycleId, businessDate, seq, status and credited (the money has arrived in your settlement account). It is null until the payment joins a cycle.

Changes in 2026-09-27

GET /api/v1/payments/{id}Since 2026-09-27

Authentication

Secret key (Bearer)

Headers

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

Path parameters

NameTypeRequiredValuesDescription
idstring (uuid)yes

Query parameters

NameTypeRequiredValuesDescription
terminalIdstring (uuid)no
expandarray<string>no

Response 200

NameTypeRequiredValuesDescription
successbooleanyestrue
dataobjectyes
data.idstringyes
data.intentIdstringyes
data.invoiceIdstring | nullyes
data.statusstringyesPROCESSING, SUCCEEDED, FAILED, OVERPAID, AUTHORIZED, CANCELLED
data.amountnumberyes
data.currencystringyes
data.channelstringyesQPAY, NODE_QR, WECHAT, CARD, R2P
data.payerWalletobject | nullyes
data.payerWallet.codestringyes
data.payerWallet.namestringyes
data.payerWallet.logoUrlstring | nullyes
data.payerWallet.typestringyesAPP, WEB, WECHAT
data.stickerobject | nullyes
data.sticker.serialNostring | nullyes
data.sticker.sqrRefstringyes
data.sticker.namestring | nullyes
data.feeAmountnumber | nullyes
data.merchantNetnumber | nullyes
data.serviceFeeMerchantnumberyes
data.serviceFeeCustomernumberyes
data.succeededAtstring | nullyes
data.createdAtstringyes
data.fulfillmentobject | nullyes
data.fulfillment.statusstringyesPENDING, IN_PROGRESS, COMPLETED, FAILED, CANCELLED
data.fulfillment.stagestring | nullyes
data.fulfillment.messagestring | nullyes
data.fulfillment.updatedAtstring (date-time)yes
data.receiptobject | nullyes
data.receipt.receiptobjectyes
data.receipt.receipt.idstring (uuid)yes
data.receipt.receipt.statusstringyesPENDING, REGISTERED, FAILED, RETURNED
data.receipt.receipt.issuerstringyesMERCHANT, NODE
data.receipt.receipt.receiptTypestring | nullyesB2C, B2B, SALES, null
data.receipt.receipt.ddtdstring | nullyes
data.receipt.receipt.lotterystring | nullyes
data.receipt.receipt.qrDatastring | nullyes
data.receipt.receipt.urlstring | nullyes
data.receipt.receipt.merchantReceiptNostring | nullyes
data.receipt.receipt.amountstring | nullyes
data.receipt.receipt.vatstring | nullyes
data.receipt.receipt.cityTaxstring | nullyes
data.receipt.receipt.issuedAtstring | nullyes
data.receipt.receipt.returnedAtstring | nullyes
data.receipt.receipt.failureReasonstring | nullyes
data.receipt.receipt.linesarray | nullyes
data.receipt.receipt.attemptsintegeryes
data.receipt.receipt.nextAttemptAtstring | nullyes
data.receipt.receipt.recipientFallbackbooleanyes
data.receipt.receipt.partsarray | nullyes
data.receipt.historyarray<object>yes
data.receipt.history[].idstring (uuid)yes
data.receipt.history[].statusstringyesPENDING, REGISTERED, FAILED, RETURNED
data.receipt.history[].issuerstringyesMERCHANT, NODE
data.receipt.history[].receiptTypestring | nullyesB2C, B2B, SALES, null
data.receipt.history[].ddtdstring | nullyes
data.receipt.history[].lotterystring | nullyes
data.receipt.history[].qrDatastring | nullyes
data.receipt.history[].urlstring | nullyes
data.receipt.history[].merchantReceiptNostring | nullyes
data.receipt.history[].amountstring | nullyes
data.receipt.history[].vatstring | nullyes
data.receipt.history[].cityTaxstring | nullyes
data.receipt.history[].issuedAtstring | nullyes
data.receipt.history[].returnedAtstring | nullyes
data.receipt.history[].failureReasonstring | nullyes
data.receipt.history[].linesarray | nullyes
data.receipt.history[].attemptsintegeryes
data.receipt.history[].nextAttemptAtstring | nullyes
data.receipt.history[].recipientFallbackbooleanyes
data.receipt.history[].partsarray | nullyes
data.ebarimtobject | nullyes
data.ebarimt.idstring (uuid)yes
data.ebarimt.statusstringyesPENDING, REGISTERED, FAILED, RETURNED
data.ebarimt.issuerstringyesMERCHANT, NODE
data.ebarimt.receiptTypestring | nullyesB2C, B2B, SALES, null
data.ebarimt.ddtdstring | nullyes
data.ebarimt.lotterystring | nullyes
data.ebarimt.qrDatastring | nullyes
data.ebarimt.urlstring | nullyes
data.ebarimt.merchantReceiptNostring | nullyes
data.ebarimt.amountstring | nullyes
data.ebarimt.vatstring | nullyes
data.ebarimt.cityTaxstring | nullyes
data.ebarimt.issuedAtstring | nullyes
data.ebarimt.returnedAtstring | nullyes
data.ebarimt.failureReasonstring | nullyes
data.ebarimt.linesarray | nullyes
data.ebarimt.attemptsintegeryes
data.ebarimt.nextAttemptAtstring | nullyes
data.ebarimt.recipientFallbackbooleanyes
data.ebarimt.partsarray | nullyes
data.authorizationTypestringyesFINAL, PREAUTH
data.preauthModestring | nullyesCHARGE_REFUND, HOLD, null
data.preauthStatusstring | nullyesOPEN, FINALIZED, AUTO_FINALIZED, null
data.finalAmountstring | nullyes
data.finalizeDueAtstring | nullyes
data.authorizedAtstring | nullyes
data.preauthRefundIdstring | nullyes
data.paymentMethodIdstringno
data.customerstringno
data.failureCodestring | nullno
data.declineRetryablebooleanno
data.ebarimtRecipientobject | nullyes
data.ebarimtRecipient.typestringyesCITIZEN, ORG, NONE
data.ebarimtRecipient.registerstring | nullyes
data.ebarimtRecipient.tinstring | nullyes
data.ebarimtRecipient.emailstring | nullyes
data.settlementobject | nullyes
data.settlement.cycleIdstring (uuid)yes
data.settlement.businessDatestringyes
data.settlement.seqintegeryes
data.settlement.statusstringyesOPEN, RUNNING, CLOSED, CARRIED
data.settlement.creditedbooleanyes
data.promotionsarray<object>no
data.promotions[].promotionIdstring (uuid)yes
data.promotions[].kindstringyes
data.promotions[].amountnumberyes
data.intentobjectno
data.intent.idstringyes
data.intent.invoiceIdstring | nullyes
data.intent.statusstringyesOPEN, PROCESSING, SUCCEEDED, EXPIRED, CANCELLED
data.intent.amountnumberyes
data.intent.serviceFeenumber | nullyes
data.intent.totalnumberyes
data.intent.currencystringyes
data.intent.expiresAtstringyes
data.intent.deeplinkstringyes
data.intent.shortDeeplinkstringyes
data.intent.walletLinksarray<object>no
data.intent.walletLinks[].appNamestringyes
data.intent.walletLinks[].logoUrlstring | nullyes
data.intent.walletLinks[].linkstringyes
data.intent.succeededPaymentIdstring | nullyes
data.intent.channelsarray<string>yes
data.intent.presentationsarray<object>yes
data.intent.presentations[].channelstringyesQPAY, NODE_QR, WECHAT, CARD, R2P
data.intent.presentations[].qrTextstring | nullyes
data.intent.presentations[].urlsunknownno
data.intent.presentations[].expiresAtstringyes
data.intent.presentations[].statusstringyesACTIVE, CLOSED
data.intent.createdAtstringyes
data.intent.authorizationTypestringyesFINAL, PREAUTH
data.intent.preauthFinalizeDaysinteger | nullyes
data.intent.qrRefstring | nullyes
data.intent.qrCodestring | nullyes
data.intent.qrStatusstring | nullyesACTIVE, USED, CLOSED, null
data.intent.paymentPointIdstring | nullyes
data.invoiceobject | nullno
data.invoice.idstringyes
data.invoice.orderIdstringyes
data.invoice.statusstringyesOPEN, PARTIALLY_PAID, PAID, EXPIRED, CANCELLED
data.invoice.amountnumberyes
data.invoice.amountPaidnumberyes
data.invoice.amountReservednumberyes
data.invoice.partialModestringyesNONE, AMOUNT, LINES
data.invoice.merchantServiceIdstring | nullyes
data.invoice.currencystringyes
data.invoice.descriptionstring | nullyes
data.invoice.allowedChannelsarray | nullyes
data.invoice.expiresAtstringyes
data.invoice.paidAtstring | nullyes
data.invoice.createdAtstringyes
data.invoice.terminalIdstringyes
data.invoice.customerstring | nullyes
data.invoice.intentIdsarray<string>yes
data.invoice.linesarray<object>yes
data.invoice.lines[].seqintegeryes
data.invoice.lines[].namestringyes
data.invoice.lines[].quantitystringyes
data.invoice.lines[].unitPricestringyes
data.invoice.lines[].totalAmountstringyes
data.invoice.lines[].quantityPaidstringyes
data.invoice.lines[].quantityReservedstringyes
data.invoice.intentsarray<object>yes
data.invoice.intents[].idstringyes
data.invoice.intents[].amountnumberyes
data.invoice.intents[].statusstringyesOPEN, PROCESSING, SUCCEEDED, EXPIRED, CANCELLED
data.invoice.intents[].expiresAtstringyes
data.invoice.intents[].serviceFeenumber | nullyes
data.invoice.intents[].totalnumberyes
data.invoice.fulfillmentobject | nullyes
data.invoice.fulfillment.statusstringyesPENDING, IN_PROGRESS, COMPLETED, FAILED, CANCELLED
data.invoice.fulfillment.stagestring | nullyes
data.invoice.fulfillment.messagestring | nullyes
data.invoice.fulfillment.updatedAtstring (date-time)yes
data.invoice.ebarimtIssuerstring | nullyesMERCHANT, NONE, NODE, null

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.
PAY-007404The payment was not found.
curl -sS "https://api.tappay.mn/api/v1/payments/PAYMENT_ID" \
  -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 payment = await tappay.payments.retrieve({ id: 'PAYMENT_ID' });
console.log(JSON.stringify(payment));
<?php
require 'vendor/autoload.php';

use TapPay\TapPay;

$tappay = new TapPay(['apiKey' => 'sk_test_YOUR_SECRET_KEY']);
$payment = $tappay->payments->retrieve(['id' => 'PAYMENT_ID']);
echo json_encode($payment);
import json
import tappay

client = tappay.TapPay("sk_test_YOUR_SECRET_KEY")
payment = client.payments.retrieve({"id": "PAYMENT_ID"})
print(json.dumps(payment))
{
  "success": true,
  "data": {
    "id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e04",
    "ebarimt": null,
    "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,
    "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
    }
  }
}

For the full flow, read the guide.