Page cover

Welcome

Welcome to the official GraphQL API for VSC Games. This API provides secure and scalable endpoints for top-up operations, digital product queries, order tracking, and player detail verification.

Whether you're a merchant integrating game top-ups, a developer building a storefront, or an analytics tool pulling order data โ€” this API is designed to be fast, flexible, and easy to integrate.


๐Ÿ” Authentication

All authenticated queries and mutations require an API key passed via headers:

apikey: YOUR_API_KEY

If you're using merchant-based endpoints, the key is passed as:

merchantkey: YOUR_MERCHANT_KEY

๐Ÿ“ฆ Base URL

https://api.vscgames.com/graphql

All queries and mutations are sent via POST requests to this single endpoint.


๐Ÿ“„ Request Format

Send requests as JSON with a GraphQL query or mutation, and optional variables.

Example:

{
  "query": "query getUserTopupOrders { getUserTopupOrders { orderId name amount } }"
}

โœ… Response Format

All responses follow standard GraphQL JSON structure:

{
  "data": {
    "getUserTopupOrders": [ ... ]
  }
}

If an error occurs:

{
  "errors": [
    {
      "message": "API key required",
      "path": ["getUserTopupOrders"]
    }
  ]
}

๐Ÿ“š Available Modules

Module
Description

๐Ÿ”‘ Authentication

API key validation for users and merchants

๐ŸŽฎ Top-Up Products

View or fetch available top-up options

๐Ÿงพ Orders

Submit, view, and track top-up orders

๐Ÿง Player Info

Retrieve player names using IDs

๐Ÿ“‚ Categories

Group and list products by category


๐Ÿงช Testing

You can test queries using:

  • Postman

  • GraphQL Playground

  • Your frontend/backend using fetch, axios, etc.


๐Ÿ“ฌ Need Help?

If you encounter any issues integrating the API, please contact the VSC Games support team.

Last updated