Уважаемые клиенты! На текущий момент доступна оплата только через T‑Bank. Остальные платёжные решения будут подключаться постепенно — о каждом запуске мы обязательно сообщим отдельно.

Wholesale and API / API docs

Wholesale API

This documentation is public; the API key is issued after your wholesale application is approved. You prepay a partner balance in RUB held by us and place orders at your wholesale prices, shown in the cabinet and in /catalog. Only auto-delivery items that you picked in your assortment and we approved can be bought.

Base URL and auth

Authorization: Bearer ogppwh_…
https://ogpixelpay.com/api/v1/wholesale

Create, rotate or revoke the key in the wholesale cabinet (/account?tab=wholesale). The full key is shown only once.

The API is meant for server-to-server calls: send requests from your backend and keep the key there. An Origin header is not required and does not matter — access is decided by the key only; cookies are not accepted. Calls straight from a browser page are not supported (no CORS), so the key never ends up in a web page. GET on the base URL returns the API version and the list of endpoints without a key.

Assortment and approval

GET    /api/v1/wholesale/assortment?section=games|cards|keys&status=none|pending|approved|rejected
GET    /api/v1/wholesale/assortment?slug=pubg-mobile        # one item and its status
POST   /api/v1/wholesale/assortment
{ "slugs": ["pubg-mobile", "steam-wallet"] }
→ { "added": 2, "pending": ["pubg-mobile", "steam-wallet"] }
DELETE /api/v1/wholesale/assortment
{ "slug": "steam-wallet" }                                   # withdraw a request or remove an item

GET returns our whole auto-delivery catalogue with your prices and the status of each item: null (not picked), pending, approved or rejected (with reason). POST submits items for approval; rejected items may be resubmitted. An administrator approves or rejects each item; only approved items appear in /catalog and can be ordered. The same is available in the cabinet (/account?tab=wholesale).

Catalogue and prices

GET /api/v1/wholesale/catalog

Returns your partner balance (RUB) and the packages of approved auto-delivery items with your prices. priceRub is what will be charged.

Place an order

POST /api/v1/wholesale/orders
Idempotency-Key: <optional unique key, up to 80 chars>

{
  "gameSlug": "pubg-mobile",
  "pkgId": "uc60",
  "qty": 1,
  "playerId": "…",
  "server": "…",
  "zone": "…"
}

The amount is taken from the server, never from the client. It is charged from the partner balance. The order then goes through the same fulfilment pipeline as the site (auto-delivery when mapped, otherwise the staff queue). Repeat a request with the same Idempotency-Key within 7 days to get the original order (with idempotent: true) instead of a second charge — this holds even if the first response was lost. While the first request is still running, a repeat gets 409: retry a bit later. Quantity: 1–100. Rate limits: 120 requests and 30 orders per minute.

Order status

GET /api/v1/wholesale/orders
GET /api/v1/wholesale/orders?id=ord_…

Errors and rate limits

Errors come as { error: "…" } with HTTP 400 (bad input or limit), 401 (no or wrong key), 402 (insufficient balance), 403 (item not approved, paused partner), 404 or 429. Limits: reading 120 requests per minute per key and IP; assortment changes 30 per minute; orders 30 per minute.

Top up the balance

The balance is kept in RUB and topped up in the cabinet: create an invoice for the amount you need, it is credited automatically once paid. Crediting is idempotent; invoices expire in one hour.

Open the wholesale cabinet