Skip to content

List orders

View as Markdown

Returns the orders of the locations that your system handles, newest first. Filter by status or location_id.

Changes in 2026-09-27

GET /api/v1/commerce/ordersSince 2026-09-27

Authentication

Secret key (Bearer)

Headers

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

Query parameters

NameTypeRequiredValuesDescription
statusstringnoCREATED, ACCEPTED, AWAITING_PAYMENT, CONFIRMED, IN_PROGRESS, READY, COMPLETED, CANCELLED, REJECTED, EXPIRED, FAILED
location_idstring (uuid)no
cursorstringno
limitintegerno

Response 200

NameTypeRequiredValuesDescription
successbooleanyestrue
dataobjectyes
data.itemsarray<object>yes
data.items[].order_idstring (uuid)yes
data.items[].order_nostringyes
data.items[].channelstringyes
data.items[].statusstringyesCREATED, ACCEPTED, AWAITING_PAYMENT, CONFIRMED, IN_PROGRESS, READY, COMPLETED, CANCELLED, REJECTED, EXPIRED, FAILED
data.items[].versionintegeryes
data.items[].merchantobjectyes
data.items[].merchant.merchant_codestringyes
data.items[].merchant.namestringyes
data.items[].location_idstring (uuid)yes
data.items[].fulfillmentobjectyes
data.items[].fulfillment.modestringyes
data.items[].fulfillment.labelstringyes
data.items[].fulfillment.addressobject | nullyes
data.items[].fulfillment.address.labelstring | nullyes
data.items[].fulfillment.address.textstringyes
data.items[].fulfillment.address.entrancestring | nullno
data.items[].fulfillment.address.floorstring | nullno
data.items[].fulfillment.address.doorstring | nullno
data.items[].fulfillment.address.notestring | nullno
data.items[].fulfillment.address.locationobject | nullyes
data.items[].fulfillment.address.location.latnumberyes
data.items[].fulfillment.address.location.lngnumberyes
data.items[].fulfillment.address.districtstring | nullno
data.items[].fulfillment.address.khoroostring | nullno
data.items[].fulfillment.scheduled_atstring | nullyes
data.items[].fulfillment.ends_atstring | nullyes
data.items[].linesarray<object>yes
data.items[].lines[].line_idstringyes
data.items[].lines[].offering_idstringyes
data.items[].lines[].namestringyes
data.items[].lines[].quantityintegeryes
data.items[].lines[].variant_idstring | nullyes
data.items[].lines[].option_idsarray<string>yes
data.items[].lines[].inputsobjectyes
data.items[].lines[].amountnumberyes
data.items[].lines[].statusstringyes
data.items[].lines[].final_amountnumber | nullyes
data.items[].breakuparray<object>yes
data.items[].breakup[].kindstringyes
data.items[].breakup[].labelstringyes
data.items[].breakup[].amountnumberyes
data.items[].breakup[].refstring | nullno
data.items[].totalnumberyes
data.items[].feesarray<object>yes
data.items[].fees[].kindstringyes
data.items[].fees[].labelstringyes
data.items[].fees[].amountnumberyes
data.items[].fees[].estimatedbooleanyes
data.items[].payable_totalnumberyes
data.items[].authorization_typestringyes
data.items[].authorization_amountnumber | nullyes
data.items[].accepted_totalnumber | nullyes
data.items[].final_amountnumber | nullyes
data.items[].stageobject | nullyes
data.items[].stage.codestringyes
data.items[].stage.labelstringyes
data.items[].stage.descriptionstring | nullno
data.items[].timelinearray<object>yes
data.items[].timeline[].atstringyes
data.items[].timeline[].labelstringyes
data.items[].timeline[].statusstring | nullno
data.items[].eta_atstring | nullyes
data.items[].trackingobject | nullyes
data.items[].tracking.agentobject | nullyes
data.items[].tracking.agent.namestringyes
data.items[].tracking.agent.phone_maskedstring | nullyes
data.items[].tracking.agent.photo_urlstring | nullyes
data.items[].tracking.agent.provider_labelstring | nullyes
data.items[].tracking.locationobject | nullyes
data.items[].tracking.location.latnumberyes
data.items[].tracking.location.lngnumberyes
data.items[].tracking.location.atstringyes
data.items[].tracking.eta_atstring | nullyes
data.items[].tracking.tracking_urlstring | nullyes
data.items[].tracking.static_map_urlstring | nullyes
data.items[].artifactsarray<object>yes
data.items[].artifacts[].artifact_idstringyes
data.items[].artifacts[].kindstringyes
data.items[].artifacts[].labelstringyes
data.items[].artifacts[].valuestring | nullno
data.items[].artifacts[].urlstring | nullno
data.items[].artifacts[].valid_fromstring | nullno
data.items[].artifacts[].valid_tostring | nullno
data.items[].artifacts[].fallback_urlstringyes
data.items[].actionsarray<object>yes
data.items[].actions[].kindstringyes
data.items[].actions[].allowedbooleanyes
data.items[].actions[].deadlinestringno
data.items[].actions[].labelstringyes
data.items[].actions[].urlstringno
data.items[].next_actionobject | nullyes
data.items[].next_action.typestringyes
data.items[].next_action.intent_idstringno
data.items[].next_action.diffobjectno
data.items[].next_action.diff.linesarray<object>yes
data.items[].next_action.diff.lines[].offering_idstringyes
data.items[].next_action.diff.lines[].beforeobject | nullyes
data.items[].next_action.diff.lines[].before.quantityintegeryes
data.items[].next_action.diff.lines[].before.amountnumberyes
data.items[].next_action.diff.lines[].afterobject | nullyes
data.items[].next_action.diff.lines[].after.quantityintegeryes
data.items[].next_action.diff.lines[].after.amountnumberyes
data.items[].next_action.diff.total_beforenumberyes
data.items[].next_action.diff.total_afternumberyes
data.items[].next_action.diff.scheduleobjectno
data.items[].next_action.diff.schedule.beforeobjectyes
data.items[].next_action.diff.schedule.before.scheduled_atstring | nullyes
data.items[].next_action.diff.schedule.before.ends_atstring | nullno
data.items[].next_action.diff.schedule.afterobjectyes
data.items[].next_action.diff.schedule.after.scheduled_atstring | nullyes
data.items[].next_action.diff.schedule.after.ends_atstring | nullno
data.items[].next_action.urlstringno
data.items[].next_action.untilstringno
data.items[].web_urlstringyes
data.items[].payment_idstring | nullyes
data.items[].cancelled_bystring | nullyes
data.items[].reason_codestring | nullyes
data.items[].created_atstringyes
data.items[].updated_atstringyes
data.items[].promotionsarray<object>no
data.items[].promotions[].promotion_idstring (uuid)yes
data.items[].promotions[].kindstringyes
data.items[].promotions[].amountnumberyes
data.items[].customerobjectyes
data.items[].customer.contact_namestring | nullyes
data.items[].customer.contact_phonestring | nullyes
data.items[].notestring | nullyes
data.items[].accept_due_atstring | nullyes
data.items[].pending_rescheduleobject | nullyes
data.items[].pending_reschedule.scheduled_atstringyes
data.items[].pending_reschedule.ends_atstring | nullyes
data.items[].handler_systemstringyes
data.items[].payment_due_atstring | nullyes
data.items[].sourceobjectyes
data.items[].source.channelstringyes
data.items[].source.partner_namestring | nullyes
data.items[].source.stickerobject | nullyes
data.items[].source.sticker.namestring | nullyes
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.
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.