Каталог товаров с оптовыми ценами

GET/api/reseller/products
curl https://hexpay.live/api/reseller/products \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Paste your key in the menu and it will replace <YOUR_API_KEY>.
{
  "success": true,
  "products": [
    {
      "code": "stars",
      "product_type": "telegram_stars",
      "pricing_mode": "quantity",
      "quantity_means": "stars_count",
      "has_subcatalog": false,
      "catalog_url": "/api/reseller/gifts",
      "required_field": "gift_id",
      "wholesale_price_rub": 1.3207,
      "wholesale_price_nano": 1320,
      "unit_wholesale_price_rub": 1.3207,
      "unit_wholesale_price_nano": 1320,
      "months": 3,
      "markup_percent": 7,
      "min_amount_rub": 50,
      "max_amount_rub": 50000,
      "note": null,
      "activation_guide_url": "/api/reseller/guide?product=apple"
    }
  ]
}

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.

Response fields

successbooleanoptional
productsobject[]optional

When it fails

401
429
Собираем анонимную аналитику посещений. Подробнее