Reseller API

Order Game Kinley shop products with an API key. Catalog, wallet balance, place order, and status — with optional webhooks.

Base URL https://www.gamekinley.net/api/v1

Authentication

Send your API key on every request. Keys are issued by Game Kinley and shown once — store them securely.

MethodExample
Header (preferred)X-GK-Reseller-Key: gkrs_…
BearerAuthorization: Bearer gkrs_…
Query (avoid in production)?api_key=gkrs_…

Endpoints

MethodPathDescription
GET/servicesProduct + package catalog (your prices)
GET/balanceWallet balance
POST/orderPlace order (wallet debit)
GET/status/{order_id}Order status
POST/v2Single endpoint with action

GET /services

GET/api/v1/services

Returns products allowed for this reseller (or all published products if no allow-list). Use product_id, variation_id, and fields when placing orders.

Response

{
  "ok": true,
  "currency": "BDT",
  "count": 2,
  "services": [
    {
      "product_id": 123,
      "name": "Free Fire",
      "slug": "free-fire",
      "type": "variable",
      "currency": "BDT",
      "in_stock": true,
      "packages": [
        {
          "variation_id": 456,
          "name": "100 Diamonds",
          "price": 95.0,
          "catalog_price": 110.0,
          "regular_price": 110.0,
          "in_stock": true,
          "attributes": {
            "attribute_pa_package": "100-diamonds"
          },
          "fields": [
            { "key": "player_id", "required": true, "label": "Player ID" }
          ]
        }
      ]
    }
  ]
}
FieldNotes
priceYour unit price (custom reseller price if set, else catalog)
catalog_priceShop list price
variation_idPackage id — required for variable products; 0 for simple
fieldsInputs required on order (player_id, server_id, gc_email, …)

cURL

curl -sS "https://www.gamekinley.net/api/v1/services" \
  -H "X-GK-Reseller-Key: gkrs_YOUR_KEY"

GET /balance

GET/api/v1/balance
{
  "ok": true,
  "balance": 15000.5,
  "currency": "BDT"
}
curl -sS "https://www.gamekinley.net/api/v1/balance" \
  -H "X-GK-Reseller-Key: gkrs_YOUR_KEY"

POST /order

POST/api/v1/order

Creates an order, debits your wallet, marks it paid, and starts fulfillment.

Body

FieldRequiredDescription
product_idyesFrom /services
variation_idif variablePackage id from /services
quantitynoDefault 1
player_idif fields say soPlayer / UID
server_idif requiredServer
player_namenoDisplay name
gc_emailif gift-cardDelivery email
dyn_fieldsnoObject of extra key/value fields
external_idrecommendedYour reference — idempotent

Alias: client_order_id = external_id.

Example

curl -sS -X POST "https://www.gamekinley.net/api/v1/order" \
  -H "X-GK-Reseller-Key: gkrs_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": 123,
    "variation_id": 456,
    "quantity": 1,
    "player_id": "PlayerName_1234",
    "external_id": "my-ref-001"
  }'

Success

{
  "ok": true,
  "order_id": 98765,
  "number": "98765",
  "status": "processing",
  "currency": "BDT",
  "total": 95.0,
  "external_id": "my-ref-001",
  "created_at": "2026-03-12T06:00:00+00:00",
  "items": [
    {
      "product_id": 123,
      "variation_id": 456,
      "name": "Free Fire - 100 Diamonds",
      "quantity": 1,
      "total": 95.0,
      "player_id": "PlayerName_1234"
    }
  ]
}

status follows order lifecycle (processing, completed, on-hold, cancelled, …). Poll status or use webhooks.

Errors

HTTPMeaning
401Missing / invalid API key
403Key disabled, or product not allowed
400Bad product / missing required field
402Insufficient wallet balance

GET /status/{order_id}

GET/api/v1/status/{order_id}

Same order object as create. Only your reseller’s orders are visible.

curl -sS "https://www.gamekinley.net/api/v1/status/98765" \
  -H "X-GK-Reseller-Key: gkrs_YOUR_KEY"

POST /v2

POST/api/v1/v2

Panel-style single endpoint. Set action in the JSON body.

{ "action": "services" }
{ "action": "balance" }
{ "action": "status", "order_id": 98765 }
{
  "action": "add",
  "product_id": 123,
  "variation_id": 456,
  "player_id": "PlayerName_1234",
  "external_id": "my-ref-002"
}

action: services | balance | status | add (or order). Aliases: service → product_id, package → variation_id.

Webhooks

Ask Game Kinley to set your webhook URL + signing secret. On every order status change for your orders, we POST:

POST {your_webhook_url}
Content-Type: application/json
User-Agent: GK-Reseller-Webhook/1.1.x
X-GK-Signature: {hmac_sha256_hex}

Payload

{
  "event": "order.status",
  "from": "pending",
  "to": "completed",
  "order": {
    "order_id": 98765,
    "number": "98765",
    "status": "completed",
    "currency": "BDT",
    "total": 95.0,
    "external_id": "my-ref-001",
    "created_at": "2026-03-12T06:00:00+00:00",
    "items": []
  },
  "sent_at": "2026-03-12T06:01:00+00:00"
}

Verify signature

X-GK-Signature = HMAC-SHA256( raw_request_body, webhook_secret )

Compare in constant time. Respond with 2xx quickly.

Pricing & allow-list

  • Allow-list — which products appear in /services and can be ordered
  • Custom prices — your unit price; wallet debit uses this amount
  • Empty allow-list = all published products (unless otherwise restricted)

Pricing and product access are managed by Game Kinley — not via the API.

Account / wallet

  1. Game Kinley creates your reseller account and API key
  2. Wallet is topped up for that account
  3. POST /order debits the same wallet
There is no separate “reseller ledger” — balance on your account is what the API uses.

Idempotency

Always send a unique external_id per logical order. Repeating the same external_id returns the original order — no double charge.

Support

Site: gamekinley.net