Spark UC API

Recipes

Patterns that ship in production panels

Copy these flows into your reseller dashboard, Discord bot, or checkout. Canonical docs stay on api.pubgredeemerbot.com/docs.

1) Shop checkout — lookup then pay then redeem

At checkout, call GET /v1/player/lookup?player_id=…, show nickname + region to the buyer, take payment, then POST /v1/jobs/manual-redeem and poll.

2) Reseller inventory — check-code before listing

When a seller uploads vouchers, fire POST /v1/jobs/check-code (up to 10 codes). Only mark “listed” when status is available. Dead codes never reach the storefront.

3) Internal queue — stock-redeem

Upload stock once via the Telegram bot, then let your worker call POST /v1/jobs/stock-redeem as orders arrive. Keeps secrets out of your panel DB.

Python poll loop

Minimal pattern — swap in your HTTP client of choice.

python · poll job
import time, requests

BASE = "https://api.pubgredeemerbot.com"
H = {"X-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"}

r = requests.post(f"{BASE}/v1/jobs/manual-redeem", headers=H, json={
    "player_id": "5123456789",
    "codes": ["XXXX-XXXX-XXXX-XXXX"],
})
job_id = r.json()["job_id"]

while True:
    j = requests.get(f"{BASE}/v1/jobs/{job_id}", headers=H).json()
    st = j.get("status")
    if st in ("done", "failed"):
        print(st, j)
        break
    time.sleep(1.2)

Need the key? Open @SparkUCBot → plan + HTTP API add-on. Marketing overview: pubgredeemerbot.com/midasbuy-api.html.