API Documentation
Welcome, developer. Build your game store inventory automatically with our robust REST API. Designed for speed, reliability, and ease of use.
Authentication
Authenticate your requests by including your secret API key in the Authorization
header.
Never share your secret key in client-side code.
curl https://api.wholesaledigitalkey.com/v1/profile \
-H "Authorization: Bearer sk_live_51982..." \
-H "Content-Type: application/json"
List Products
Returns a paginated list of all available products, including current stock levels and wholesale pricing.
Response Object
{
"data": [
{
"id": 10492,
"name": "Elden Ring (Steam / Global)",
"price": 34.50,
"stock": 142,
"region": "Global",
"platform": "Steam"
},
{
"id": 10550,
"name": "God of War (Steam / Global)",
"price": 29.95,
"stock": 89,
"region": "Global",
"platform": "Steam"
}
],
"meta": {
"total": 15420,
"page": 1
}
}
Create Order
Purchase keys instantly. The keys will be reserved and returned immediately in the response. This action deducts balance from your wallet.
| Parameter | Type | Description |
|---|---|---|
| product_id | Integer | The unique ID of the product to purchase. |
| quantity | Integer | Number of keys (Max: 50 per request). |
| reference | String | Optional. Your custom order ID. |
# Request
curl -X POST https://api.wholesaledigitalkey.com/v1/orders \
-d '{"product_id": 10492, "quantity": 1}'
# Response
{
"success": true,
"order_id": "ord_99283",
"keys": ["XXXX-YYYY-ZZZZ"]
}
Need help calculating HMAC signatures or implementing webhooks?
Contact Integration Support →