Integra recargas de juegos y tarjetas digitales en tu plataforma
Consulta productos y precios, valida datos compatibles, revisa el saldo, crea pedidos y sigue su estado mediante la API de LioGames.
Las rutas de API, nombres de cabeceras, campos y ejemplos de código se mantienen en inglés para conservar una especificación técnica estable.
Quick start
Browse public products and pricing without login. Use your reseller credentials for wallet, username and order requests. After creating an order, use the order-status endpoint or your webhook to follow updates.
https://distribution.liogames.com/api/v1Authentication
Signed partner requests use your Member ID and private Secret. Sign the exact raw JSON body with HMAC-SHA256. You can also create scoped API keys from Security Center; when using one, send its Key ID in X-LIOG-KEY-ID and sign with that key's Secret.
x-liog-sign: hash_hmac('sha256', RAW_JSON, SECRET)X-LIOG-KEY-ID: lk_...$body = json_encode($payload, JSON_UNESCAPED_SLASHES);
$signature = hash_hmac('sha256', $body, $secret);Never expose a Secret in browser JavaScript, mobile apps, public repositories or screenshots.
API base & service check
https://distribution.liogames.com/api/v1/pinghttps://distribution.liogames.com/api/v1/routesUse the documented HTTP method for each endpoint. Catalogue and schema endpoints use GET; authenticated balance, username and order creation operations use POST.
Products & variations
https://distribution.liogames.com/api/v1/productshttps://distribution.liogames.com/api/v1/products/{product_id}https://distribution.liogames.com/api/v1/products/{product_id}/variationsEvery product and variation response includes an order_requirements object, so your integration can immediately see the exact player/server fields needed before creating an order. Public product pages and /catalog.json expose the same machine-readable requirements.
{
"product_id": 65482,
"name": "Mobile Legends (Global)",
"order_requirements": {
"profile": "uid_server_numeric",
"required_fields": ["user_id", "server_id"],
"required_order_fields": ["member_code", "product_id", "variation_id", "user_id", "server_id"],
"recommended_fields": ["client_ref"],
"fields": [
{"key":"user_id","label":"User ID","type":"text","required":true},
{"key":"server_id","label":"Server ID","type":"text","required":true}
],
"schema_url": "https://distribution.liogames.com/api/v1/product-schema?product_id=65482"
}
}Required product fields
https://distribution.liogames.com/api/v1/product-schema?product_id={ID}&variation_id={VID}Use Product Schema to see the exact fields required for the selected product or variation. It returns the required IDs, field labels, allowed server values and an order example.
{
"ok": true,
"data": {
"product_id": 65482,
"variation_id": 393960,
"required_fields": ["user_id", "server_id"],
"required_order_fields": ["member_code", "product_id", "variation_id", "user_id", "server_id"],
"recommended_fields": ["client_ref"],
"server_mode": "numeric",
"allowed_server_ids": [],
"fields": [
{"key":"user_id","label":"User ID","type":"text","required":true},
{"key":"server_id","label":"Server ID","type":"text","required":true}
],
"order_create_example": {
"member_code": "YOUR_MEMBER_CODE",
"product_id": 65482,
"variation_id": 393960,
"user_id": "1739190042",
"server_id": "34564"
}
}
}order_requirements or use product-schema before creating the order.Reseller price matrix
https://distribution.liogames.com/api/v1/products/{product_id}/price-matrixReturns the published Normal, GOLD, VIP and H2H prices for each variation. The same pricing is available on the public catalogue pages.
Reseller levels
Your account level controls the reseller tier used for published pricing and selected account benefits.
Username / player verification
https://distribution.liogames.com/api/v1/username-checkUse this endpoint to verify supported player IDs before creating an order. The response also includes the account's Username API usage information.
{
"member_code": "YOUR_MEMBER_CODE",
"game": "mobile-legends",
"user_id": "1393323764",
"server_id": "15748"
}PUBG Code Checker API
https://distribution.liogames.com/api/v1/pubg-code-checkChecks whether PUBG voucher redemption data is available. When available, the response can include the matched package, amount, Player ID, player name, redemption time, expiration time, OpenID and a masked code.
{
"member_code": "YOUR_MEMBER_CODE",
"code": "PUBG_VOUCHER_CODE"
}pubg:code-check. Sign the exact raw JSON body with x-liog-sign. This tool is live-only and does not run through Sandbox.Wallet balance
https://distribution.liogames.com/api/v1/balance{
"member_code": "YOUR_MEMBER_CODE"
}The wallet balance is checked before the order is accepted. If the balance is too low, the API returns an insufficient-balance error.
Create order
https://distribution.liogames.com/api/v1/order-createBuild the request from the selected product's order_requirements. The gateway validates only the fields required by that product profile.
| Field | Required | Use |
|---|---|---|
member_code | Yes | Your LioGames Member ID. |
product_id | Yes | Parent Product ID from the catalogue. |
variation_id | Variable products | Exact pack/denomination variation returned by the variations endpoint. |
client_ref | Recommended | Your unique reference for this order. Reuse the same value if you retry the same request. |
user_id | Product-specific | Player/User/Character/Riot ID when listed in required_fields. |
server_id | Product-specific | Server/zone only when listed in required_fields. Use an allowed value when Product Schema returns an enum. |
{
"member_code": "YOUR_MEMBER_CODE",
"product_id": 65482,
"variation_id": 393960,
"user_id": "1739190042",
"server_id": "18419",
"client_ref": "ORDER-100042"
}client_ref when retrying the same order.Order status & delivery
https://distribution.liogames.com/api/v1/order-statusCheck an order by LioGames order ID or your client reference. Completed voucher orders include delivery or S/N data when available.
Webhooks
Set your HTTPS callback URL in the reseller panel to receive order updates. You can also use the order-status endpoint whenever you need the latest order status.
Return an HTTP 2xx response after receiving a valid webhook event.
Sandbox
https://distribution.liogames.com/api/v1/sandbox/order-createhttps://distribution.liogames.com/api/v1/sandbox/order-statusUse Sandbox to validate signing, product IDs, required fields and status handling without using live wallet funds.
Scoped API keys
Create separate keys for production, development or read-only tools. Each key can have selected scopes, an optional IP allowlist and a per-order spend limit.
| Scope | Use |
|---|---|
products:read | Catalogue and product data |
pricing:read | Price checks |
username:check | Username API |
pubg:code-check | PUBG Code Checker API |
orders:create | Create orders |
orders:read | Order status |
wallet:read | Wallet balance |
notifications:manage | Product alerts |
sandbox | Sandbox tools |
H2H Gift Card Bulk Orders
https://distribution.liogames.com/api/v1/bulk-ordersBulk Orders are available to H2H Level members and accept eligible Gift Card/Voucher products only. Each submitted row is validated before an order can be created.
product_id,variation_id,quantity,client_ref
Product price & stock alerts
https://distribution.liogames.com/api/v1/notifications/subscriptionsSubscribe to selected products and receive signed product.price_changed or product.stock_changed events at your configured webhook URL.
API Usage & Security
The reseller panel shows monthly request totals, Order API requests, Username API requests, PUBG Code Checker requests, errors, response time, source IPs and the API key used for recent requests.
Use Security Center to create/revoke scoped keys, review current login IP and sign out other sessions.
Support & service status
Use the Knowledge Base for common questions or create a support ticket from your reseller account. Current service status is published separately.
AI tool access
https://distribution.liogames.com/api/v1/agent/toolshttps://distribution.liogames.com/api/v1/agent/executeUse scoped API keys to give an approved assistant access only to the tools it needs. Read tools use the same catalogue, pricing, Username API, wallet and order-status rules as the standard API. Paid order actions require both order scopes and confirm=true.
Error handling
Read ok, code, message and data. Keep the same client_ref if you retry the same request.
| Code | Meaning | Action |
|---|---|---|
| INSUFFICIENT_BALANCE | Wallet cannot cover the order. | Fund wallet before retrying. |
| INVALID_SIGNATURE | HMAC validation failed. | Sign the exact raw JSON body. |
| NOT_ALLOWED | Product/access rule rejected. | Refresh access/product data. |
| PROCESSING | Order is not terminal yet. | Wait for webhook or poll status. |
| USERNAME_API_LIMIT_REACHED | GOLD monthly Username API allowance is exhausted. | Activate Unlimited membership or use a VIP/H2H account. |
Product & price updates
Use the Products API or /catalog.json to read the latest published catalogue, pricing and availability data. Use the Products API or catalogue feeds for current published product and price data.
PUBG Code Checker API
Live endpoint for checking available PUBG voucher redemption data. Standard reseller requests are charged $0.02 per resolved request. Permanent H2H Level accounts are included at no charge. This endpoint has no sandbox/free-test mode.
POST /api/v1/pubg-code-check · Required scoped permission: pubg:code-check
{
"member_code": "YOUR_MEMBER_CODE",
"code": "PUBG_VOUCHER_CODE"
}Sign the exact raw JSON body with the same x-liog-sign HMAC method used by the LioGames partner API. Optional scoped keys may also send x-liog-key-id.
Successful responses can include redemption status, matched package, amount, Player ID, player name, redemption time, expiration time, OpenID and a masked code when that data is available.
PUBG Code Checker details