पार्टनर डैशबोर्ड की हर चीज़ आपकी API key के साथ HTTP पर उपलब्ध है। बेस URL https://flarestore.vip है। सभी जवाब JSON में होते हैं और उनमें success होता है। पैसा हमेशा cents की पूर्णांक संख्या में होता है।

ऑथेंटिकेशन

आपकी API key

हर अनुरोध पर अपनी key को bearer token के रूप में भेजें। यह आपको डैशबोर्ड में API access के तहत मिलेगी। Key fs_pk_... जैसी दिखती हैं।

# हर अनुरोध ऐसा दिखता है curl https://flarestore.vip/api/partner/me \ -H "Authorization: Bearer fs_pk_your_key_here"

Key को पासवर्ड की तरह संभालें — यह आपका बैलेंस खर्च कर सकती है। अगर यह लीक हो जाए, तो डैशबोर्ड से इसे रोटेट करें और पुरानी key तुरंत काम करना बंद कर देगी। वेब डैशबोर्ड इसके बजाय session cookie इस्तेमाल करता है, इसलिए key रोटेट करने से आप कभी लॉग आउट नहीं होते।

रेट लिमिट: प्रति मिनट 120 GET और 60 POST, लॉगिन और स्लॉट रिडेम्पशन (30/मिनट) पर और सख़्त सीमा के साथ। सीमा पार करने पर आपको 429 मिलता है — रुकें और फिर से कोशिश करें।

अकाउंट

मैं कौन हूँ

GET /api/partner/me API KEY या SESSION

आपका अकाउंट: slug, डिस्प्ले नाम, अकाउंट टाइप, बैलेंस और रेफ़रल URL।

{ "success": true, "partner": { "slug": "yourname", "display_name": "Your Name", "account_type": "wholesale", "balance": 4250, "referral_url": "https://flarestore.vip/p/yourname" } }
POST /api/partner/me/api-key/rotate API KEY या SESSION

नई API key जारी करें। इसका जवाब आते ही पिछली key काम करना बंद कर देती है, इसलिए इसे कॉल करने से पहले अपना इंटीग्रेशन अपडेट करें।

कैटलॉग

आप क्या बेच सकते हैं, और कितने में

GET /api/partner/me/catalog API KEY या SESSION

आपके अकाउंट पर चालू हर प्लान, आपकी तय कीमत के साथ। अपना स्टोरफ़्रंट बनाने के लिए यही endpoint इस्तेमाल करें — इसमें आपके अकाउंट का प्राइसिंग मॉडल पहले से शामिल है।

होलसेल अकाउंट को your_price मिलता है:

{ "account_type": "wholesale", "plans": [ { "plan_id": "standard", "name": "Standard", "your_price": 600, "orderable": true }, { "plan_id": "ios_6m", "name": "iOS 6M Protection", "your_price": 1200, "orderable": true } ] }

एफ़िलिएट अकाउंट को इसके बजाय customer_price और your_commission मिलते हैं:

{ "account_type": "affiliate", "plans": [ { "plan_id": "standard", "name": "Standard", "customer_price": 900, "your_commission": 135 } ] }

orderable: false का मतलब है कि प्लान लिस्ट में है लेकिन अभी रिडीम नहीं किया जा सकता — जब तक यह true न हो जाए, इसे ग्राहकों को ऑफ़र न करें।

रिपोर्टिंग

बिक्री, कमाई और सर्टिफ़िकेट

GET /api/partner/me/stats API KEY या SESSION

कुल योग और हर प्लान का ब्रेकडाउन। एफ़िलिएट को कमाया गया, भुगतान किया गया और बकाया कमीशन मिलता है; होलसेलर को कुल खर्च और मौजूदा बैलेंस।

GET /api/partner/me/sales API KEY या SESSION

आपके ऑर्डर, सबसे नए पहले। ?limit= (1–200, डिफ़ॉल्ट 50) और ?offset= लेता है। ग्राहक का ईमेल और भुगतान विवरण कभी शामिल नहीं होते।

GET /api/partner/me/payouts API KEY या SESSION

