List invoices
Returns your invoices, newest first, filtered by terminalId, status, merchantOrderId or a date range (from, to). Each item has the same fields as Retrieve an invoice. Continue with cursor while hasMore is true.
A key limited to one terminal sees only that terminal’s invoices. A key without a terminal limit passes terminalId to filter by terminal.
Changes in 2026-09-27This operation is not available in this version.
GET /api/v1/invoicesSince 2026-09-27
Authentication
Secret key (Bearer)
Headers
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
TapPay-Version | string | no | ||
TapPay-Timestamp | string | no | ||
TapPay-Nonce | string | no | ||
TapPay-Signature | string | no |
Query parameters
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
cursor | string | no | ||
limit | integer | no | ||
terminalId | string (uuid) | no | ||
from | string | no | created_at огноо (YYYY-MM-DD) = Улаанбаатарын (UTC+8) хуанлийн өдөр; `to` өдөр бүтнээрээ орно | |
to | string | no | created_at огноо (YYYY-MM-DD) = Улаанбаатарын (UTC+8) хуанлийн өдөр; `to` өдөр бүтнээрээ орно | |
status | string | no | OPEN, PARTIALLY_PAID, PAID, EXPIRED, CANCELLED | |
merchantOrderId | string | no |
Response 200
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
success | boolean | yes | true | |
data | object | yes | ||
data.data | array<object> | yes | ||
data.data[].id | string | yes | ||
data.data[].orderId | string | yes | ||
data.data[].status | string | yes | OPEN, PARTIALLY_PAID, PAID, EXPIRED, CANCELLED | |
data.data[].amount | number | yes | ||
data.data[].amountPaid | number | yes | ||
data.data[].amountReserved | number | yes | ||
data.data[].partialMode | string | yes | NONE, AMOUNT, LINES | |
data.data[].merchantServiceId | string | null | yes | ||
data.data[].currency | string | yes | ||
data.data[].description | string | null | yes | ||
data.data[].allowedChannels | array | null | yes | ||
data.data[].expiresAt | string | yes | ||
data.data[].paidAt | string | null | yes | ||
data.data[].createdAt | string | yes | ||
data.data[].terminalId | string | yes | ||
data.data[].customer | string | null | yes | ||
data.data[].intentIds | array<string> | yes | ||
data.data[].lines | array<object> | yes | ||
data.data[].lines[].seq | integer | yes | ||
data.data[].lines[].name | string | yes | ||
data.data[].lines[].quantity | string | yes | ||
data.data[].lines[].unitPrice | string | yes | ||
data.data[].lines[].totalAmount | string | yes | ||
data.data[].lines[].quantityPaid | string | yes | ||
data.data[].lines[].quantityReserved | string | yes | ||
data.data[].intents | array<object> | yes | ||
data.data[].intents[].id | string | yes | ||
data.data[].intents[].amount | number | yes | ||
data.data[].intents[].status | string | yes | OPEN, PROCESSING, SUCCEEDED, EXPIRED, CANCELLED | |
data.data[].intents[].expiresAt | string | yes | ||
data.data[].intents[].serviceFee | number | null | yes | ||
data.data[].intents[].total | number | yes | ||
data.data[].fulfillment | object | null | yes | ||
data.data[].fulfillment.status | string | yes | PENDING, IN_PROGRESS, COMPLETED, FAILED, CANCELLED | |
data.data[].fulfillment.stage | string | null | yes | ||
data.data[].fulfillment.message | string | null | yes | ||
data.data[].fulfillment.updatedAt | string (date-time) | yes | ||
data.data[].ebarimtIssuer | string | null | yes | MERCHANT, NONE, NODE, null | |
data.hasMore | boolean | yes | ||
data.nextCursor | string | null | yes |
Errors
| Code | Status | Message |
|---|---|---|
AUTH-001 | 401 | The API key is missing, invalid or revoked. |
EVT-206 | 401 | Production keys are not accepted in the sandbox. Use a sandbox key (sk_test_/pk_test_). |
EVT-207 | 401 | Sandbox keys are not accepted in production. Use a production key (sk_live_/pk_live_). |
AUTH-018 | 403 | The request came from an IP address that is not on the key's allowlist. |
AUTH-058 | 403 | The API key does not have the scope this operation requires. |
SIG-002 | 401 | The request timestamp is outside the allowed time window. |
SIG-003 | 401 | The request signature is missing or does not match. |
SIG-005 | 409 | This request nonce was already used. |
VAL-014 | 400 | The TapPay-Version header is not a known API version. |
BIZ-004 | 403 | The terminal is not active. |
BIZ-005 | 403 | The merchant account is not in a state that allows this request. |
VAL-001 | 400 | The request failed validation. |
BIZ-013 | 404 | The terminal was not found. |
curl -sS "https://api.tappay.mn/api/v1/invoices?status=PAID&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.invoices.list({ query: { status: 'PAID', 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->invoices->list(['query' => ['status' => 'PAID', '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.invoices.list({"status": "PAID", "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-5a6b7c8d9e01",
"orderId": "order-1048",
"status": "PAID",
"amount": 1000,
"amountPaid": 1000,
"amountReserved": 0,
"partialMode": "NONE",
"merchantServiceId": null,
"currency": "MNT",
"description": "Order 1",
"allowedChannels": null,
"expiresAt": "2026-10-03T08:45:00.000Z",
"paidAt": "2026-10-03T08:16:12.000Z",
"createdAt": "2026-10-03T08:15:00.000Z",
"terminalId": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e05",
"customer": null,
"intentIds": [
"0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e03"
],
"lines": [],
"intents": [
{
"id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9e03",
"amount": 1000,
"serviceFee": null,
"total": 1000,
"status": "SUCCEEDED",
"expiresAt": "2026-10-03T08:45:00.000Z"
}
],
"fulfillment": null,
"ebarimtIssuer": "MERCHANT"
}
],
"hasMore": false,
"nextCursor": null
}
}
For the full flow, read the guide.