Footer

Game Topup Nepal

Contact Details Below

Follow Us

Quick Links

  • Home
  • Shop
  • FAQ
  • About Us
  • API Docs

Account

  • Login
  • Register
  • Search

Customer Support

We're here to help — reach us anytime.

Telegram SupportChat on WhatsApp
support@gametopupnepal.com

© 2026 Game Topup Nepal. All Rights Reserved · Deployed by Rasoft Company

Terms & ConditionsPrivacy PolicyShipping InformationRefund & Returns
HomeOrdersAdd MoneyReferralsProfile
For Processing Order - Please contact Website Live Chat Support
For Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat SupportFor Processing Order - Please contact Website Live Chat Support
Game Topup Nepal
HomeShopContact us
Search
Search
Reseller API · v1

Order top-ups from your own website or app

Use our API to list reseller packages and place orders automatically. Every order is paid from your wallet balance, exactly like ordering on our website.

Login to get your API keyhttps://YOUR-API-DOMAIN/api/v1
  • Overview
  • Authentication
  • Responses & errors
  • Get balance
  • List products
  • Get one product
  • Reseller packages
  • Place an order
  • Get an order
  • List orders
  • Order statuses
  • Error codes
  • Code examples
  • Best practices

Overview

The API lets you do four things: check your wallet balance, list the reseller packages you can sell, place an order, and check the order status. It works with plain HTTPS and JSON, so it fits any language.

  1. Become a reseller (contact support) and generate an API key in API Management.
  2. Add money to your wallet. Orders are deducted from this balance.
  3. Call GET /products to see the package tag of every reseller package.
  4. Call POST /orders with the package tag and the player id.
  5. Check GET /orders/:orderId until the status is COMPLETED.
Only packages from reseller products are available through the API. Prices are your wallet prices in NPR (and USDT if your account has USDT enabled).
Base URL
text
1https://YOUR-API-DOMAIN/api/v1

Authentication

Send your API key in the X-API-Key header on every request. You can also send it as Authorization: Bearer YOUR_API_KEY.

Header
http
1X-API-Key: gtn_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • Keys always start with gtn_live_.
  • Use the key only on your server. Never put it in a website, app or public repository.
  • Optionally lock a key to your server IP in API Management. Other IPs get IP_NOT_ALLOWED.
  • If a key leaks, press Regenerate or delete it. The old key stops working immediately.
  • Only https:// is accepted. Calls over http are refused.
  • After 20 wrong keys from one IP in 10 minutes that IP is blocked for 10 minutes.
  • Every order is paid from your wallet at the moment it is created. If the balance is too low the order is refused, never created unpaid.

Responses & errors

Every response is JSON with a success flag. On success the result is inside data. On failure you get an error object with a stable code to handle in your code and a human readable message.

Success
json
1{
2 "success": true,
3 "data": {
4 "...": "..."
5 }
6}
Error
json
1{
2 "success": false,
3 "error": {
4 "code": "INSUFFICIENT_BALANCE",
5 "message": "Insufficient wallet balance"
6 }
7}

Rate limits: 120 requests per minute and 30 orders per minute for each key. When exceeded you get HTTP 429 with a Retry-After header (seconds).

GET/balance

Returns your current wallet balances.

Response

json
1{
2 "success": true,
3 "data": {
4 "balanceNpr": 1250.5,
5 "balanceUsdt": 0,
6 "rateType": "NPR"
7 }
8}
FieldTypeRequiredDescription
balanceNprnumberNoWallet balance in Rs. Rs orders are deducted from here.
balanceUsdtnumberNoDollar balance. Used by accounts with USDT enabled.
rateTypestringNoNPR (Rs only), BOTH (Rs or USDT) or USDT (USDT only).
GET/products

Lists every reseller product with its packages (variants).

Response

json
1{
2 "success": true,
3 "data": [
4 {
5 "id": "7c571b90-6a4a-498d-907f-7f69c329b62b",
6 "name": "Free Fire Top-up",
7 "slug": "free-fire-top-up",
8 "image": "/uploads/free-fire.jpg",
9 "type": "IDCODE",
10 "category": "Popular Games",
11 "playerIdLabel": "Player ID",
12 "extraFields": [],
13 "variants": [
14 {
15 "tag": "ff-100-diamonds",
16 "id": "3f6f0f0e-4d5a-4b2c-9a3e-1b7c2d9e8a10",
17 "name": "100 Diamonds",
18 "priceNpr": 95,
19 "priceUsdt": 0.72,
20 "inStock": true
21 },
22 {
23 "tag": "ff-310-diamonds",
24 "id": "9a1d7e52-2f40-41c0-8d6b-5a2f6c3b7e11",
25 "name": "310 Diamonds",
26 "priceNpr": 290,
27 "priceUsdt": 2.2,
28 "inStock": true
29 }
30 ]
31 }
32 ]
33}

Product fields

