SUB | GEARUP • AI TOOLS — Reseller API
Public contract only. API keys and customer data are never shown here. Plain-text docs
Base URL
https://pay.windstore.online/api/reseller/v1Common headers
| Header | Description |
|---|---|
X-API-Key | Required. Your key — generate it in the bot: «Reseller API». |
Content-Type | application/json for POST /orders. |
X-Idempotency-Key | Strongly recommended for POST /orders. Reuse the same value when retrying the same purchase — no double charge. |
Endpoints
Account info
GET
https://pay.windstore.online/api/reseller/v1/account/infoResponse
{
"ok": true,
"ownerUserId": 123456789,
"store": "SUB | GEARUP • AI TOOLS",
"apiVersion": "v1",
"ordersEnabled": true,
"currency": "EGP",
"balance": "250.00",
"note": "Orders use your store balance and return delivered digital goods."
}Balance
GET
https://pay.windstore.online/api/reseller/v1/account/balanceResponse
{
"ok": true,
"balance": "250.00",
"currency": "EGP"
}Products
GET
https://pay.windstore.online/api/reseller/v1/productsResponse
{
"ok": true,
"products": [
{
"id": 1,
"productId": 1,
"name": "ChatGPT Plus 1 Month",
"title": "ChatGPT Plus 1 Month",
"description": "Private account — full warranty",
"price": "70.00",
"currency": "EGP",
"stock": 12,
"inStock": true
}
]
}Product detail
GET
https://pay.windstore.online/api/reseller/v1/products/{productId}Response
{
"ok": true,
"product": {
"id": 1,
"productId": 1,
"name": "ChatGPT Plus 1 Month",
"price": "70.00",
"currency": "EGP",
"stock": 12,
"inStock": true
}
}Create order
POST
https://pay.windstore.online/api/reseller/v1/ordersRequest body
{
"productId": 1,
"quantity": 1
}Response
{
"ok": true,
"order": {
"orderCode": "ORD-5450-K9X",
"productId": 1,
"name": "ChatGPT Plus 1 Month",
"quantity": 1,
"status": "completed",
"total": "70.00",
"currency": "EGP",
"value": "DELIVERED_DIGITAL_PRODUCT",
"createdAt": "2026-10-22T21:00:00+03:00"
}
}Orders
GET
https://pay.windstore.online/api/reseller/v1/ordersResponse
{
"ok": true,
"orders": [
{
"orderCode": "ORD-5450-K9X",
"productId": 1,
"quantity": 1,
"status": "completed",
"total": "70.00",
"error": null,
"createdAt": "2026-10-22T21:00:00+03:00"
}
]
}Order detail
GET
https://pay.windstore.online/api/reseller/v1/orders/{orderCode}Response
{
"ok": true,
"order": {
"orderCode": "ORD-5450-K9X",
"productId": 1,
"quantity": 1,
"status": "completed",
"total": "70.00",
"value": "DELIVERED_DIGITAL_PRODUCT",
"error": null,
"createdAt": "2026-10-22T21:00:00+03:00",
"updatedAt": "2026-10-22T21:00:00+03:00"
}
}Errors
{"ok": false, "error": "invalid_api_key", "message": "API key is invalid or disabled.", "requestId": "req_..."}
401 missing_api_key, 401 invalid_api_key, 400 invalid_json, 400 invalid_product_id, 400 invalid_quantity, 402 insufficient_funds, 404 product_not_found, 404 order_not_found, 409 out_of_stock, 400 supplier_purchase_failed (balance refunded automatically).
Example
curl -X POST "https://pay.windstore.online/api/reseller/v1/orders" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Idempotency-Key: order-1001" \
-d '{"productId":1,"quantity":1}'بالعربي
١) حط مفتاحك في الهيدر X-API-Key في كل طلب.
٢) افتح رابط Products وخد productId.
٣) ابعت POST لرابط Orders فيه productId و quantity.
٤) سلّم للزبون order.value — ده الكود/البيانات.
الأسعار بالعملة اللي في currency وبتتخصم من رصيدك. ولو الطلب اتبعت مرتين بنفس X-Idempotency-Key مش بيتخصم مرتين.