SUB | GEARUP • AI TOOLS — Reseller API v1 Auth: send header X-API-Key: YOUR_API_KEY (create the key inside the bot). POST /orders: Content-Type: application/json. Optional header X-Idempotency-Key: reuse the same value when retrying the same purchase — you will not be charged twice. ## Account info GET https://pay.windstore.online/api/reseller/v1/account/info Response: { "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/balance Response: { "ok": true, "balance": "250.00", "currency": "EGP" } ## Products GET https://pay.windstore.online/api/reseller/v1/products Response: { "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/orders 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/orders Response: { "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": "...", "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). Delivered goods are in order.value (codes separated by new lines) and order.items (list).