Overview
Keysender Supply is a wholesale catalog of game keys, gift cards, and eSIMs you can source without holding stock. The Catalog endpoints let your software browse products with prices and quantities, reserve the items you want, convert the reservation into an order, and collect the delivered codes when the order completes, all against your account's wallet.
TL;DR
- Browse Keysender Supply's wholesale catalog with
GET /catalog/products, filtered and paged. - Reserve stock with
POST /catalog/reserve, then confirm it withPOST /catalog/orderto charge your wallet. - Poll
GET /catalog/orderfor the delivered codes, and cancel a line before it ships with/catalog/order/cancel-item.
Before you start
Make sure you have:
- A bearer token from
POST /login(see Getting started with the Keysender API) and the base URLhttps://panel.keysender.com/api/v1.0. - Supply access on your account. It is enabled by Keysender; without it every catalog call answers
403with a message that names the address to write to. Request it with the Supply access request. - A wallet balance to pay for orders. Confirmed orders are charged to it.
Catalog errors use their own shape: {"status": "...", "error_code": "...", "message": "..."}, and dates are UTC with a Z suffix.
Steps
Browse products
- Send
GET /catalog/products. Filter withsku,name,categories,regions,price_min,price_max,qty_min,type(esim,game,wock),since(a date),updated_at(a UTC timestamp, for polling changes), and sort withsort_by(price,qty,name,updated_at) andsort_order. Page withpageandper_page. - The response carries
total,page,items_per_page, anddocs, the product list. Each product hassku,name,type,qty,purchase_price,regular_price,currency,updated_at, and, where known,release_date,developer,publisher, anddescription. - Send
GET /catalog/products/EXAMPLE-SKUfor one product. Addadditional_information=1to include the extra fields.
Reserve, then order
- Send
POST /catalog/reservewith your ownorder_idand the lines:
curl -X POST "https://panel.keysender.com/api/v1.0/catalog/reserve" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"order_id": "SHOP-10422", "order_items": [{"sku": "EXAMPLE-SKU", "quantity": 2}]}'
- Keep the returned
reservation_id. A reservation holds the stock but does not charge you. - Send
POST /catalog/orderwith{"reservation_id": "..."}. The response isstatus: "Processing"; the order is fulfilled in the background and your wallet is charged.
Collect the codes
- Poll
GET /catalog/order?order_id=SHOP-10422every few seconds. While it still saysProcessingthere are no products in the body yet. - When complete,
productslists each line withsku,quantity, andassigned_codes, each{"code", "type"}. Addadditional_information=1to receive activation details for dynamic products.
Cancel a line
- Send
POST /catalog/order/cancel-itemwithincrement_id(the order) andline_item_id. Success is HTTP204with no body;403,422, and502carry the error shape above.
Top up an eSIM
- Send
POST /catalog/order/top-upwithorder_id,iccid, andtop_up_sku. The response confirms the ICCID andstatus: "Complete".
Confirm it works
GET /catalog/order returns the codes for every line you reserved, the order appears under Supply in the panel, and the wallet balance has dropped by the purchase price. To sell those codes on, load them into a database with Uploading and managing codes with the API.
Troubleshooting
| Symptom | Cause | Action |
|---|---|---|
403 on every catalog call |
Supply access is not enabled on the account yet | Request it with the Supply access request |
409 on reserve |
The quantity is no longer available | Re-read the product's qty and try a smaller line |
Processing for a long time |
The order is still fulfilling in the background | Keep polling GET /catalog/order; do not create a second order for the same order_id |
If it still is not working
Submit a ticket with the order_id, the reservation_id, and the response.
Quick answers
Why do catalog calls return 403?
Supply access is enabled per account by Keysender. Until it is switched on, every catalog endpoint answers 403 with a message naming the address to write to. Request it with the Supply access request at support.keysender.com/connect-supplier.
When am I charged for a Supply order?
A reservation holds stock without charging you. The charge to your wallet happens when you convert the reservation with POST /catalog/order and the order is fulfilled.
Why does GET /catalog/order have no products yet?
The order is still Processing. Fulfilment runs in the background; keep polling every few seconds, and do not create a second order for the same order_id.
Was this helpful?