nfa.my

NFA.MY PARTNERS

Reseller panel

Connect your server to our catalogue and stock using your own API key. Read the catalogue, check your balance, and place orders using a purchase-enabled key.

Checking your sign-in…

API documentation

v1 · Reseller API

Authentication

Send your key in Authorization: Bearer YOUR_API_KEY or X-Api-Key. Never put keys in a URL, browser script or public repository. HTTPS only.

curl 'https://nfa.my/api/reseller-v1.php?resource=catalog&page=1&limit=50' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Purchases and delivery

Create a new key with Enable purchases selected. Existing catalogue-only keys cannot spend funds or read deliveries. Top up your nfa.my balance on the website first. No credit or overdraft is offered.

GET ?resource=balance returns your available balance_cents. POST ?resource=orders creates and pays for an order. Send a unique Idempotency-Key header (16–128 letters, digits, underscores or hyphens) for each intended order. Always reuse the same key and identical body after timeouts; never generate a new key just because a response was lost.

curl 'https://nfa.my/api/reseller-v1.php?resource=orders' \
 -H 'Authorization: Bearer YOUR_PURCHASE_KEY' \
 -H 'Content-Type: application/json' \
 -H 'Idempotency-Key: your-unique-order-0001' \
 --data '{"items":[{"id":"PRODUCT_ID_FROM_CATALOG","quantity":1}],"expected_total_cents":450}'

Use actual product IDs and the sum of discounted catalogue unit prices × quantities. The example amount is illustrative. Prices, stock and balance are verified on the server. Coupons, client-supplied prices and customer IDs are not accepted. At most 10 distinct products and 100 total units per order. Existing checkout throttling also applies (6 new orders per minute per customer).

A successful response contains order.id, order.state, charged amounts and your remaining balance. paid or processing means accepted, not delivered. Retrieve GET ?resource=order&order_id=ORDER_ID until a terminal state. Delivered items contain accounts; manual licenses stay pending until staff delivery. Partial or failed fulfillment follows the existing wallet refund process. HTTP 200 alone does not mean delivery is complete.

GET ?resource=orders&page=1&limit=25 lists your API orders from the existing latest-100-order customer index; retain returned order IDs to retrieve older orders directly. List responses omit credentials; single-order responses include only your own delivered credentials. Poll no faster than once every 10 seconds. Keep responses and keys private on your server.

Purchase errors: 400 invalid cart / missing idempotency key · 401 invalid key or missing scope · 403 reseller disabled / customer blocked · 404 order not found · 409 insufficient balance, changed price/stock, idempotency conflict or expired checkout · 429 too many requests · 503 temporarily unavailable. Retry the same intended request with the same idempotency key. For a changed cart or newly accepted price, use a new key only after confirming the previous order was not accepted. API and website order idempotency are separated.

Endpoints

GET /api/reseller-v1.php?resource=catalog — names, descriptions, variants, categories, EUR prices and stock.

GET /api/reseller-v1.php?resource=stock — product IDs, stock and fulfilment mode.

Optional parameters: page (default 1), limit (1–100, default 50), game (category), product_id (exact ID). Filters apply before pagination. Streaming category: streaming-services.

{"ok":true,"data":[...],"total":32,"page":1,"limit":50,
 "pages":1,"updated_at":1794350000,"stale":false,"read_only":true}

Response above illustrates the format. Actual products and values come from the existing shop catalogue. Prices use integer price_cents: 500 = €5.00. This is the reseller price after a 10% discount. retail_price_cents is the normal shop price; discount_percent is 10. For example, a €5.00 shop product is €4.50 in the API catalogue. Ordinary website checkout prices are unchanged. API orders use these discounted unit prices and do not stack coupons or referral checkout discounts. Stock can change before checkout. stale: true means the latest source refresh could not be confirmed. Manual delivery stock represents sourcing availability, not a warehouse license count. Cache locally for 60 seconds; back off on errors. An additional abuse limit applies per server IP.

Errors: 400 invalid parameters · 401 invalid, expired or revoked key / inactive access · 405 method not allowed · 429 rate limit (respect Retry-After) · 503 catalogue temporarily unavailable. No reseller webhook is enabled; poll your order to retrieve delivery.

Rotate keys by creating a replacement, updating your server and revoking the old key. Disabling a reseller immediately blocks access and revokes their keys.

Save your API key now

This is the only time the full key is displayed. It will not be retrievable later.

Revoke API key?

Requests using this key will stop working. Create a new key if you need access again.