Promo code “10nov” — 10% discount on all products until November 31.
For partners

Reseller API for license keys

Connect your shop or bot to HackLavka: keys are bought automatically from your balance and arrive right in the response.

  • up to 5 keys per order
  • up to 50 a day per token
  • paid from your balance
  • idempotent requests
A HackLavka server with a holographic logo handing out access keys
— 01 Format
JSON over HTTPS
— 02 Payment
From your account balance
— 03 Delivery
The key is in the response
— 04 Order
All or nothing
01

How it works

An HTTP API for sellers who resell our keys — on FunPay, for example. Your script reads the catalogue and stock, buys a key the moment you sell one and hands it to your customer.

Diagram: balance, a request from your script, a key, a sale to your customer
  1. 01
    Balance

    You top up your account balance on the site.

  2. 02
    Request

    Your script places an order the moment you sell.

  3. 03
    Key

    The key arrives right in the response.

  4. 04
    Sale

    You hand the key to your customer.

A wallet and coins

Paid from your balance

Orders are charged to the balance of your account on the site. You top it up as usual — the API takes no payments of its own.

A price tag

Catalogue prices

Prices follow the catalogue. We give our partners a personal promo code: pass it in the promo_code field of the request and the discount is applied to the order. Everything currently on sale on the site is available through the API.

A limit gauge

Limits

Up to 5 keys per order and up to 50 keys per 24 hours for one token.

Support

Refunds

Disputes and refunds are handled manually through support.

02

Request example

Catalogue, stock, purchase and reading a key again — a few simple methods, JSON in and out. The data in the example is made up.

All amounts in the API are integers in kopecks.

curl -X POST https://hack-lavka.com/api/v1/orders \
  -H "Authorization: Bearer hlk_live_xxxxxxxx" \
  -H "Idempotency-Key: sale-20261113-0001" \
  -H "Content-Type: application/json" \
  -d '{"plan_id": 12, "quantity": 2, "promo_code": "PARTNER10"}'
import requests

r = requests.post(
    "https://hack-lavka.com/api/v1/orders",
    headers={
        "Authorization": "Bearer hlk_live_xxxxxxxx",
        "Idempotency-Key": "sale-20261113-0001",
    },
    json={"plan_id": 12, "quantity": 2, "promo_code": "PARTNER10"},
    timeout=30,
)

for item in r.json()["items"]:
    print(item["order_id"], item["key"])
Response · 201
{
  "order_id": "ord_01jcx5v8k2m9q4r7t0w3y6z8ab",
  "plan_id": 12,
  "quantity": 2,
  "total": 270000,
  "currency": "RUB",
  "created_at": "2026-11-13T12:00:00+00:00",
  "price_per_key": 135000,
  "discount_percent": 10,
  "items": [
    {"order_id": 5101, "status": "completed", "key": "XXXX-XXXX-XXXX"},
    {"order_id": 5102, "status": "completed", "key": "YYYY-YYYY-YYYY"}
  ],
  "balance_after": 980000
}
03

Security

Token stored as a hash

It is shown once when issued. It can be rotated without downtime and revoked at any moment.

Idempotency

Repeating a request after a dropped connection never charges you twice.

Per-token limits

The per-order and daily caps apply to every token.

Request log

Requests to the API are logged.

04

How to get access

A hooded figure at a terminal sending keys to shop fronts
  1. 01

    Application

    Sign up on the site and apply: tell us where you sell and what volume you expect.

  2. 02

    Token

    We review the application, get in touch and issue an API token for your account. Access cannot be switched on by yourself.

  3. 03

    Balance

    Top up your account balance on the site — the same way as for regular purchases.

  4. 04

    First request

    Connect your script. The full documentation opens in your account.

05

Apply for access

Tell us where you sell and what volume you expect. Tokens are issued by hand once the application is reviewed.

06

Questions and answers

01How do I get a token?

Apply with the form above. We review the application and issue a token for your account on the site. Access cannot be switched on by yourself.

02How do I top up the balance?

The same way as for regular purchases: in your account on the site. The API takes no payments of its own.

03What about refunds?

Disputes and refunds are handled manually through support.

04What are the limits?

Up to 5 keys per order and up to 50 keys per 24 hours for one token.

05How do promo codes work?

We give our partners a personal promo code. Pass it in the promo_code field of the request and the discount is applied to the order. Without a code a key costs the catalogue price.

06What if there are not enough keys?

An order for several keys is fulfilled as a whole. If keys or funds are short, nothing is charged.