सिर्फ़ एफ़िलिएट के लिए। पेआउट हिस्ट्री और अभी आपकी बकाया राशि।

GET /api/partner/me/certificates API KEY या SESSION

आपके ऑर्डर के तहत जारी हर सर्टिफ़िकेट, सबसे नए पहले। ?limit= (1–200, डिफ़ॉल्ट 100), ?offset= और ?include_revoked=true लेता है।

आपको क्या मिलता है, यह आपके ट्रैक पर निर्भर करता है। होलसेल अकाउंट अपने ग्राहकों को खुद डिलीवर करते हैं, इसलिए हर पंक्ति में p12 पासवर्ड और डाउनलोड URL होते हैं:

{ "cert_id": "a1b2c3d4e5f6", "cert_type": "distribution", "status": "active", "udid": "00008030-001A2B3C4D5E6F70", "plan_name": "Standard", "order_id": "A1B2C3D4", "p12_password": "...", "p12_url": "/api/cert/a1b2c3d4e5f6/p12?udid=...", "provision_urls": ["/api/cert/a1b2c3d4e5f6/provision/0?udid=..."] }

एफ़िलिएट अकाउंट को वही पंक्ति p12_password, p12_url या provision_urls के बिना मिलती है — उन ग्राहकों ने सीधे FlareStore से खरीदा है, इसलिए key सामग्री उनकी है, आपकी नहीं। फिर भी आप देखते हैं कि सर्टिफ़िकेट मौजूद है, उसका प्लान क्या है, और वह सक्रिय है या रद्द हो गया।

होलसेल

स्लॉट खरीदना और रिडीम करना

ये endpoint सिर्फ़ होलसेल के लिए हैं। एफ़िलिएट अकाउंट पर ये 403 लौटाते हैं।

GET /api/partner/me/balance API KEY या SESSION

आपका मौजूदा बैलेंस, cents में।

GET /api/partner/me/ledger API KEY या SESSION

बैलेंस का हर लेन-देन — टॉप-अप, स्लॉट की कटौती, रिफ़ंड और एडजस्टमेंट — हर एक के बाद बचे बैलेंस के साथ।

POST /api/partner/me/orders API KEY या SESSION

एक स्लॉट रिडीम करें। आपकी यूनिट कीमत चार्ज करता है, डिवाइस रजिस्टर करता है और प्रोविज़निंग शुरू करता है।

curl -X POST https://flarestore.vip/api/partner/me/orders \ -H "Authorization: Bearer fs_pk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"plan_id": "standard", "udid": "00008030-001A2B3C4D5E6F70"}'
curl -X POST https://flarestore.vip/api/partner/me/orders \ -H "Authorization: Bearer fs_pk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"plan_id": "watch", "udid": "00008030-001A2B3C4D5E6F70", "watch_udid": "00008310-000F45D03A7A601E"}'

iPhone + Apple Watch (बीटा): प्लान watch के लिए watch_udid (पेयर की गई Apple Watch) भी चाहिए। दोनों डिवाइस एक ही सर्टिफ़िकेट में एक साथ रजिस्टर होते हैं; udid iPhone का है। पेयर के UDID बाद में बदले नहीं जा सकते: नए iPhone या Watch के लिए नया स्लॉट चाहिए। ऑर्डर व्यू में watch_udid शामिल होता है।

ऑर्डर, आपसे लिया गया चार्ज, आपका नया बैलेंस, और एक access token लौटाता है जिससे आपका ग्राहक अपना सर्टिफ़िकेट लेता है:

{ "success": true, "order_id": "A1B2C3D4", "charged": 600, "balance": 3650, "access_token": "...", "status_url": "https://flarestore.vip/api/order-status?token=..." }

प्रोविज़निंग एसिंक्रोनस है। सर्टिफ़िकेट तैयार होने तक status_url या /me/orders/{order_id} को पोल करें। अगर प्रोविज़निंग शुरू नहीं हो पाती, तो आपका बैलेंस अपने आप रिफ़ंड हो जाता है — जो स्लॉट आपको नहीं मिला, उसके लिए आपसे कभी चार्ज नहीं लिया जाता।

