Game TopUp DistributionDevelopers
PARTNER API / V1

GTD reseller
API documentation

Connect your store to GTD. Find gift card and game top-up packs, quote a Steam or Telegram order, buy game keys and check delivery against your own order number.

BASE URLhttps://api.gametopupdistribution.com/api/v1
Catalogue and service ordersJSON over HTTPSUSDT amountsHMAC webhooks

Your first request#

Connect your backend to the catalogue, get a current quote and follow each order through delivery. Start with a balance request: it checks your credentials without creating a purchase.

  1. Get your account key.Sign in and open Profile → API key. Store the key in an environment variable named GTD_API_KEY on your server.
  2. Make a read-only request.Use the example below. A valid response contains success: true and your wallet balance.
  3. Build the ordering flow.Load a product, collect its required fields, review a quote, then confirm one purchase. Save the returned order ID.
BASH
curl --request POST 'https://api.gametopupdistribution.com/api/v1/wallet-balance' \
  --header "Authorization: Bearer $GTD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'

Authentication & conventions#

Send your Game TopUp Distribution key in the Authorization header. Your supplier account key and webhook signing secret are separate credentials.

HEADERS
Authorization: Bearer YOUR_GTD_API_KEY
Content-Type: application/json
FieldTypeDetails
POST + JSONRequestUse GET /services for the directory. Send an authenticated JSON POST for catalogue, balance, quote, purchase and status requests. Put the parameters in the JSON body.
HTTPSTransportUse the base URL above. Keep API calls on your server; do not put the key in browser JavaScript, URLs or public repositories.
success / dataResponseSuccessful requests return {"success":true,"data":{…}}. Errors use the WordPress REST error format shown below.
Decimal stringsMoneyTreat prices and balances as decimal strings. Account amounts are labelled USDT; a voucher denomination may use another currency.
24-character hexProduct IDsUse the product and variant IDs returned by this API. Upstream supplier IDs are not interchangeable.
IntegerOrder IDsSend the numeric order_id to status lookup. reference, such as ord-123, is a display reference.
64 KiBRequest sizeMaximum JSON body size is 65,536 bytes. Unknown request properties are rejected.

The order lifecycle#

Keep a single purchase record in your system from quote to delivery. A successful HTTP response means the request was accepted; it does not mean the product has been delivered.

StageWhat your integration should do
Before paymentMatch product, variant, region and customer details. Display the current quote total and expiry.
After confirmationPersist order_id, reference, your client_ref and the quote token. Check wallet_debited.
While processingUse signed webhook notifications and status lookup. Do not place a replacement order because a request timed out.
On completionIf can_reveal is true, request reveal: true and deliver the returned codes securely. A top-up may complete without a code.
On uncertaintyKeep under_review and refund_pending orders open. Reconcile their final status before fulfilling or refunding a customer.

Steam, Telegram and game key orders#

The public GET /services directory lists the service IDs and routes. Use your reseller Bearer key when you request a service catalogue, quote, purchase or order status. For ordinary gift cards and game top-up packs, use the product catalogue. A Steam game gift, a Steam wallet top-up and a game activation key each have their own order form.

List services · cURL
curl 'https://api.gametopupdistribution.com/api/v1/services'

Choose a service and recipient

Use the service ID from the directory in place of {service}. Send a JSON object to POST /services/{service}/catalogue to look up products and available options. The sample IDs, usernames and amounts below are illustrative. Use values from your own catalogue before requesting a quote.

Steam wallet top-up · steam-topup

Choose an available wallet currency from the catalogue and enter the top-up amount in that currency. The recipient supplies their Steam login. Review the matched recipient and the quoted cost in your GTD Wallet currency. Open Steam top-up in the panel.

Example quote body
{
  "client_ref": "store-1001",
  "selection": {"currency": "USD", "amount": "10.00"},
  "fields": {"steam_login": "example_account"}
}
Steam game gifts · steam-gifts

Look up the game, then send its app_id to the service catalogue to see the available packages and regions. Use the chosen package’s sub_id, its exact region and the recipient’s Steam invite link. Check the edition before you confirm the gift. Open Steam gifts in the panel.

