ProPass Reseller REST API
Integrate automated digital subscription fulfillment directly into your Telegram bot, website, or reseller platform. Real-time stock, wholesale reseller pricing, atomic wallet billing, and instant 24/7 delivery.
๐ Authentication & Onboarding
Reseller API access is approval-gated. Open @digi_propass_bot, tap ๐ Reseller API โ ๐ Request Access. Once approved by Admin, generate your pp_live_... API key and top up your wallet via instant KHQR (no minimum).
| Header | Required | Format |
|---|---|---|
Authorization |
Yes (or X-API-Key) |
Authorization: Bearer pp_live_YOUR_API_KEY |
X-API-Key |
Alternative | X-API-Key: pp_live_YOUR_API_KEY |
Idempotency-Key |
Recommended on POST /orders |
Unique order reference (e.g. myshop_order_10482). Prevents duplicate charges on retries. |
Content-Type |
Yes on POST |
application/json |
?api_key=...) โ requests with keys in the query string are rejected with HTTP 400. Always send keys via HTTP headers over HTTPS.
๐ก API Endpoints
Retrieve your reseller account status, wallet balance, 30-day spend, and rate limits.
{
"ok": true,
"account": {
"id": "rsl_m8x9k2",
"status": "approved",
"handle": "@yourhandle",
"balance": 42.50,
"currency": "USD",
"extraDiscountPercent": 0,
"totalApiOrders": 18,
"spend30d": 64.20,
"rateLimitPerMinute": 60,
"apiKeyMasked": "pp_live_a8f12c...9d04e1"
}
}
Fast check for your current available USD wallet balance.
{
"ok": true,
"balance": 42.50,
"currency": "USD",
"totalOrders": 18,
"spend30d": 64.20
}
List all products enabled for your reseller account with live stock counts and your wholesale reseller price.
{
"ok": true,
"count": 2,
"currency": "USD",
"products": [
{
"id": "prod_mvzfpcnm",
"name": "500$ API Claude 30D",
"category": "๐ค AI & Chat",
"description": "500$ API Claude - 30 days...",
"price": 8.50,
"retailPrice": 12.50,
"currency": "USD",
"stock": 4,
"inStock": true,
"deliveryType": "instant"
}
]
}
Fetch live stock and current wholesale price for a single product ID before placing an order.
Place an automated order deducted from your USD wallet. Always include a unique Idempotency-Key header per customer order so network retries never double-charge.
// Request Body
{
"productId": "prod_mvzfpcnm",
"quantity": 1
}
// 200 OK โ Instant Delivery Response
{
"ok": true,
"order": {
"orderCode": "ORRS-48291034",
"productId": "prod_mvzfpcnm",
"productName": "500$ API Claude 30D",
"quantity": 1,
"unitPrice": 8.50,
"total": 8.50,
"currency": "USD",
"status": "completed",
"items": ["YOUR_DELIVERED_KEY_OR_LINK"],
"value": "YOUR_DELIVERED_KEY_OR_LINK",
"idempotencyKey": "myshop_1001",
"refunded": false,
"createdAt": "2026-11-26T05:30:00.000Z",
"completedAt": "2026-11-26T05:30:02.150Z"
},
"balanceAfter": 34.00
}
"refunded": true). For async products (HTTP 202, "status": "pending"), simply poll GET /v1/orders/:orderCode every 10โ15 seconds until "status": "completed".
List your order history (?limit=25&offset=0&status=completed) or fetch a single order by orderCode or your Idempotency-Key.
โก Quick Start Examples
# 1. Check live reseller catalog & wholesale prices
curl -H "Authorization: Bearer pp_live_YOUR_KEY" \
"https://api.propass.store/v1/products"
# 2. Place an order with Idempotency-Key
curl -X POST "https://api.propass.store/v1/orders" \
-H "Authorization: Bearer pp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order_10001" \
-d '{"productId":"prod_mvzfpcnm","quantity":1}'
const API_KEY = process.env.PROPASS_API_KEY;
const BASE = 'https://api.propass.store/v1';
// Place order (Node 18+ native fetch)
const res = await fetch(`${BASE}/orders`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': `my_order_${Date.now()}`
},
body: JSON.stringify({ productId: 'prod_mvzfpcnm', quantity: 1 })
});
const data = await res.json();
if (data.ok && data.order.status === 'completed') {
console.log('Delivered:', data.order.items);
}
import requests
API_KEY = "pp_live_YOUR_KEY"
HEADERS = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
"Idempotency-Key": "my_order_10001"
}
r = requests.post(
"https://api.propass.store/v1/orders",
headers=HEADERS,
json={"productId": "prod_mvzfpcnm", "quantity": 1},
timeout=30
)
data = r.json()
print(data)
<?php
$ch = curl_init('https://api.propass.store/v1/orders');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer pp_live_YOUR_KEY',
'Content-Type: application/json',
'Idempotency-Key: my_order_10001'
],
CURLOPT_POSTFIELDS => json_encode(['productId' => 'prod_mvzfpcnm', 'quantity' => 1])
]);
$response = json_decode(curl_exec($ch), true);
print_r($response);
โ ๏ธ Error Codes
| HTTP | Error Code | Meaning |
|---|---|---|
400 | invalid_product_id / invalid_quantity / key_in_query_forbidden | Invalid request payload or API key placed in URL query string. |
401 | missing_api_key / invalid_api_key | Missing, invalid, or rotated API key. |
402 | insufficient_balance | Wallet balance is below order total. Top up via KHQR in @digi_propass_bot. |
403 | reseller_not_active | Account pending approval or suspended. |
404 | product_not_found / order_not_found | Product disabled/unknown or order not found. |
409 | out_of_stock | Requested quantity exceeds live stock (wallet automatically refunded if debited). |
429 | rate_limit_exceeded | Exceeded 60 requests/minute per key. Check Retry-After header. |
502 | fulfillment_failed | Upstream supplier error โ wallet is automatically refunded (refunded: true). |