API v1 //
📚 توثيق API SMMFedex Store
اربط متجرك أو بوتك بخدماتنا كمزود. كل طلب بيتخصم من رصيدك في البوت، والأسعار بعملة حسابك.
المصادقة / Authentication
اعمل المفتاح من زر «🔑 مفاتيح API» في البوت. المفتاح بيظهر مرة واحدة، وإعادة الإنشاء بتلغي القديم فورًا.
Base URL: https://smmfedex-store.botzaro.com/api/v1 Authorization: Bearer bk_xxxxxxxxxxxxxxxx # or X-API-Key: bk_xxxxxxxxxxxxxxxx
GET
/balanceالرصيد
رصيدك الحالي بعملة حسابك.
Response
{"balance": "12.50", "currency": "USD", "user_id": 123456789, "username": "store"}
GET
/servicesالخدمات
كل الخدمات المتاحة مع السعر والحد الأدنى والأقصى والمخزون والحقول المطلوبة. stock = عدد المتاح الآن (null = بدون حد)، in_stock = متاح للطلب ولا لأ.
Response
{"currency": "USD", "services": [{"id": 12, "name": "ChatGPT Go — 3 Month", "category": "Chat GPT", "type": "stock", "price": "6.56", "currency": "USD", "min": 1, "max": 5, "stock": 2, "in_stock": true, "warranty_days": 90, "fields": [], "description": "..."}]}
POST
/ordersطلب جديد
ينشئ الطلب ويخصم الرصيد. خدمات المخزون بتتسلم في نفس الرد داخل delivered.
Request body (JSON)
{"service_id": 12, "quantity": 1, "fields": {"email": "client@mail.com"}}
Response
{"order_id": 1773, "status": "completed", "charged": "6.56", "currency": "USD", "delivered": ["email@x.com | pass123"]}
GET
/orders/{order_id}حالة الطلب
الحالة وبيانات التسليم. الحالات: pending, processing, completed, partial, refunded, failed, canceled.
Response
{"order_id": 1773, "status": "completed", "delivered": ["..."], "refunded": "0.00"}
الأخطاء / Errors
401 invalid key · 402 not enough balance · 404 not found · 409 out_of_stock / service_unavailable · body: {"error": "..."}
مثال curl
curl -H "Authorization: Bearer YOUR_KEY" https://smmfedex-store.botzaro.com/api/v1/services
curl -X POST https://smmfedex-store.botzaro.com/api/v1/orders \
-H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
-d '{"service_id": 12, "quantity": 1}'