Example quote body
{
  "client_ref": "store-1002",
  "selection": {"app_id": 100, "sub_id": 200, "region": "CIS"},
  "fields": {"invite_url": "https://s.team/p/example/invite"}
}
Game activation keys · game-keys

Search the catalogue with q and page, then submit the chosen game_id to see its offers. Select the offer_id for the edition, activation platform and region you intend to sell. Each purchase is for one key. Open game keys in the panel.

Example quote body
{
  "client_ref": "store-1003",
  "selection": {"offer_id": 123},
  "fields": {}
}
Telegram Stars · telegram-stars

Choose a catalog_id from the Stars catalogue. Enter a whole number of Stars within the returned quantity limits and the recipient’s Telegram username. Check the spelling with the buyer before placing the order. Open Telegram orders in the panel.

Example quote body
{
  "client_ref": "store-1004",
  "selection": {"catalog_id": 123, "quantity": 50},
  "fields": {"telegram_username": "example_recipient"}
}
Telegram Premium · telegram-premium

Pick the Premium plan from its catalogue. Set quantity to the duration in months for that plan. For example, a three-month plan takes 3. The subscription is delivered to the Telegram username you provide. Open Telegram orders in the panel.

Example quote body
{
  "client_ref": "store-1005",
  "selection": {"catalog_id": 456, "quantity": 3},
  "fields": {"telegram_username": "example_recipient"}
}

Quote, confirm and check delivery

  1. Send the selected body to POST /services/{service}/quote. Keep a distinct client_ref of 8–80 characters for each intended purchase. Check total, currency and expires_at along with the recipient or edition before you buy.
  2. To buy, send {"quote":"YOUR_QUOTE_TOKEN","confirmed":true} to POST /services/{service}/order-create. Confirming can debit your real wallet. Once GTD places the order, the purchase is final. A slow delivery or a separate marketplace refund does not cancel it.
  3. Use the returned order number with POST /services/{service}/order-status. Replace the example number in {"order_id":"GTD-350123"} with yours. If the confirmation response was lost, retry with the same quote. If you already have an order number, check that order until it settles. Submitting a new purchase can charge your wallet twice.

For a fulfilled game key, request delivery with {"order_id":"YOUR_ORDER_NUMBER","reveal":true} from your server and show the key privately to that buyer. Steam wallet credits, Steam game gifts and Telegram subscriptions or Stars are delivered to the specified recipient. Keep API credentials and delivered codes out of public logs.

Wallet balance#

POST/wallet-balanceBearer key

Read the balance of the account that owns the API key. Funding is handled in the reseller dashboard.

FieldTypeDetails
{}objectRequired empty JSON object. No additional properties.

Request

BASH
curl --request POST 'https://api.gametopupdistribution.com/api/v1/wallet-balance' \
  --header "Authorization: Bearer $GTD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'

Example response Illustrative values

JSON
{
  "success": true,
  "data": {
    "balance": "100.0000",
    "currency": "USDT"
  }
}

Browse the catalogue#

POST/catalogueBearer key

Find products by category, name, region and availability. The catalogue price is a starting point; request a quote before a purchase.

FieldTypeDetails
typestring · optionalgiftcards (default) or services.
q / regionstring · optionalName search up to 150 characters; region filter up to 191.
stockstring · optionalEmpty string or available.
sortstring · optionalname (default) or price.
pageinteger · optionalStarts at 1; maximum 1,000,000.
per_pageinteger · optional1–50. Default: 24.

Request

BASH
curl --request POST 'https://api.gametopupdistribution.com/api/v1/catalogue' \
  --header "Authorization: Bearer $GTD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"type":"giftcards","page":1,"per_page":24}'

Example response Illustrative values

JSON
{
  "success": true,
  "data": {
    "products": [
      {
        "id": "0123456789abcdef01234567",
        "type": "giftcards",
        "title": "Example gift card",
        "description": "Product redemption details",
        "region": "US",
        "image": "https://www.gametopupdistribution.com/wp-content/uploads/example.webp",
        "currency": "USDT",
        "option_count": 2,
        "from_price": "10.5000",
        "available": true
      }
    ],
    "page": 1,
    "per_page": 24,
    "total": 1,
    "total_pages": 1
  }
}

