Connect your own website to AroraShop. When a customer orders on your site, send the order here. We deliver it automatically and take the price from your wallet.
Base URL: https://reseller.arorashop.com/api/v1
Auth: header X-API-Key: YOUR_KEY (create it on the Developer & Telegram page)
Format: JSON in, JSON out. Every answer has "ok": true or "ok": false with an "error" message.
Limit: 120 requests per minute.
GET /products and save the package key values you want to sell.POST /orders with the package key, the player fields and your own order number as reference.GET /orders/{id} every 30 to 60 seconds until the status is final.curl https://reseller.arorashop.com/api/v1/balance -H "X-API-Key: YOUR_KEY"
{"ok":true,"balance":5230.5,"currency":"BDT","account_status":"active"}
All products you can sell, with packages and your price in taka. Optional query: type=top_up or type=gift_card, search=pubg.
{"ok":true,"products":[{
"key":"topup-1","name":"PUBG Mobile UC","type":"top_up","region":"Global","image":"https://...",
"packages":[{"key":"topup-1-1","name":"60 UC","price":133,"currency":"BDT","type":"topup",
"fields":[{"key":"player_id","label":"Player ID","type":"text","options":[]}]}]
}]}
Prices follow the supplier's dollar price and can change. Read the list again at least once a day.
One product with its packages.
| Field | Required | About |
|---|---|---|
package | yes | Package key from /products |
quantity | no | Default 1, maximum 10 |
fields | for top ups | Object with every field key of the package, for example {"player_id":"5123456789"}. Select fields must use one of the given options. |
reference | recommended | Your own order number. Sending the same reference again returns the first order and never charges twice, so retries are safe. |
curl -X POST https://reseller.arorashop.com/api/v1/orders \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"package":"topup-1-1","quantity":1,"fields":{"player_id":"5123456789"},"reference":"MYSHOP-1001"}'
{"ok":true,"balance":5097.5,"order":{"id":812,"reference":"MYSHOP-1001","status":"processing",
"product":"PUBG Mobile UC","package":"60 UC","quantity":1,"unit_price":133,"total":133,
"refunded":0,"fields":{"player_id":"5123456789"},"codes":[],"message":null, ...}}
Errors come back with HTTP 422 and a message you can show, for example not enough balance or a missing field.
curl https://reseller.arorashop.com/api/v1/orders/MYSHOP-1001 -H "X-API-Key: YOUR_KEY"
Your orders, newest first. Query: status, page, per_page (max 100).
| Status | Meaning |
|---|---|
processing | Sent to delivery. Most top ups finish within a few minutes. |
review | The supplier is checking it. It will end as completed or failed. |
completed | Delivered. For gift cards the codes are in codes. |
partial | Some units were delivered. The price of the failed units is back in your wallet (refunded). |
failed | Not delivered. The full price is back in your wallet. |
Set a webhook URL (https) on the Developer page. When an order changes status we send a POST:
{"event":"order.updated","data":{"order":{ ...same as above... }},"sent_at":"2026-11-25T10:00:00+06:00"}
Check the X-Signature header. It is the HMAC-SHA256 of the raw body with your webhook secret:
<?php
$body = file_get_contents('php://input');
$sig = hash_hmac('sha256', $body, 'YOUR_WEBHOOK_SECRET');
if (!hash_equals($sig, $_SERVER['HTTP_X_SIGNATURE'] ?? '')) { http_response_code(401); exit; }
$event = json_decode($body, true);
// update your order with $event['data']['order']['reference'] and ['status']
http_response_code(200);
Answer within 6 seconds. A webhook can be missed, so also check GET /orders/{id} for orders that stay open.
<?php
function arora($method, $path, $data = null) {
$ch = curl_init('https://reseller.arorashop.com/api/v1' . $path);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 30, CURLOPT_CUSTOMREQUEST => $method,
CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_KEY', 'Content-Type: application/json'],
]);
if ($data !== null) curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
return $res;
}
$order = arora('POST', '/orders', [
'package' => 'topup-1-1', 'quantity' => 1,
'fields' => ['player_id' => '5123456789'], 'reference' => 'MYSHOP-1001',
]);
if (!$order['ok']) echo $order['error'];