List promotions
Returns your promotions, newest first. Filter by status.
Changes in 2026-09-27This operation is not available in this version.
GET /api/v1/promotionsSince 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 | array<string> | no | ||
cursor | string (uuid) | no | ||
limit | integer | no |
Response 200
| Name | Type | Required | Values | Description |
|---|---|---|---|---|
success | boolean | yes | true | |
data | object | yes | ||
data.data | array<object> | yes | ||
data.data[].promotion_id | string | yes | ||
data.data[].merchant_code | string | yes | ||
data.data[].title | object | yes | ||
data.data[].title.mn | string | yes | ||
data.data[].title.en | string | null | no | ||
data.data[].body | object | yes | ||
data.data[].body.mn | string | yes | ||
data.data[].body.en | string | null | no | ||
data.data[].media | array<object> | yes | ||
data.data[].media[].url | string | yes | ||
data.data[].media[].kind | string | yes | ||
data.data[].benefit | object | yes | ||
data.data[].benefit.kind | string | yes | PERCENT_OFF, AMOUNT_OFF, FREE_ITEM, BUNDLE_PRICE, FREE_DELIVERY, LOYALTY, INFO | |
data.data[].benefit.rate | number | no | ||
data.data[].benefit.max_amount | integer | null | no | ||
data.data[].benefit.amount | integer | no | ||
data.data[].benefit.offering_id | string | no | ||
data.data[].benefit.quantity | integer | no | ||
data.data[].benefit.offering_ids | array<string> | no | ||
data.data[].benefit.rule_text | string | no | ||
data.data[].benefit.progress | object | null | no | ||
data.data[].benefit.progress.current | integer | yes | ||
data.data[].benefit.progress.target | integer | yes | ||
data.data[].scope | object | yes | ||
data.data[].scope.kind | string | yes | MERCHANT, LOCATIONS, OFFERINGS, CATEGORIES | |
data.data[].scope.location_ids | array<string (uuid)> | no | ||
data.data[].scope.offering_ids | array<string> | no | ||
data.data[].scope.category_ids | array<string> | no | ||
data.data[].conditions | object | yes | ||
data.data[].conditions.min_order_amount | integer | null | no | ||
data.data[].conditions.fulfillment_modes | array | null | no | ||
data.data[].conditions.time_windows | array | null | no | ||
data.data[].conditions.first_order_only | boolean | no | ||
data.data[].conditions.code | string | null | no | ||
data.data[].conditions.stackable | boolean | no | ||
data.data[].targeting | object | yes | ||
data.data[].targeting.kind | string | yes | ALL, NEARBY, PAST_CUSTOMERS, STICKER_VISITORS | |
data.data[].targeting.radius_m | integer | no | ||
data.data[].targeting.within_days | integer | no | ||
data.data[].starts_at | string | yes | ||
data.data[].ends_at | string | null | yes | ||
data.data[].limits | object | yes | ||
data.data[].limits.per_payer | integer | null | no | ||
data.data[].limits.total_redemptions | integer | null | no | ||
data.data[].limits.budget_amount | integer | null | no | ||
data.data[].status | string | yes | DRAFT, SCHEDULED, ACTIVE, PAUSED, ENDED, BLOCKED | |
data.data[].status_reason | string | null | yes | ||
data.data[].version | integer | yes | ||
data.data[].redeemed_count | integer | yes | ||
data.data[].redeemed_amount | integer | yes | ||
data.data[].published_at | string | null | yes | ||
data.data[].created_at | string | yes | ||
data.data[].updated_at | string | yes | ||
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. |
curl -sS "https://api.tappay.mn/api/v1/promotions?status=ACTIVE&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.promotions.list({ query: { status: 'ACTIVE', 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->promotions->list(['query' => ['status' => 'ACTIVE', '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.promotions.list({"status": "ACTIVE", "limit": 20}).first_page()
print(json.dumps({"data": page.data, "has_more": page.has_more, "next_cursor": page.next_cursor})){
"success": true,
"data": {
"data": [
{
"promotion_id": "0192f8a4-1b2c-7d3e-8f40-5a6b7c8d9f06",
"merchant_code": "M-SANDBOX-01",
"title": {
"mn": "Кофе 10% хямд",
"en": "10% off coffee"
},
"body": {
"mn": "Бүх кофе 10% хямд.",
"en": "All coffee is 10% off."
},
"media": [],
"benefit": {
"kind": "PERCENT_OFF",
"rate": 10,
"max_amount": 5000
},
"scope": {
"kind": "MERCHANT"
},
"conditions": {
"min_order_amount": null,
"fulfillment_modes": null,
"time_windows": null,
"first_order_only": false,
"code": null,
"stackable": false
},
"targeting": {
"kind": "ALL"
},
"starts_at": "2026-10-05T00:00:00.000Z",
"ends_at": "2026-10-31T15:59:59.000Z",
"limits": {
"per_payer": 1,
"total_redemptions": null,
"budget_amount": null
},
"status": "ACTIVE",
"status_reason": null,
"version": 2,
"redeemed_count": 12,
"redeemed_amount": 21600,
"published_at": "2026-10-03T08:20:00.000Z",
"created_at": "2026-10-03T08:15:00.000Z",
"updated_at": "2026-10-03T08:20:00.000Z"
}
],
"hasMore": false,
"nextCursor": null
}
}