दोबारा कोशिश और डुप्लिकेट ऑर्डर। एक Idempotency-Key header भेजें (1–200 प्रिंट होने वाले अक्षर, कोई स्पेस नहीं, हर ऑर्डर के लिए अलग, जैसे UUID) ताकि दोबारा भेजा गया अनुरोध स्लॉट को दो बार न खरीदे। उसी key को उसी body के साथ दोहराने पर मूल जवाब लौटता है, बिना बदलाव और बिना दोबारा चार्ज के, header Idempotent-Replayed: true के साथ। उसी key को अलग body के साथ भेजने पर 422 के साथ मना कर दिया जाता है; जब तक पहला अनुरोध चल रहा है, दोहराए गए अनुरोध को 409 मिलता है। नाकाम अनुरोध अपनी key छोड़ देता है। Key 7 दिनों तक रखी जाती हैं।

Key के बिना, उसी प्लान पर 10 मिनट के भीतर वही UDID फिर से रिडीम करने पर नया ऑर्डर बनने के बजाय मौजूदा ऑर्डर लौटता है: charged 0 होता है, duplicate_of उस ऑर्डर का नाम बताता है, और Idempotent-Replayed: true सेट होता है। रिफ़ंड हुए या नाकाम ऑर्डर नहीं गिने जाते। अगर आपको जानबूझकर उसी डिवाइस को जल्दी फिर से रिडीम करना है, तो अपने अकाउंट के लिए इसे बंद करवाने के लिए हमसे कहें।

POST /api/partner/me/signing-settings API KEY या SESSION

UDID को फिर से साइन करने से पहले पूछें। डिफ़ॉल्ट रूप से बंद: एक UDID कितनी भी बार साइन हो सकता है। इसे चालू करें तो POST /me/orders ऐसे UDID को, जिसे आप पहले साइन कर चुके हैं (कोई भी प्लान, कोई भी तारीख; रिफ़ंड हुए या नाकाम ऑर्डर नहीं गिने जाते), बिना चार्ज किए 409 और "error": "already_signed" के साथ मना कर देता है। फिर भी साइन करने के लिए वही अनुरोध "confirm_resign": true के साथ फिर से भेजें। यह वही स्विच है जो रीसेलर पैनल में Account › Signing the same UDID again पर है।

curl -X POST https://flarestore.vip/api/partner/me/signing-settings \ -H "Authorization: Bearer fs_pk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"ask_before_resign": true}'

GET मौजूदा वैल्यू लौटाता है। सिर्फ़ होलसेल अकाउंट के लिए।

409 उस UDID के आपके पिछले ऑर्डर दिखाता है, सबसे नए पहले:

{ "success": false, "error": "already_signed", "detail": "You already signed this UDID (order A1B2C3D4). You were not charged. ...", "count": 1, "orders": [{ "order_id": "A1B2C3D4", "plan_id": "basic", "created_at": "2026-11-22T15:28:00Z", "seconds_ago": 120 }] }

ऊपर बताई गई 10 मिनट की डुप्लिकेट जाँच फिर भी पहले चलती है, इसलिए 10 मिनट के भीतर एक जैसा दोबारा अनुरोध confirm_resign के साथ भी मौजूदा ऑर्डर लौटाता है (बिना चार्ज)।

GET /api/partner/me/orders/{order_id} API KEY या SESSION

आपके अपने किसी ऑर्डर का स्टेटस, डिवाइस और प्रोविज़निंग की स्थिति समेत। किसी दूसरे पार्टनर के ऑर्डर 404 लौटाते हैं।

WHOLESALE

Notes on orders, UDIDs and certificates

Keep your own reference (customer name, your order number…) with each slot. A note is plain text, up to 500 characters, private to your account: your customer never sees it. It belongs to the order, so it covers that UDID and every certificate issued on it. It is returned as note in /me/sales, /me/orders/{order_id}, /me/certificates and /me/recent-redeems. Control and invisible characters are removed; an empty note clears it. Wholesale accounts only; an order that isn't yours is a 404.