Follow total_pages to complete a catalogue import. Cache catalogue information locally, but recheck the selected variant and quote before taking payment. The example product and image are placeholders.

Product options & required fields#

POST/productBearer key

Load the available variants and the exact input schema for each package. Render your customer form from the selected variant’s fields array.

FieldTypeDetails
productstring · requiredA 24-character lowercase hexadecimal product ID from catalogue.

Request

BASH
curl --request POST 'https://api.gametopupdistribution.com/api/v1/product' \
  --header "Authorization: Bearer $GTD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"product":"0123456789abcdef01234567"}'

Example response Illustrative values

JSON
{
  "success": true,
  "data": {
    "id": "0123456789abcdef01234567",
    "type": "services",
    "title": "Example game top-up",
    "description": "Check account region before ordering.",
    "region": "Global",
    "image": "",
    "currency": "USDT",
    "variants": [
      {
        "id": "abcdef0123456789abcdef01",
        "title": "Example pack",
        "region": "Global",
        "currency": "USDT",
        "price": "2.5000",
        "available": true,
        "fields": [
          {
            "key": "player_id",
            "label": "Player ID",
            "type": "text",
            "required": true,
            "options": [],
            "help": "Enter the ID shown in the game.",
            "maxlength": 200
          }
        ]
      }
    ]
  }
}

Build the form from the schema

Use each field’s key as the JSON property; show its label and help to the buyer. Enforce required and maxlength. For a select input, submit the returned option value, not its display label.

RuleImplementation
Supported input typestext, email, tel, number, select, textarea, password.
Value rulesStrings or integers only. At most 20 fields, up to 500 bytes per value, and the smaller field-specific limit when provided.
IdentifiersUse strings for IDs and phone numbers so leading zeroes survive. Number fields accept digits only.
Sensitive fieldsMask password inputs and redact sensitive details from logs, analytics and support screenshots.
AvailabilityA null price or available: false means the variant should not be offered for purchase.

Review a quote#

POST/quoteBearer key

Check the current supplier offer and validate customer details before payment. Display the quote total and data.cancellation_policy before the buyer confirms the order.

FieldTypeDetails
product / variantstring · requiredUse the matching IDs returned by this API.
fieldsobject · optionalThe selected variant’s field keys and customer values. Send {} when no fields are required.
client_refstring · required8–80 characters: letters, numbers, dots, underscores, colons or hyphens. Unique to one purchase in your account.

Request

BASH
curl --request POST 'https://api.gametopupdistribution.com/api/v1/quote' \
  --header "Authorization: Bearer $GTD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"product":"0123456789abcdef01234567","variant":"abcdef0123456789abcdef01","fields":{"player_id":"123456789"},"client_ref":"store-order-000123"}'

Example response Illustrative values

JSON
{
  "success": true,
  "data": {
    "quote": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "expires_at": "2026-10-25T12:05:00+00:00",
    "cancellation_policy": "Once an order is placed with GTD, it cannot be cancelled for any reason, including delivery delays.",
    "total": "2.5000",
    "total_label": "2.5000 USDT",
    "product": "Example game top-up",
    "variant": "Example pack",
    "currency": "USDT",
    "fields": [
      {
        "label": "Player ID",
        "value": "123456789"
      }
    ],
    "balance_label": "100.0000 USDT"
  }
}

Confirm an order#

POST/order-createBearer key

Confirm a reviewed quote. This operation can debit your wallet and submit the purchase to the supplier.

FieldTypeDetails
quotestring · requiredThe 64-character quote token returned by quote.
confirmedboolean · requiredSend the JSON boolean true after the buyer reviews the customer details and price and accepts the cancellation policy from the quote.

Request

BASH
curl --request POST 'https://api.gametopupdistribution.com/api/v1/order-create' \
  --header "Authorization: Bearer $GTD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"quote":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","confirmed":true}'

Example response Illustrative values

JSON
{
  "success": true,
  "data": {
    "order_id": 123,
    "reference": "ord-123",
    "status": "processing",
    "url": "https://www.gametopupdistribution.com/reseller/",
    "message": "Your order is saved and processing.",
    "wallet_debited": true
  }
}

Track an order & retrieve delivery#

