Orders
Unified order history across all services.
Get All Ordersโ
Get order history from all services in one endpoint.
Endpoint: GET /api/orders
Response:
{
"status": "success",
"message": "Orders retrieved",
"data": [
{
"type": "freefire",
"order_id": 100,
"trx_id": "550e8400-e29b-41d4-a716-446655440000",
"plan_name": "100 Diamonds",
"price": 1000.00,
"status": "success",
"created_at": "2024-01-15T10:30:00.000000Z"
},
{
"type": "pubg",
"order_id": 200,
"external_order_id": "G4C123456",
"product_name": "60 UC",
"price": 265.00,
"status": "accept",
"created_at": "2024-01-15T09:15:00.000000Z"
},
{
"type": "smm",
"order_id": 300,
"service_name": "Instagram Likes",
"price": 50.00,
"status": "Completed",
"created_at": "2024-01-14T15:20:00.000000Z"
},
{
"type": "beinsports",
"order_id": 400,
"offer_name": "BeIN Sports 1 Month",
"price": 1500.00,
"status": "pending",
"created_at": "2024-01-14T12:00:00.000000Z"
},
{
"type": "flexy",
"order_id": 500,
"ref": "TOP67890abcdef1234567890",
"phone": "0661234567",
"amount": 100,
"status": "FULFILLED",
"created_at": "2024-01-14T11:00:00.000000Z"
},
{
"type": "internet",
"order_id": 600,
"ref": "INT67890abcdef1234567890",
"number": "213551234567",
"value": 1000,
"status": "FULFILLED",
"created_at": "2024-01-14T10:00:00.000000Z"
},
{
"type": "product",
"order_id": "1234567890123456789",
"product_name": "Steam Wallet",
"variant_name": "Steam Wallet 10 USD",
"price": 1425.00,
"status": "completed",
"created_at": "2024-01-14T09:00:00.000000Z"
}
]
}
Service Typesโ
| Type | Description | Status Field Format |
|---|---|---|
freefire | Free Fire orders | pending, success, failed |
pubg | PUBG Mobile orders | wait, accept, reject |
smm | SMM service orders | Pending, Processing, Completed, Partial, Cancelled, Refunded |
beinsports | BeIN Sports orders | pending, completed, failed |
flexy | Flexy mobile top-up orders | PENDING, HANDLING, FULFILLED, FAILED, REJECTED, REFUNDED |
internet | Internet top-up orders | PENDING, HANDLING, FULFILLED, FAILED, REJECTED, REFUNDED |
product | General product orders | completed, processing, pending, failed |
Order Details by Typeโ
Each order type includes different fields:
Free Fireโ
trx_id: Transaction IDplan_name: Diamond package nameplayer_id: Player ID
PUBGโ
external_order_id: Gift4Card order IDproduct_name: UC package nameplayer_id: Player ID
SMMโ
external_order_id: Provider order IDservice_name: Service namequantity: Order quantitylink: Target URL
BeIN Sportsโ
sc_id: Smart card IDoffer_name: Subscription package nameclient_name: Customer name
Flexyโ
ref: Topup referencephone: Phone numberamount: Recharge amountplan_name: Plan name
Internetโ
ref: Topup referencenumber: Phone/ADSL numbertype:4GorADSLvalue: Card value
Productโ
product_name: Product namevariant_name: Variant namekey: Product key (if available)has_key: Whether key is ready
Example Usageโ
# Get all orders
curl -X GET "https://gateway.wasmou.net/api/orders" \
-H "X-Api-Key: your_api_key"
Filtering and Sortingโ
Currently, the endpoint returns all orders sorted by created_at descending (newest first).
For service-specific order history, use the individual service history endpoints:
/api/pubg/history/api/smm/orders/api/flexy/history/api/internet/history
Best Practicesโ
- Use this endpoint for a unified dashboard view
- For detailed information, query the specific service endpoint
- Cache order data to reduce API calls
- Implement pagination on your side if dealing with many orders