Skip to main content

PUBG Mobile

UC top-up services via Gift4Card.

1. Get Productsโ€‹

Get available PUBG Mobile UC packages.

Endpoint: GET /api/pubg/products

Response:

{
"status": "success",
"message": "Products retrieved",
"data": [
{
"id": 12345,
"name": "60 UC",
"uc_amount": 60,
"available": true,
"price": 265.00
},
{
"id": 12346,
"name": "325 UC",
"uc_amount": 325,
"available": true,
"price": 1330.00
}
]
}

2. Check Player (Optional)โ€‹

Verify a player ID before placing an order.

Endpoint: POST /api/pubg/check-player

Request:

{
"player_id": "1234567890"
}

Response:

{
"status": "success",
"player_name": "PlayerName123",
"game": "PUBG Mobile",
"user_id": "1234567890",
"is_ban": 0
}

3. Place Orderโ€‹

Purchase UC for a player.

Endpoint: POST /api/pubg/order

Request:

{
"product_id": 12345,
"player_id": "1234567890"
}

Response:

{
"success": true,
"message": "Order placed successfully",
"order_id": 789,
"status": "wait",
"data": {
"order_id": "IDC123456",
"status": "wait"
}
}

4. Check Order Statusโ€‹

Check the status of a placed order.

Endpoint: GET /api/pubg/status/{orderId}

Response:

{
"status": "success",
"message": "Order status retrieved",
"data": {
"id": 789,
"order_id": "G4C123456",
"product_name": "60 UC",
"player_id": "1234567890",
"quantity": 1,
"price": 265.00,
"status": "accept",
"codes": ["CODE123"],
"created_at": "2024-01-15T10:30:00.000000Z"
}
}

Status Values: wait, accept, reject

5. Get Order Historyโ€‹

Get your PUBG order history.

Endpoint: GET /api/pubg/history

Response:

{
"status": "success",
"message": "History retrieved",
"data": [
{
"id": 789,
"product_name": "60 UC",
"player_id": "1234567890",
"status": "accept",
"created_at": "2024-01-15T10:30:00.000000Z"
}
]
}

Example Workflowโ€‹

# 1. Get available products
curl -X GET "https://gateway.wasmou.net/api/pubg/products" \
-H "X-Api-Key: your_api_key"

# 2. (Optional) Check player
curl -X POST "https://gateway.wasmou.net/api/pubg/check-player" \
-H "X-Api-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"player_id": "1234567890"}'

# 3. Place order
curl -X POST "https://gateway.wasmou.net/api/pubg/order" \
-H "X-Api-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"product_id": 12345, "player_id": "1234567890"}'

# 4. Check status
curl -X GET "https://gateway.wasmou.net/api/pubg/status/789" \
-H "X-Api-Key: your_api_key"

Best Practicesโ€‹

  • Use the internal order_id (integer) to check status, not the external order_id string
  • Check player validity before ordering
  • Poll status endpoint until status is accept or reject
  • Codes are provided in the status response when order is accepted