List orders
Returns the orders of the locations that your system handles, newest first. Filter by status or location_id.
Changes in 2026-09-27This operation is not available in this version.
GET /api/v1/commerce/ordersSince 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 |
|---|---|---|---|---|
status | string | no | CREATED, ACCEPTED, AWAITING_PAYMENT, CONFIRMED, IN_PROGRESS, READY, COMPLETED, CANCELLED, REJECTED, EXPIRED, FAILED | |
location_id | string (uuid) | no | ||
cursor | string | no | ||
limit | integer | no |
Response 200
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
success | boolean | yes | true | |
data | object | yes | ||
data.items | array<object> | yes | ||
data.items[].order_id | string (uuid) | yes | ||
data.items[].order_no | string | yes | ||
data.items[].channel | string | yes | ||
data.items[].status | string | yes | CREATED, ACCEPTED, AWAITING_PAYMENT, CONFIRMED, IN_PROGRESS, READY, COMPLETED, CANCELLED, REJECTED, EXPIRED, FAILED | |
data.items[].version | integer | yes | ||
data.items[].merchant | object | yes | ||
data.items[].merchant.merchant_code | string | yes | ||
data.items[].merchant.name | string | yes | ||
data.items[].location_id | string (uuid) | yes | ||
data.items[].fulfillment | object | yes | ||
data.items[].fulfillment.mode | string | yes | ||
data.items[].fulfillment.label | string | yes | ||
data.items[].fulfillment.address | object | null | yes | ||
data.items[].fulfillment.address.label | string | null | yes | ||
data.items[].fulfillment.address.text | string | yes | ||
data.items[].fulfillment.address.entrance | string | null | no | ||
data.items[].fulfillment.address.floor | string | null | no | ||
data.items[].fulfillment.address.door | string | null | no | ||
data.items[].fulfillment.address.note | string | null | no | ||
data.items[].fulfillment.address.location | object | null | yes | ||
data.items[].fulfillment.address.location.lat | number | yes | ||
data.items[].fulfillment.address.location.lng | number | yes | ||
data.items[].fulfillment.address.district | string | null | no | ||
data.items[].fulfillment.address.khoroo | string | null | no | ||
data.items[].fulfillment.scheduled_at | string | null | yes | ||
data.items[].fulfillment.ends_at | string | null | yes | ||
data.items[].lines | array<object> | yes | ||
data.items[].lines[].line_id | string | yes | ||
data.items[].lines[].offering_id | string | yes | ||
data.items[].lines[].name | string | yes | ||
data.items[].lines[].quantity | integer | yes | ||
data.items[].lines[].variant_id | string | null | yes | ||
data.items[].lines[].option_ids | array<string> | yes | ||
data.items[].lines[].inputs | object | yes | ||
data.items[].lines[].amount | number | yes | ||
data.items[].lines[].status | string | yes | ||
data.items[].lines[].final_amount | number | null | yes | ||
data.items[].breakup | array<object> | yes | ||
data.items[].breakup[].kind | string | yes | ||
data.items[].breakup[].label | string | yes | ||
data.items[].breakup[].amount | number | yes | ||
data.items[].breakup[].ref | string | null | no | ||
data.items[].total | number | yes | ||
data.items[].fees | array<object> | yes | ||
data.items[].fees[].kind | string | yes | ||
data.items[].fees[].label | string | yes | ||
data.items[].fees[].amount | number | yes | ||
data.items[].fees[].estimated | boolean | yes | ||
data.items[].payable_total | number | yes | ||
data.items[].authorization_type | string | yes | ||
data.items[].authorization_amount | number | null | yes | ||
data.items[].accepted_total | number | null | yes | ||
data.items[].final_amount | number | null | yes | ||
data.items[].stage | object | null | yes | ||
data.items[].stage.code | string | yes | ||
data.items[].stage.label | string | yes | ||
data.items[].stage.description | string | null | no | ||
data.items[].timeline | array<object> | yes | ||
data.items[].timeline[].at | string | yes | ||
data.items[].timeline[].label | string | yes | ||
data.items[].timeline[].status | string | null | no | ||
data.items[].eta_at | string | null | yes | ||
data.items[].tracking | object | null | yes | ||
data.items[].tracking.agent | object | null | yes | ||
data.items[].tracking.agent.name | string | yes | ||
data.items[].tracking.agent.phone_masked | string | null | yes | ||
data.items[].tracking.agent.photo_url | string | null | yes | ||
data.items[].tracking.agent.provider_label | string | null | yes | ||
data.items[].tracking.location | object | null | yes | ||
data.items[].tracking.location.lat | number | yes | ||
data.items[].tracking.location.lng | number | yes | ||
data.items[].tracking.location.at | string | yes | ||
data.items[].tracking.eta_at | string | null | yes | ||
data.items[].tracking.tracking_url | string | null | yes | ||
data.items[].tracking.static_map_url | string | null | yes | ||
data.items[].artifacts | array<object> | yes | ||
data.items[].artifacts[].artifact_id | string | yes | ||
data.items[].artifacts[].kind | string | yes | ||
data.items[].artifacts[].label | string | yes | ||
data.items[].artifacts[].value | string | null | no | ||
data.items[].artifacts[].url | string | null | no | ||
data.items[].artifacts[].valid_from | string | null | no | ||
data.items[].artifacts[].valid_to | string | null | no | ||
data.items[].artifacts[].fallback_url | string | yes | ||
data.items[].actions | array<object> | yes | ||
data.items[].actions[].kind | string | yes | ||
data.items[].actions[].allowed | boolean | yes | ||
data.items[].actions[].deadline | string | no | ||
data.items[].actions[].label | string | yes | ||
data.items[].actions[].url | string | no | ||
data.items[].next_action | object | null | yes | ||
data.items[].next_action.type | string | yes | ||
data.items[].next_action.intent_id | string | no | ||
data.items[].next_action.diff | object | no | ||
data.items[].next_action.diff.lines | array<object> | yes | ||
data.items[].next_action.diff.lines[].offering_id | string | yes | ||
data.items[].next_action.diff.lines[].before | object | null | yes | ||
data.items[].next_action.diff.lines[].before.quantity | integer | yes | ||
data.items[].next_action.diff.lines[].before.amount | number | yes | ||
data.items[].next_action.diff.lines[].after | object | null | yes | ||
data.items[].next_action.diff.lines[].after.quantity | integer | yes | ||
data.items[].next_action.diff.lines[].after.amount | number | yes | ||
data.items[].next_action.diff.total_before | number | yes | ||
data.items[].next_action.diff.total_after | number | yes | ||
data.items[].next_action.diff.schedule | object | no | ||
data.items[].next_action.diff.schedule.before | object | yes | ||
data.items[].next_action.diff.schedule.before.scheduled_at | string | null | yes | ||
data.items[].next_action.diff.schedule.before.ends_at | string | null | no | ||
data.items[].next_action.diff.schedule.after | object | yes | ||
data.items[].next_action.diff.schedule.after.scheduled_at | string | null | yes | ||
data.items[].next_action.diff.schedule.after.ends_at | string | null | no | ||
data.items[].next_action.url | string | no | ||
data.items[].next_action.until | string | no | ||
data.items[].web_url | string | yes | ||
data.items[].payment_id | string | null | yes | ||
data.items[].cancelled_by | string | null | yes | ||
data.items[].reason_code | string | null | yes | ||
data.items[].created_at | string | yes | ||
data.items[].updated_at | string | yes | ||
data.items[].promotions | array<object> | no | ||
data.items[].promotions[].promotion_id | string (uuid) | yes | ||
data.items[].promotions[].kind | string | yes | ||
data.items[].promotions[].amount | number | yes | ||
data.items[].customer | object | yes | ||
data.items[].customer.contact_name | string | null | yes | ||
data.items[].customer.contact_phone | string | null | yes | ||
data.items[].note | string | null | yes | ||
data.items[].accept_due_at | string | null | yes | ||
data.items[].pending_reschedule | object | null | yes | ||
data.items[].pending_reschedule.scheduled_at | string | yes | ||
data.items[].pending_reschedule.ends_at | string | null | yes | ||
data.items[].handler_system | string | yes | ||
data.items[].payment_due_at | string | null | yes | ||
data.items[].source | object | yes | ||
data.items[].source.channel | string | yes | ||
data.items[].source.partner_name | string | null | yes | ||
data.items[].source.sticker | object | null | yes | ||
data.items[].source.sticker.name | string | null | 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. |
curl -sS "https://api.tappay.mn/api/v1/commerce/orders?status=CONFIRMED&limit=20" \
-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.commerce.list({ query: { status: 'CONFIRMED', limit: 20 } }).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->commerce->list(['query' => ['status' => 'CONFIRMED', 'limit' => 20]])->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.commerce.list({"status": "CONFIRMED", "limit": 20}).first_page()
print(json.dumps({"data": page.data, "has_more": page.has_more, "next_cursor": page.next_cursor})){
"success": true,
"data": {
"items": [
{
"order_id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9f02",
"order_no": "A-1001",
"channel": "WALLET",
"status": "CONFIRMED",
"version": 4,
"merchant": {
"merchant_code": "M-SANDBOX-01",
"name": "Sandbox Cafe"
},
"location_id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9f01",
"fulfillment": {
"mode": "PICKUP",
"label": "Pickup",
"address": null,
"scheduled_at": null,
"ends_at": null
},
"lines": [
{
"line_id": "l1",
"offering_id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9f03",
"name": "Latte (M)",
"quantity": 2,
"variant_id": null,
"option_ids": [],
"inputs": {},
"amount": 18000,
"status": "ACTIVE",
"final_amount": null
}
],
"breakup": [
{
"kind": "ITEM",
"label": "Latte (M) x 2",
"amount": 18000,
"ref": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9f03"
}
],
"total": 18000,
"fees": [],
"payable_total": 18000,
"authorization_type": "FINAL",
"authorization_amount": null,
"accepted_total": 18000,
"final_amount": null,
"stage": null,
"timeline": [
{
"at": "2026-10-03T08:15:00.000Z",
"label": "Order created",
"status": "CREATED"
},
{
"at": "2026-10-03T08:20:00.000Z",
"label": "Order accepted",
"status": "ACCEPTED"
},
{
"at": "2026-10-03T08:20:00.000Z",
"label": "Paid",
"status": "CONFIRMED"
}
],
"eta_at": null,
"tracking": null,
"artifacts": [],
"actions": [],
"next_action": null,
"web_url": "https://pay.tappay.mn/o/ord_7f3k2m9q",
"payment_id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9f04",
"cancelled_by": null,
"reason_code": null,
"created_at": "2026-10-03T08:15:00.000Z",
"updated_at": "2026-10-03T08:20:00.000Z",
"promotions": [],
"customer": {
"contact_name": "Bat",
"contact_phone": "+97699000000"
},
"note": null,
"accept_due_at": null,
"pending_reschedule": null,
"handler_system": "MERCHANT_SYSTEM",
"payment_due_at": null,
"source": {
"channel": "WALLET",
"partner_name": "Sandbox Bank",
"sticker": null
}
}
],
"nextCursor": null
}
}
For the full flow, read the orders guide.