POST /api/partner/me/orders API KEY OR SESSION

Add "note" when you redeem. A note that is too long is refused with 400 before anything is charged.

curl -X POST https://flarestore.vip/api/partner/me/orders \ -H "Authorization: Bearer fs_pk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"plan_id": "standard", "udid": "00008030-001A2B3C4D5E6F70", "note": "Ali K. / shop order 5521"}'
PUT /api/partner/me/notes API KEY OR SESSION

Set or change a note later. Name the slot with exactly one of order_id, cert_id or udid. A UDID you redeemed more than once answers 409 several_orders with the order ids: send one of them, or "all": true to note every order of that UDID.

curl -X PUT https://flarestore.vip/api/partner/me/notes \ -H "Authorization: Bearer fs_pk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"cert_id": "c36f52ee-d31", "note": "replacement sent 30 Nov"}'

GET /api/partner/me/notes?udid=… (or ?order_id= / ?cert_id=) reads them back:

{ "success": true, "count": 1, "notes": [{ "order_id": "A1B2C3D4", "receipt_number": "FSW1234-5678", "udid": "00008030-001A2B3C4D5E6F70", "cert_ids": ["c36f52ee-d31"], "note": "replacement sent 30 Nov", "note_updated_at": "2026-11-30T12:00:00Z" }] }

Per order: GET, PUT ({"note": "..."}) and DELETE /api/partner/me/orders/{order_id}/note.

WHOLESALE

Sign an app from an IPA URL

Sign any IPA with one of your certificates without downloading or uploading anything: send the link, get an install link back.

POST /api/partner/me/sign API KEY OR SESSION

Body: ipa_url plus cert_id (or order_id: its active distribution certificate is used first). Optional bundle_id, app_name. The certificate must be an active one of yours.

curl -X POST https://flarestore.vip/api/partner/me/sign \ -H "Authorization: Bearer fs_pk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"cert_id": "c36f52ee-d31", "ipa_url": "https://example.com/MyApp.ipa"}'
{ "success": true, "install_url": "https://flarestore.app/i/abc123", "cert_id": "c36f52ee-d31", "order_id": "A1B2C3D4" }

The link must be https:// on port 443, publicly reachable, and lead (after at most 5 redirects) to the .ipa itself; max 500 MB, downloaded within 10 minutes. Links to private, internal or cloud-metadata addresses, links with a user name or password, archives that unpack to more than 8 GB, have more than 200,000 files, look like zip bombs or contain unsafe paths are refused with 400 (too large: 413). One signing at a time per account and 30 per hour (429 above that). The install link stays valid for 48 hours.

एरर

स्टेटस कोड

कोडमतलबक्या करें
400गलत अनुरोध — फ़ील्ड गायब है या गलत फ़ॉर्मैट में हैbody जाँचें; मैसेज समस्या बताता है
401कोई क्रेडेंशियल नहींAuthorization header भेजें
402बैलेंस कम हैटॉप अप करें; मैसेज में कमी की राशि बताई जाती है
403अमान्य key, या इस endpoint के लिए गलत अकाउंट टाइपkey और अपना ट्रैक जाँचें
404नहीं मिला, या आपका नहीं हैपक्का करें कि ID आपके अकाउंट की है
409प्लान अभी रिडीम नहीं हो सकताबाद में फिर कोशिश करें या कोई दूसरा प्लान चुनें
409UDID आप पहले ही साइन कर चुके हैं (दोबारा साइन से पहले पूछना चालू है) — already_signedअगर आप यही चाहते थे, तो "confirm_resign": true के साथ फिर से भेजें
429रेट लिमिट हो गईरुकें और फिर से कोशिश करें
500हमारी गलतीआपसे चार्ज नहीं लिया गया। फिर से कोशिश करें, फिर हमें बताएँ

एरर में इंसानों के पढ़ने लायक detail होता है — इसे लॉग करें, यह आमतौर पर ठीक-ठीक बताता है कि क्या गलत है।