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