Endpoint Reference
The StagePay REST API v1 endpoint list — paths, scopes, parameters, and response fields for payment creation, transactions, products, apps, and settlement queries.
The base URL for all paths is https://api.stagepay.io, and API key authentication is required. A machine-readable specification is available at GET /api/v1/openapi.json (OpenAPI 3.1).
| Method | Path | Scope | Description |
|---|---|---|---|
POST | /api/v1/payments | write:transactions | Create a payment |
GET | /api/v1/transactions | read:transactions | List transactions |
GET | /api/v1/transactions/{id} | read:transactions | Transaction details |
GET | /api/v1/products | read:products | List products (active only) |
GET | /api/v1/products/{id} | read:products | Product details |
GET | /api/v1/apps | read:apps | List apps |
GET | /api/v1/apps/{id} | read:apps | App details |
GET | /api/v1/settlements | settlement:read | List settlement batches |
GET | /api/v1/settlements/{batchNo} | settlement:read | Settlement batch details |
GET | /api/v1/settlements/{batchNo}/lines | settlement:read | Settlement lines (JSON or CSV) |
The read:all scope allows all transaction, product, and app queries (excluding settlement).
Transactions
GET /api/v1/transactions
| Query | Description |
|---|---|
page, limit | Page (default 1, 20) |
appId | App filter |
status | pending, success, failed, cancelled, expired, partial_refunded, refunded |
startDate, endDate | Creation time range (ISO 8601) |
Key fields of the transaction object
| Field | Description |
|---|---|
tid | StagePay transaction ID |
appId, userId, serverId, playerId | Values passed in the request |
productId, productName | Product |
status | Transaction status |
amount / amountMinor / currency | Display amount / settlement amount (minor) / currency |
refundedAmountMinor, refunds[] | Cumulative refunded amount, refund history {refundId, amountMinor, reason, at} |
pgCode, method, pgTid | PG, payment method, PG transaction ID (e.g. tno for the refund API) |
paidAt, createdAt | Payment confirmation time, creation time |
callback | Callback status {status, attempts, lastAttemptAt, lastStatusCode, nextAttemptAt} |
crypto | USDT payment information (USDT) |
userdata, etc, uniqueId | Free-form merchant data |
Products
GET /api/v1/products
| Query | Description |
|---|---|
page, limit | Page (default 1, 20) |
appId | App filter |
The response includes only products with status=active. For the checkout's productId, use the product ID (the value shown in the console).
Apps
GET /api/v1/apps
The list of apps the key can access. App secrets (webhookSecret, apiKey) are not included in the response.
Settlement
Paths, parameters, response fields, and the CSV format are documented in the Settlement query API.
curl "https://api.stagepay.io/api/v1/settlements?status=APPROVED&from=2026-01-01T00:00:00%2B09:00" \
-H "Authorization: Bearer $STAGEPAY_KEY_ID:$STAGEPAY_KEY_SECRET"When the specification and the docs differ
The OpenAPI specification (/api/v1/openapi.json), generated by the API server, is the authoritative document. If this page differs from it, follow the specification and let us know about the documentation error.
Request Signing (Optional)
The optional X-StagePay-Signature request signing specification for preventing REST API body tampering and replay attacks, with Node.js, PHP, and Python examples.
Settlement Policy
Settlement policy fields per app × currency (fee rate, fixed fee, VAT, fee refunds on refunds, cycle, hold days, minimum payout, timezone, start date) and the versioning and snapshot rules.