getTopupProduct

Last Updated 11th May, 2025

The getTopupProduct query fetches a single top-up product by its productId. It requires authentication via an API key and returns only the product's name, ID, and price if found.


πŸ”— Endpoint

URL: https://api.vscgames.com/graphql Method: POST Content-Type: application/json


πŸ” Query Structure

query getTopupProduct($productId: String!) {
  getTopupProduct(productId: $productId) {
    name
    productId
    price
  }
}

πŸ“₯ Parameters

Name
Type
Required
Description

productId

String

βœ… Yes

The ID of the product to fetch

πŸ“₯ Headers

Header
Required
Description

apikey

βœ… Yes

API key of the user


βœ… Successful Response


⚠️ Null Response

If the product is not found:


🚫 Error Responses

Message
Reason

API key required in headers

Missing apikey from request

Invalid API key

The key does not belong to a user


πŸ§ͺ Code Examples

Python

JavaScript

Last updated