Reseller API
Order Game Kinley shop products with an API key. Catalog, wallet balance, place order, and status — with optional webhooks.
Authentication
Send your API key on every request. Keys are issued by Game Kinley and shown once — store them securely.
| Method | Example |
|---|---|
| Header (preferred) | X-GK-Reseller-Key: gkrs_… |
| Bearer | Authorization: Bearer gkrs_… |
| Query (avoid in production) | ?api_key=gkrs_… |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /services | Product + package catalog (your prices) |
| GET | /balance | Wallet balance |
| POST | /order | Place order (wallet debit) |
| GET | /status/{order_id} | Order status |
| POST | /v2 | Single endpoint with action |
GET /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" }
]
}
]
}
]
}
| Field | Notes |
|---|---|
price | Your unit price (custom reseller price if set, else catalog) |
catalog_price | Shop list price |
variation_id | Package id — required for variable products; 0 for simple |
fields | Inputs 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
{
"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
Creates an order, debits your wallet, marks it paid, and starts fulfillment.
Body
| Field | Required | Description |
|---|---|---|
product_id | yes | From /services |
variation_id | if variable | Package id from /services |
quantity | no | Default 1 |
player_id | if fields say so | Player / UID |
server_id | if required | Server |
player_name | no | Display name |
gc_email | if gift-card | Delivery email |
dyn_fields | no | Object of extra key/value fields |
external_id | recommended | Your 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
| HTTP | Meaning |
|---|---|
401 | Missing / invalid API key |
403 | Key disabled, or product not allowed |
400 | Bad product / missing required field |
402 | Insufficient wallet balance |
GET /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
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
/servicesand 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
- Game Kinley creates your reseller account and API key
- Wallet is topped up for that account
POST /orderdebits the same wallet
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