POST/order-statusBearer key

Read an order owned by your account. Request delivery details only when you need to fulfil the corresponding customer purchase.

FieldTypeDetails
order_idinteger or string · requiredPass the numeric order ID from order-create, or the public order_number for a new GTD order (for example, "GTD-250200"). Both refer to the same order and require the owning account’s API key.
revealboolean · optionalDefault false. False omits codes. True adds the array and populates it when delivery can be revealed; otherwise it is empty.

Request

BASH
curl --request POST 'https://api.gametopupdistribution.com/api/v1/order-status' \
  --header "Authorization: Bearer $GTD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"order_id":123,"reveal":false}'

Example response Illustrative values

JSON
{
  "success": true,
  "data": {
    "id": 123,
    "reference": "ord-123",
    "status": "completed",
    "created_at": "2026-10-25T12:00:00+00:00",
    "updated_at": "2026-10-25T12:01:00+00:00",
    "product": "Example gift card",
    "variant": "Example denomination",
    "region": "US",
    "total_label": "10.5000 USDT",
    "message": "Your order is complete.",
    "url": "https://www.gametopupdistribution.com/reseller/",
    "delivery_status": "completed",
    "fields": [],
    "can_reveal": true,
    "wallet_debited": true
  }
}

Delivery when reveal is true

JSON
{
  "codes": [
    {
      "label": "Code",
      "value": "EXAMPLE-NOT-A-REDEEMABLE-CODE"
    }
  ]
}

The delivery array is returned inside data. Keep complete values intact. Do not treat an empty array as a completed digital-code delivery; check status, can_reveal and the product’s delivery method.

StatusHow to handle it
processingPurchase is being processed. Keep tracking.
completedThe order is complete. Retrieve codes where applicable.
under_reviewThe outcome needs reconciliation. Do not create a duplicate.
refund_pendingA refund is being reconciled. Do not assume the wallet is already credited.
refundedThe payment has been returned to the wallet.
failedThe purchase failed; inspect the message and wallet state.

Retries without duplicate purchases#

The purchase reference and quote token are part of your order record. Persist both before confirmation so a lost response does not turn into a second purchase.

SituationRecommended response
Quote request times outRetry the same body with the same client_ref. Do not generate a new reference for that retry.
Order confirmation times outRetry order-create with the same quote token. If you already have the numeric order ID, check order-status first.
HTTP 409Read the message. A reference can belong to different details, a request can be busy, or a package may be unavailable. Do not blindly submit a new purchase.
Expired quoteCheck whether confirmation was attempted and whether an order exists. Start a fresh reference only after the earlier attempt is definitively safe to abandon. Ask support when the outcome is unclear.
HTTP 429 / transient 5xxUse bounded exponential backoff with jitter. Preserve the same purchase identity, and stop automatic retries after your chosen limit.
Unexpected statusPreserve the order and reconcile it through status lookup or support rather than interpreting an unknown status as success.

Signed webhooks#

Receive order notifications at your own HTTPS endpoint. Open Settings → Webhook to save the receiver URL, manage its signing secret, send a test and inspect the last 10 delivery attempts.

01Verify

Authenticate the original request bytes before parsing JSON.

02Deduplicate

Record delivery_id durably so a retry is handled once.

03Acknowledge

Queue accepted work and return a 2xx response promptly.

EventMeaning
order.createdAn eligible order was created.
order.status_changedAn eligible order changed status.
webhook.testA test delivery requested from Settings. Do not fulfil a purchase from a test event.

Payload

JSON
{
  "event": "order.status_changed",
  "timestamp": 1792929600,
  "data": {
    "order_id": 123,
    "reference": "ord-123",
    "status": "completed",
    "previous_status": "processing",
    "amount": "2.5000",
    "currency": "USDT",
    "products": [
      {
        "name": "Example game pack",
        "quantity": 1
      }
    ],
    "created_at": "2026-10-25T12:00:00+00:00"
  },
  "delivery_id": "wh_example_unique_delivery"
}

Signature contract

HEADERS
X-Webhook-Signature: sha256=<64 lowercase hexadecimal characters>
X-Webhook-Delivery: <delivery_id>

HMAC-SHA256(signing_secret, raw_request_body)