FieldTypeRequiredDescription
id / slugstringNoProduct identifiers.
namestringNoProduct name.
imagestring | nullNoImage path. Prefix it with our website address to build the full URL.
typestringNoIDCODE (needs Player ID), VOUCHER (returns codes) or other top-up types.
playerIdLabelstringNoWhat the playerUid means for this product, e.g. Player ID, UID or Phone number.
extraFieldsarrayNoExtra inputs some products need. Send them in extraFields when ordering.
variants[].tagstringNoThe package tag set by us. Send it as tag when placing an order. null means the package has no tag yet (use variants[].id).
variants[].idstringNoInternal id. You can send it as variantId instead of the tag, but the tag is easier.
variants[].priceNprnumberNoPrice in Rs for 1 unit.
variants[].priceUsdtnumber | nullNoPrice in USDT, or null when the package has no USDT price.
variants[].inStockbooleanNofalse means the package cannot be ordered right now.
GET/products/:idOrSlug

Returns one reseller product by its id or slug.

Example

Request
http
1GET https://YOUR-API-DOMAIN/api/v1/products/free-fire-top-up
Response
json
1{
2 "success": true,
3 "data": {
4 "id": "7c571b90-6a4a-498d-907f-7f69c329b62b",
5 "name": "Free Fire Top-up",
6 "slug": "free-fire-top-up",
7 "image": "/uploads/free-fire.jpg",
8 "type": "IDCODE",
9 "category": "Popular Games",
10 "playerIdLabel": "Player ID",
11 "extraFields": [],
12 "variants": [
13 {
14 "tag": "ff-100-diamonds",
15 "id": "3f6f0f0e-4d5a-4b2c-9a3e-1b7c2d9e8a10",
16 "name": "100 Diamonds",
17 "priceNpr": 95,
18 "priceUsdt": 0.72,
19 "inStock": true
20 },
21 {
22 "tag": "ff-310-diamonds",
23 "id": "9a1d7e52-2f40-41c0-8d6b-5a2f6c3b7e11",
24 "name": "310 Diamonds",
25 "priceNpr": 290,
26 "priceUsdt": 2.2,
27 "inStock": true
28 }
29 ]
30 }
31}
Not found
json
1{
2 "success": false,
3 "error": {
4 "code": "PRODUCT_NOT_FOUND",
5 "message": "Product not found."
6 }
7}

Reseller packages

Every reseller package with its tag and price. Copy the tag (or a ready order JSON) and use it in POST /orders. The tag is the Tag you set on the package in the dashboard. New reseller packages appear here and in the API automatically. The same list comes live from GET /products.

Loading your package list…
POST/orders

Places an order. The price is deducted from your wallet balance immediately.

Body (JSON)

FieldTypeRequiredDescription
tagstringYesPackage tag from /products, e.g. ff-100-diamonds. (variantId also works if a package has no tag.)
productstringNoOnly needed when two products use the same tag: the product slug from /products.
playerUidstringYesPlayer ID / UID / number to top up.
quantityintegerNoA JSON number (not text). Default 1, max 100. The total is price × quantity.
clientOrderIdstringNoYour own unique reference (letters, numbers, . _ -, max 64). Sending the same value again never charges twice.
playerNamestringNoOptional in-game name, shown on the order.
serverstringNoOptional game server, if the game needs it.
regionstringNoOptional game region.
extraFieldsobjectNoValues for the product’s extraFields, e.g. {"Zone ID": "1234"}.
currencystringNoOnly for accounts with both Rs and USDT: send "USDT" to pay from the dollar balance. Default is NPR. Other accounts get an error if they send a currency they cannot use.
Request body
json
1{
2 "tag": "ff-100-diamonds",
3 "playerUid": "123456789",
4 "quantity": 1,
5 "clientOrderId": "shop-77124"
6}

Success · HTTP 201

json
1{
2 "success": true,
3 "data": {
4 "orderId": 1024,
5 "clientOrderId": "shop-77124",
6 "status": "PENDING",
7 "productName": "Free Fire Top-up",
8 "tag": "ff-100-diamonds",
9 "variantId": "3f6f0f0e-4d5a-4b2c-9a3e-1b7c2d9e8a10",
10 "variantName": "100 Diamonds",
11 "quantity": 1,
12 "playerUid": "123456789",
13 "playerName": null,
14 "amount": 95,
15 "currency": "NPR",
16 "codes": [],
17 "createdAt": "2026-11-25T09:30:12.000Z",
18 "updatedAt": "2026-11-25T09:30:12.000Z"
19 },
20 "balance": {
21 "balanceNpr": 1155.5,
22 "balanceUsdt": 0
23 }
24}
If you send a clientOrderId that already exists, the response is HTTP 200 with "duplicate": true and the original order. Nothing is charged again, so it is safe to retry after a timeout.

Failure examples

HTTP 400
json
1{
2 "success": false,
3 "error": {
4 "code": "INSUFFICIENT_BALANCE",
5 "message": "Insufficient wallet balance"
6 }
7}
HTTP 404
json
1{
2 "success": false,
3 "error": {
4 "code": "PACKAGE_NOT_FOUND",
5 "message": "This package is not available through the API."
6 }
7}
GET/orders/:orderId

Returns one order. Use the numeric orderId, or your own clientOrderId.

