Skip to Content
StagePayDocs v2

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).

MethodPathScopeDescription
POST/api/v1/paymentswrite:transactionsCreate a payment
GET/api/v1/transactionsread:transactionsList transactions
GET/api/v1/transactions/{id}read:transactionsTransaction details
GET/api/v1/productsread:productsList products (active only)
GET/api/v1/products/{id}read:productsProduct details
GET/api/v1/appsread:appsList apps
GET/api/v1/apps/{id}read:appsApp details
GET/api/v1/settlementssettlement:readList settlement batches
GET/api/v1/settlements/{batchNo}settlement:readSettlement batch details
GET/api/v1/settlements/{batchNo}/linessettlement:readSettlement lines (JSON or CSV)

The read:all scope allows all transaction, product, and app queries (excluding settlement).

Transactions

GET /api/v1/transactions

QueryDescription
page, limitPage (default 1, 20)
appIdApp filter
statuspending, success, failed, cancelled, expired, partial_refunded, refunded
startDate, endDateCreation time range (ISO 8601)

Key fields of the transaction object

FieldDescription
tidStagePay transaction ID
appId, userId, serverId, playerIdValues passed in the request
productId, productNameProduct
statusTransaction status
amount / amountMinor / currencyDisplay amount / settlement amount (minor) / currency
refundedAmountMinor, refunds[]Cumulative refunded amount, refund history {refundId, amountMinor, reason, at}
pgCode, method, pgTidPG, payment method, PG transaction ID (e.g. tno for the refund API)
paidAt, createdAtPayment confirmation time, creation time
callbackCallback status {status, attempts, lastAttemptAt, lastStatusCode, nextAttemptAt}
cryptoUSDT payment information (USDT)
userdata, etc, uniqueIdFree-form merchant data

Products

GET /api/v1/products

QueryDescription
page, limitPage (default 1, 20)
appIdApp 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.

On this page