Compare the digest with a constant-time function. Use the exact body bytes; parsing and re-serializing JSON changes the signed input. The webhook secret is not your API key.

Node.js verifier

JAVASCRIPT
import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody must be the original request Buffer, before JSON parsing.
export function verifyWebhook(rawBody, signature, signingSecret) {
  if (!Buffer.isBuffer(rawBody) || !signingSecret ||
      !/^sha256=[a-f0-9]{64}$/.test(signature || '')) return false;
  const expected = createHmac('sha256', signingSecret).update(rawBody).digest();
  const received = Buffer.from(signature.slice(7), 'hex');
  return received.length === expected.length && timingSafeEqual(received, expected);
}

// After verification: parse JSON, deduplicate delivery_id in durable
// storage, enqueue work, then return HTTP 2xx. Reconcile order status
// before fulfilling; webhook statuses may use the underlying order state.
Python verifier
PYTHON
import hashlib
import hmac
import re

def verify_webhook(raw_body: bytes, signature: str, signing_secret: str) -> bool:
    if not signing_secret or not re.fullmatch(r"sha256=[a-f0-9]{64}", signature or ""):
        return False
    expected = "sha256=" + hmac.new(
        signing_secret.encode(), raw_body, hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(expected, signature)

# Use the untouched request bytes. Parse only after verification.
# Deduplicate delivery_id in durable storage before processing.

Delivery and reconciliation

Failed deliveries are attempted up to three times. Retry delays are scheduled at 5 minutes and then 15 minutes after the previous failed attempt; worker timing can vary. A changed or removed callback URL stops delivery to the old destination. Use the last 10 attempts in Settings to inspect HTTP status, attempt number and delivery time.

Webhooks carry the underlying order status; the order-status API may normalize it to values such as under_review or refund_pending. Fetch the current order before a fulfilment decision. Deduplication also protects against replay; do not reject legitimate retries merely because the event timestamp is more than a few minutes old.

Rate limits#

Limits are applied per account and operation. Your integration should queue work and avoid polling the same order continuously.

OperationAdapter limit
quote12 / 60 seconds
order-create12 / 60 seconds
catalogue, product, wallet-balance, order-status60 / 60 seconds for each operation

Commerce and shared supplier checks can impose additional limits. Handle HTTP 429 even when your own counter is below these values. Use a delayed queue with jitter; do not assume a Retry-After header will always be present.

Errors & troubleshooting#

Error bodies have a machine-readable code, a human-readable message, and data.status. Read the HTTP status as well as the JSON.

JSON
{
  "code": "dh_store_product_invalid",
  "message": "Use a product ID from this catalogue.",
  "data": {
    "status": 400
  }
}
HTTPMeaningNext step
400Invalid inputCheck JSON types, required fields and IDs. Unknown properties are rejected.
401AuthenticationCheck the Bearer key and its current account access.
403Access or ordering deniedCheck account eligibility, any enforced IP restrictions and product availability. Contact support if access should be enabled.
404Not foundUse a returned product, variant or account-owned order ID.
409ConflictInspect the message and reconcile the existing quote/order before retrying.
415Content typeSend Content-Type: application/json.
429Rate limitQueue and back off with jitter.
5xxTemporarily unavailableRetry reads with a bounded policy. Preserve the same quote/reference for writes.

Non-JSON access errors

A plain-text or HTML 403 response can come from the edge security layer before the request reaches the API. Check the response body and contact support with the request time and network details. Repeated retries or changing your API key will not resolve an edge block.

When you contact support

Include the endpoint, HTTP status, response error code, UTC request time, your client reference and order ID if one was returned. Redact API keys, signing secrets, customer credentials and delivered codes.

Before you go live#

  • Keys and webhook secrets are stored only on your backend.
  • Product region, variant and dynamic fields are shown accurately.
  • Prices use decimal arithmetic and the current quote, not a cached listing alone.
  • Every purchase persists one client reference, quote token and returned order ID.
  • A timeout cannot automatically create a second purchase.
  • Webhook signatures and duplicate deliveries are checked.
  • Only confirmed completion triggers delivery to your customer.
  • Your support team can find the matching supplier order without seeing secrets.