Каталог игр (в три шага - игры, регионы, пакеты)

GET/api/reseller/games

Без параметров — список игр. С game — регионы этой игры. С game и region — пакеты с готовым product_ref и ценой, поле delivery показывает вид доставки: codes (выдаются коды) или topup (пополнение по логину — тогда при заказе нужен объект fields, ключи берутся из массива fields этого ответа).

curl https://hexpay.live/api/reseller/games?game=roblox&region=us \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Paste your key in the menu and it will replace <YOUR_API_KEY>.
{
  "success": true,
  "games": [],
  "game": null,
  "regions": [],
  "region": null,
  "delivery": "codes",
  "fields": [
    {
      "key": "account_number",
      "name": "ID аккаунта",
      "required": true,
      "min": 0,
      "max": 0,
      "description": null
    }
  ],
  "activation_guide": null,
  "packages": [
    {
      "product_ref": "roblox:us:1234",
      "service_id": 1234,
      "title": "400 Robux",
      "short": "400",
      "in_stock": true,
      "min_quantity": 1,
      "max_quantity": 10,
      "quantity_step": 1,
      "wholesale_price_nano": 412000,
      "wholesale_price_rub": 412
    }
  ]
}

Authorization

Header Authorization: Bearer <key> on every request. The key is issued in the cabinet and shown once. It spends your deposit: keep it on the server.

Query parameters

gameoptional
regionoptional

Response fields

successbooleanoptional
gamesstring[]optional

если запрошено без параметров

gamestringoptional
regionsstring[]optional

если передан только game

regionstringoptional
deliverystringoptional

вид доставки пакетов этой игры/региона

one of:codestopup
fieldsobject[]optional

какие поля прислать в order/create (только для topup)

activation_guidestringoptional

инструкция активации для этого вида доставки — одна на ответ, а не на пакет

packagesobject[]optional

When it fails

401
404Игры или региона не существует (не путать с «нет в наличии»)
503Каталог игр недоступен
Собираем анонимную аналитику посещений. Подробнее