AI Stocks Reseller API v1.4 Automation Guide
Connect your storefront, Telegram shop, or SaaS backend to AI Stocks. Query live stock across 58 active SKUs, order with 10%+ wholesale pricing, enforce idempotent retries, and track automated fulfillment & refunds via HTTPS.
Wholesale Pricing & Core Architecture
Wholesale & Custom SKU Rates
Every reseller account receives an automatic 10%+ wholesale discount on storefront pricing (plus custom negotiated SKU pricing). Query GET /v1/products to read exact integer unit_price_cents before quoting your buyers.
Strict Idempotency & Retry Lookup
Always send Idempotency-Key on POST /v1/orders. If a socket drops, either resend the exact request or query GET /v1/orders/by-idempotency/:key before ever creating a second order.
201 Instant + 202 Queue / Auto-Refund
Vault items return 201 completed with credentials immediately. Manual or customer_inputs items return 202 pending and transition to completed or refunded automatically.
Sample Wholesale Margin Math (10% Baseline Tier)
| Subscription | Store Price | 10% Reseller Est. | Delivery Type |
|---|---|---|---|
| ChatGPT K12 Education - 2Y | $7.37 | $6.63 | Instant 201 |
| Claude API 10M Tokens - 1 Day | $0.90 | $0.81 | Instant 201 |
| Elevenlabs Creator - 3M | $4.20 | $3.78 | Instant 201 |
| Outlook Mail Account | $0.03 | $0.03 | Instant 201 |
Quick Integration Checklist & Example Request
Use integer *_cents values in your billing ledger, respect Retry-After on 429 responses, and configure low-balance email alerts inside the Reseller Portal or via @Aistocks6Bot.
curl -X POST https://desktop-0i6f0cd.tail8bec88.ts.net/v1/orders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: order-1001" \
-H "Content-Type: application/json" \
-d '{"product_id":138,"qty":1}'
Frequently asked questions
What wholesale discount do AI Stocks resellers get on API v1.4?
Approved resellers receive 10%+ default wholesale discounts below storefront prices, plus custom per-SKU wholesale pricing visible in the Reseller Portal (/api) and returned live by GET /v1/products.
How does Idempotency-Key prevent duplicate charges on network timeouts?
Sending a unique Idempotency-Key header on POST /v1/orders guarantees that retries with the same payload return the original order without charging your API balance twice, while conflicting payloads return 409 idempotency_key_conflict.
How do pending orders, preorders, and customer_inputs work in v1.4?
In-stock instant items return HTTP 201 completed immediately. Items requiring buyer details (customer_inputs) or queued preorders return HTTP 202 pending/preorder and fulfill or auto-refund cleanly via GET /v1/orders/:code.
Can I move funds between my Store Wallet and Reseller API balance?
Yes. Transfers between your Store Wallet and Reseller API balance are atomic and instant from /api or @Aistocks6Bot with zero transfer fees.
Start automating wholesale orders today
Generate your Bearer API key in seconds from the Reseller Portal and inspect full endpoint schemas in Developer Docs.