/api/reseller/gamesБез параметров — список игр. С game — регионы этой игры. С game и region — пакеты
с готовым product_ref и ценой, поле delivery показывает вид доставки:
codes (выдаются коды) или topup (пополнение по логину — тогда при заказе нужен
объект fields, ключи берутся из массива fields этого ответа).
curl https://hexpay.live/api/reseller/games?game=roblox®ion=us \
-H "Authorization: Bearer <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
}
]
}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.
gameoptionalregionoptionalsuccessbooleanoptionalgamesstring[]optionalесли запрошено без параметров
gamestringoptionalregionsstring[]optionalесли передан только game
regionstringoptionaldeliverystringoptionalвид доставки пакетов этой игры/региона
codestopupfieldsobject[]optionalкакие поля прислать в order/create (только для topup)
activation_guidestringoptionalинструкция активации для этого вида доставки — одна на ответ, а не на пакет
packagesobject[]optional401—404Игры или региона не существует (не путать с «нет в наличии»)503Каталог игр недоступенcurl https://hexpay.live/api/reseller/games?game=roblox®ion=us \
-H "Authorization: Bearer <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
}
]
}