Request
http
1GET https://YOUR-API-DOMAIN/api/v1/orders/1024
2GET https://YOUR-API-DOMAIN/api/v1/orders/shop-77124
Response
json
1{
2 "success": true,
3 "data": {
4 "orderId": 1024,
5 "clientOrderId": "shop-77124",
6 "status": "COMPLETED",
7 "productName": "Free Fire Top-up",
8 "tag": "ff-100-diamonds",
9 "variantId": "3f6f0f0e-4d5a-4b2c-9a3e-1b7c2d9e8a10",
10 "variantName": "100 Diamonds",
11 "quantity": 1,
12 "playerUid": "123456789",
13 "playerName": null,
14 "amount": 95,
15 "currency": "NPR",
16 "codes": [],
17 "createdAt": "2026-11-25T09:30:12.000Z",
18 "updatedAt": "2026-11-25T09:30:12.000Z"
19 }
20}
For voucher products a completed order contains the delivered codes in codes: "codes": ["ABCD-1234-EFGH", "WXYZ-5678-IJKL"]
GET/orders

Lists the orders placed through the API, newest first.

FieldTypeRequiredDescription
pageintegerNoPage number, default 1.
limitintegerNoItems per page, 1 to 100, default 20.
statusstringNoFilter: PENDING, PAID, COMPLETED or CANCELLED.
Response
json
1{
2 "success": true,
3 "data": [
4 {
5 "orderId": 1024,
6 "clientOrderId": "shop-77124",
7 "status": "PENDING",
8 "productName": "Free Fire Top-up",
9 "tag": "ff-100-diamonds",
10 "variantId": "3f6f0f0e-4d5a-4b2c-9a3e-1b7c2d9e8a10",
11 "variantName": "100 Diamonds",
12 "quantity": 1,
13 "playerUid": "123456789",
14 "playerName": null,
15 "amount": 95,
16 "currency": "NPR",
17 "codes": [],
18 "createdAt": "2026-11-25T09:30:12.000Z",
19 "updatedAt": "2026-11-25T09:30:12.000Z"
20 }
21 ],
22 "meta": {
23 "page": 1,
24 "limit": 20,
25 "total": 1
26 }
27}

Order statuses

StatusMeaning
PENDINGOrder received and paid from your wallet. It is waiting to be delivered.
PAIDPayment confirmed and delivery is in progress.
COMPLETEDDelivered successfully. Voucher codes (if any) are in codes.
CANCELLEDThe order could not be delivered. The amount is refunded to your wallet automatically.
Check an order every 5–10 seconds (not faster) until it is COMPLETED or CANCELLED.

Error codes

CodeHTTPMeaning
MISSING_API_KEY401No API key was sent. Add the X-API-Key header.
INVALID_API_KEY401The key does not exist, was regenerated or was deleted.
KEY_DISABLED403The key was disabled by support.
ACCOUNT_INACTIVE403Your account is suspended or deleted.
NOT_A_RESELLER403API access is only for reseller accounts.
IP_NOT_ALLOWED403The key has an IP allowlist and your server IP is not in it.
HTTPS_REQUIRED400Plain http:// was used. Always call the API with https://.
TOO_MANY_FAILED_ATTEMPTS429Too many wrong API keys from your IP. Wait for Retry-After seconds.
PRICE_NOT_AVAILABLE400The package has no valid price right now.
AMBIGUOUS_TAG400More than one package uses this tag. Also send the product slug in the product field.
RATE_LIMITED429Too many requests. Wait for the Retry-After seconds.
VALIDATION_ERROR400A field is missing or invalid. The message explains which.
PACKAGE_NOT_FOUND404No package with this tag, or it is not available to resellers.
INSUFFICIENT_BALANCE400Your wallet balance is lower than the order amount. Add money and retry.
OUT_OF_STOCK400The package is out of stock right now.
LIMIT_REACHED400A purchase limit for this product or Player ID was reached.
USDT_NOT_AVAILABLE400No USDT price or USDT is not enabled for your account.
ORDER_NOT_FOUND404No order with that id belongs to your account.
ORDER_FAILED400The order was rejected. The message tells the reason.
SERVER_ERROR500Something went wrong on our side. Retry with the same clientOrderId.

Code examples

Place an order in your favourite language.

cURL
bash
1curl -X POST https://YOUR-API-DOMAIN/api/v1/orders \
2 -H "X-API-Key: YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{ "tag": "ff-100-diamonds", "playerUid": "123456789", "quantity": 1, "clientOrderId": "shop-77124" }'

Best practices

  • Always send a unique clientOrderId. If your request times out, send it again with the same value to find out whether the order was created, without paying twice.
  • Keep enough balance in your wallet. When the balance is too low the API returns INSUFFICIENT_BALANCE.
  • Call /products only when you need fresh prices (for example every few minutes), not for every customer click.
  • Store the key in an environment variable on your server and lock it to your server IP in API Management.
  • Never trust a browser to call the API directly. Call it from your backend and show the result to your customer.
Need help? Open a ticket from the Support page.