{"openapi":"3.0.3","info":{"title":"MailStock Reseller REST API v1","version":"1.0.0","description":"Automated API for checking aged 12–36 month Hotmail & Outlook OAuth2 stock, verifying Binance Pay wallet deposits, placing orders (1 to 10,000 units), and retrieving delivered token batches.","contact":{"name":"MailStock Support","url":"https://mailstock.shop/support","email":"support@mailstock.shop"},"termsOfService":"https://mailstock.shop/terms"},"servers":[{"url":"https://mailstock.shop","description":"MailStock Production API"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Reseller API Key (ms_live_...) passed via Authorization: Bearer or X-API-Key header"}},"schemas":{"ErrorResponse":{"type":"object","properties":{"ok":{"type":"boolean","example":false},"error":{"type":"string"}}},"OrderRequest":{"type":"object","required":["type","quantity"],"properties":{"type":{"type":"string","enum":["Hotmail","Outlook","Mixed"]},"quantity":{"type":"integer","minimum":1,"maximum":10000,"example":100},"clientRef":{"type":"string","maxLength":64}}},"OrderResponse":{"type":"object","properties":{"ok":{"type":"boolean","example":true},"orderRef":{"type":"string","example":"MS-A1B2C3D4E5"},"type":{"type":"string"},"quantity":{"type":"integer"},"totalUsd":{"type":"string","example":"1.49"},"accounts":{"type":"array","items":{"type":"string"}},"rawText":{"type":"string"},"downloadTxtUrl":{"type":"string"}}},"DepositRequest":{"type":"object","required":["txId"],"properties":{"txId":{"type":"string","minLength":6,"maxLength":64}}}}},"paths":{"/api/v1/stock":{"get":{"summary":"Live available Hotmail & Outlook stock and volume pricing tiers","responses":{"200":{"description":"Live stock inventory and rate tiers"}}}},"/api/v1/balance":{"get":{"security":[{"bearerAuth":[]}],"summary":"Get authenticated reseller USDT wallet balance","responses":{"200":{"description":"Wallet balance in USD and cents"},"401":{"description":"Invalid or missing API key"}}}},"/api/v1/wallet/deposit":{"post":{"security":[{"bearerAuth":[]}],"summary":"Verify a Binance Pay TxID and credit reseller wallet balance","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositRequest"}}}},"responses":{"200":{"description":"Deposit verified and credited"},"409":{"description":"Transaction ID already claimed"}}}},"/api/v1/orders":{"get":{"security":[{"bearerAuth":[]}],"summary":"List recent API and storefront orders for this account","responses":{"200":{"description":"Array of recent orders"}}},"post":{"security":[{"bearerAuth":[]}],"summary":"Purchase 1 to 10,000 OAuth2 Hotmail/Outlook accounts from wallet","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}}},"responses":{"201":{"description":"Delivered accounts array and .txt download URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"402":{"description":"Insufficient wallet balance"},"409":{"description":"Insufficient stock"}}}},"/api/v1/orders/{ref}":{"get":{"security":[{"bearerAuth":[]}],"summary":"Retrieve delivered account lines and rawText for a specific order reference","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","example":"MS-A1B2C3D4E5"}}],"responses":{"200":{"description":"Order details and delivered credential lines"},"404":{"description":"Order not found"}}}},"/api/live-proof":{"get":{"summary":"Public ledger of completed orders and affiliate referral withdrawals","responses":{"200":{"description":"Privacy-masked real-time order and payout stream"}}}}}}