Gift card API for resellers and online stores. 30,000+ products, no stock to hold.
One REST API for digital gift cards, gaming cards, game keys and game currency. Your store shows our catalog with wholesale prices, your customer pays you, and your server gets the code back in under a second.
- 30,000+products
- 100+countries
- <1 stypical delivery
- 2015in the market since
curl -X POST https://api.cdkeymarkt.com/v1/orders \
-H "Authorization: Bearer $CDKM_API_KEY" \
-H "Idempotency-Key: shop-100482-1" \
-d '{"reference":"SHOP-100482","currency":"EUR",
"items":[{"product_id":"prd_8kq2v7m1","quantity":1,
"max_unit_price":"19.50"}]}'order = requests.post(
"https://api.cdkeymarkt.com/v1/orders",
headers={"Authorization": f"Bearer {KEY}",
"Idempotency-Key": "shop-100482-1"},
json={"reference": "SHOP-100482", "currency": "EUR",
"items": [{"product_id": "prd_8kq2v7m1",
"quantity": 1, "max_unit_price": "19.50"}]},
timeout=30,
).json()$ch = curl_init('https://api.cdkeymarkt.com/v1/orders');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('CDKM_API_KEY'),
'Content-Type: application/json',
'Idempotency-Key: shop-100482-1',
],
CURLOPT_POSTFIELDS => json_encode([
'reference' => 'SHOP-100482', 'currency' => 'EUR',
'items' => [['product_id' => 'prd_8kq2v7m1',
'quantity' => 1, 'max_unit_price' => '19.50']],
]),
]);
$order = json_decode(curl_exec($ch), true);const order = await fetch("https://api.cdkeymarkt.com/v1/orders", {
method: "POST",
headers: { Authorization: `Bearer ${KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": "shop-100482-1" },
body: JSON.stringify({ reference: "SHOP-100482", currency: "EUR",
items: [{ product_id: "prd_8kq2v7m1", quantity: 1,
max_unit_price: "19.50" }] }),
}).then((r) => r.json());{
"id": "ord_3n7xk2p9q4",
"status": "completed",
"total": "19.12",
"items": [{
"name": "Steam Wallet Gift Card 20 EUR",
"codes": [{ "code": "8XK4Q-2M7PD-L9VRT" }]
}]
}Who uses the API
Online stores
Resellers
Apps and bots
Loyalty and rewards
What the gift card API does
Everything a store needs to sell digital codes it does not keep in stock.
Gift card catalog
Orders
Top-ups by player ID
Webhooks
Sandbox
Balances
From request to first order
A personal manager walks you through every step.
- Send a request
Fill in the form and pass a short check of your company (KYB). We work with verified businesses only.
- Get sandbox access
You receive test keys and the full API documentation for your developers.
- Connect and test
Set up the catalog, orders and webhooks. We go through your test orders together with you.
- Go live
We enable production keys for your server IPs. Top up your balance and start selling.
The gift card API at a glance
REST and JSON over HTTPS, key-based auth, cursor pagination, UTC timestamps, amounts as strings. The full documentation goes to partners after onboarding.
/productsCatalog with prices, regions and stock/products/{id}One product: price and availability right now/ordersPlace an order and receive codes/orders/{id}Order status and delivered codes/top-ups/validateCheck a player ID before a top-up/balanceBalance per currency/transactionsStatement of charges and refundsWhat you can sell
FAQ
Do I need to buy stock to use the gift card API?
No. Your store shows our catalog and places an order with us only after the customer has paid. Each order is charged to your prepaid balance.
Is this a gift card API for resellers?
Yes. The API is built for resellers, online stores, apps and reward platforms that sell or hand out digital gift cards and game keys. You get wholesale prices and a catalog of over 30,000 products.
Where is the full API documentation?
The full documentation, sandbox access and help with the integration go to partners after onboarding and the company check.
Which platforms can I connect?
Anything that can send HTTPS requests from a server: WooCommerce, Shopify, Magento, custom stores, Telegram bots and internal tools.
How fast does the code arrive?
Usually right in the response to your order, in under a second. If delivery takes longer, the order finishes in the background and we send a webhook.
Is there a sandbox?
Yes. It has a test balance, a copy of the catalog and special products that let you test delays, partial deliveries and out-of-stock cases.
Can I buy in bulk without the API?
Yes. The B2B portal has the same catalog and prices. There you can order a batch by hand and download the codes.