For suppliers / API docs
Supplier API
The API has two parts: your marketplace shop (products, prices, auto-delivery keys, stock) and fulfilment of our catalogue orders. Access is issued after your supplier application is approved. For the catalogue, you push offers (cost and stock). An administrator maps them to our packages and sets priority versus other suppliers or manual fulfilment. New orders appear in your queue. You mark them fulfilled or failed. A failure or a 30-minute timeout sends the order to our staff. We send player ID and server/zone only — never the customer’s password. Login-based games are not included. The cabinet balance is accounting only; payouts are recorded by an administrator, with no real money movement here.
Base URL and auth
Authorization: Bearer ogppsup_… https://ogpixelpay.com/api/v1/supplier
Issue, rotate or revoke the key in the supplier cabinet (/account?tab=supplier). The full key is shown only once. An optional IP allowlist is set by an administrator.
Key permissions (scopes)
When you issue a key, choose what it may do. A request outside the key’s permissions gets 403. Keys issued before permissions existed have all of them.
| scope | Allows |
|---|---|
| products:read | GET products and masked keys |
| products:write | Create offers, prices, auto-delivery, delivery time, stock, low-stock threshold, pause |
| keys:write | Upload and delete auto-delivery keys |
| orders | Catalogue offers and the order queue below |
Marketplace: your products
Same rules as “My shop” in the cabinet. New prices go to moderation (unless your shop is trusted); delivery settings, stock and pause apply at once. If an administrator fixed the delivery mode of a product, modeSetByAdmin is true and changing it returns 403. Manual delivery time is 1–24 hours.
GET /api/v1/supplier/products # all your products
GET /api/v1/supplier/products?slug=pubg-keys
GET /api/v1/supplier/products?available=1 # cards you can sell
POST /api/v1/supplier/products # create / change prices
{ "slug": "pubg-keys", "prices": { "uc60": 95, "uc325": 450 },
"autoDelivery": true, "lowStock": 5, "deliveryNote": "Redeem at …" }
PATCH /api/v1/supplier/products # no moderation
{ "slug": "pubg-keys", "autoDelivery": false, "deliveryHours": 2 }
{ "slug": "pubg-keys", "lowStock": 10, "paused": false }
{ "slug": "pubg-keys", "stock": { "uc60": 40, "uc325": null } } # manual mode; null = unlimitedResponse: { product } with status (pending / approved / rejected, reason), paused, autoDelivery, deliveryMode, deliveryHours, modeSetByAdmin, lowStock, deliveryNote and packages[] — id, title, price, pendingPrice, stock, soldOut, low. With auto-delivery, stock is the number of keys; at zero the package pauses itself and resumes after an upload.
Marketplace: auto-delivery keys
GET /api/v1/supplier/keys?slug=pubg-keys&pkg=uc60 # masked list
POST /api/v1/supplier/keys
{ "slug": "pubg-keys", "pkg": "uc60", "keys": ["AAAA-BBBB-CCCC", "DDDD-EEEE-FFFF"] }
{ "slug": "pubg-keys", "pkg": "uc60", "text": "code
AAAA-1
AAAA-2", "format": "csv" }
→ { "added": 2, "duplicates": 0, "total": 42, "product": { … } }
DELETE /api/v1/supplier/keys
{ "slug": "pubg-keys", "pkg": "uc60", "id": "<id from GET>" }Up to 2000 keys per request. Duplicates (already in stock or repeated) are skipped and counted. For csv the first column is used and a header row is skipped. Keys are stored encrypted and are never returned in full. Uploading is refused while the product uses manual delivery.
Errors and rate limits
Errors come as { error: "…" } with HTTP 400 (bad input), 401 (no or wrong key), 403 (no permission, IP not allowed, paused partner, admin decision), 404, 409 or 429. Limits per key: reading 120/min, writing 60/min, key uploads 30 per 10 minutes.
Catalogue offers (scope orders)
GET /api/v1/supplier/offers
PUT /api/v1/supplier/offers
{ "offers": [{ "id": "uc60", "name": "60 UC", "costUsd": 0.85, "stock": 100 }], "replace": false }costUsd is your cost in USD. stock may be null (unlimited). deleted: true removes an offer. replace: true replaces the whole catalogue.
Catalogue orders (scope orders)
GET /api/v1/supplier/orders?status=pending
GET /api/v1/supplier/orders?id=ord_…
POST /api/v1/supplier/orders
Idempotency-Key: <optional unique key>
{ "id": "ord_…", "action": "fulfill", "note": "optional" }
{ "id": "ord_…", "action": "fail", "note": "out of stock" }The order payload includes playerId, server and zone when needed. It never includes a password. Repeating the same Idempotency-Key does not apply the result twice. Rate limits: 120 requests per minute.
Optional webhook
If you set an HTTPS URL in the cabinet, we POST { event: "order.pending", order } with header X-OGPP-Signature (HMAC-SHA256 of the raw body, using the signing secret issued once in the cabinet).




