Skip to main content

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โ€‹

TypeDescriptionStatus Field Format
freefireFree Fire orderspending, success, failed
pubgPUBG Mobile orderswait, accept, reject
smmSMM service ordersPending, Processing, Completed, Partial, Cancelled, Refunded
beinsportsBeIN Sports orderspending, completed, failed
flexyFlexy mobile top-up ordersPENDING, HANDLING, FULFILLED, FAILED, REJECTED, REFUNDED
internetInternet top-up ordersPENDING, HANDLING, FULFILLED, FAILED, REJECTED, REFUNDED
productGeneral product orderscompleted, processing, pending, failed

Order Details by Typeโ€‹

Each order type includes different fields:

Free Fireโ€‹

  • trx_id: Transaction ID
  • plan_name: Diamond package name
  • player_id: Player ID

PUBGโ€‹

  • external_order_id: Gift4Card order ID
  • product_name: UC package name
  • player_id: Player ID

SMMโ€‹

  • external_order_id: Provider order ID
  • service_name: Service name
  • quantity: Order quantity
  • link: Target URL

BeIN Sportsโ€‹

  • sc_id: Smart card ID
  • offer_name: Subscription package name
  • client_name: Customer name

Flexyโ€‹

  • ref: Topup reference
  • phone: Phone number
  • amount: Recharge amount
  • plan_name: Plan name

Internetโ€‹

  • ref: Topup reference
  • number: Phone/ADSL number
  • type: 4G or ADSL
  • value: Card value

Productโ€‹

  • product_name: Product name
  • variant_name: Variant name
  • key: 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