API Integration
Welcome to the developer documentation. Integrate our services directly into your application using standard HTTP requests.
BASE URL
https://api.njmw.store/v2
Copied!
Authentication
Authenticate your requests by including your unique API Key in every call.
Method 1: HTTP Header (Recommended)
HTTP Header
api-key: YOUR_API_KEY_HERE
Method 2: Query Parameter
Alternatively, append the key to the request URL.
Query Param
?api-key=YOUR_API_KEY_HERE
1. Products List
Get the full list of services, prices, and their required inputs. Grouped by category hierarchy.
GET
/products
Response Example
JSON
{
"success": true,
"count": 150,
"products": [
{
"id": 50,
"category": "Games > PUBG Mobile",
"name": "PUBG Mobile 60 UC",
"price": "0.92",
"min_quantity": 1,
"max_quantity": 1000,
"product_type": "topup",
"required_input": "player_id"
},
{
"id": 205,
"category": "Games > Free Fire",
"name": "Free Fire 100 Diamonds",
"price": "0.85",
"product_type": "topup",
"required_input": "player_id"
}
]
}
2. User Balance
Retrieve your current account balance.
GET
/balance
JSON Response
{
"success": true,
"balance": 150.50,
"currency": "USD"
}
3. Create Order
Execute a purchase. You can use POST (JSON body) or GET (URL parameters).
POST
GET
/order
Parameters
| Parameter | Type | Description |
|---|---|---|
| service | Integer Required | The Product ID retrieved from the Products List. |
| quantity | Integer Required | Amount to order. Usually 1 for cards or packages. |
| {dynamic} | String Required | The field defined in the product's required_input. Examples: player_id, link, email.
|
| order_id | String Optional | Your own custom Order ID (Idempotency Key). Must be unique to prevent duplicates. |
Example Request
POST Body (JSON)
{
"service": 50,
"quantity": 1,
"player_id": "5123456789",
"order_id": "MY-REF-1001"
}
Success Response
JSON Response
{
"success": true,
"message": "Order placed successfully",
"order_id": 54215,
"product": "PUBG Mobile 60 UC",
"quantity": 1,
"price": 0.92,
"status": "pending"
}
4. Order Status
Check the live status of an order using the System ID or your Custom ID.
GET
/check
Parameters
| Parameter | Description |
|---|---|
| id | System Order ID received in the order response. |
| order_id | OR the Custom ID you sent when creating the order. |
Response Example
JSON Response
{
"success": true,
"order_id": 54215,
"status": "completed",
"cards": [
{
"code": "ABCD-1234-EFGH-5678"
}
]
}