KXR Digital API
Use the KXR Digital API to retrieve products, create orders using your reseller balance, and check order status. All endpoints return JSON.
POST /order.php creates a real provider order and uses reseller balance when accepted. Do not test with invalid product or player details.Authentication
Each reseller has a unique API key. Send it in the request header for every endpoint that requires authentication.
Never expose your API key in public frontend code or screenshots. If it is compromised, regenerate it in Settings.
Account information
Returns the reseller ID, username, email, role and balance.
Products
Returns active products. Use the product id as product_id when creating an order. The API uses reseller_price when set; otherwise, it uses customer_price.
Example response
Create an order
Send a JSON body. user_id is the player's in-game account ID, not the reseller ID. For games that require a zone or server, include zone_id.
| Field | Required | Description |
|---|---|---|
product_id | Yes | Product ID from /products.php. |
user_id | Yes | Player's in-game account ID. |
zone_id | By game | Player zone/server; the endpoint also accepts server_id. |
nickname | No | Player nickname, if available. |
Example request
Contoh berjaya
Save order.invoice to check the order status. Status values depend on the provider response.
Check order status
Orders can only be checked by the reseller that created them.
Check MLBB nickname
This endpoint calls an external nickname lookup service. If that service is unavailable, the API returns HTTP 502.
Callback acknowledgement
https://kxrdigital.shop/callback/topup.php.HTTP status codes and errors
| HTTP | Common meaning |
|---|---|
| 200 | Request succeeded. |
| 401 | Missing or invalid API key, or the account is not a reseller. |
| 404 | Product or order not found. |
| 422 | A required field is missing or the input is incomplete. |
| 400 | Provider rejected the order, balance is insufficient, or order creation failed. |
| 502 | The nickname/provider service returned an unusable response. |