API v1 — InstaMarket

REST API for wholesale clients: catalog, orders, balance, webhooks.

Base URL: https://instamarket.pro/api/v1

⚡ Quick Start — from key to first order in 5 minutes

The minimum chain to start using the API:

  1. In your account open API keys → Create key — you get X-API-Key + HMAC secret. The secret is shown only once — save it in a password manager.
  2. Try GET /v1/health with that key — must return 200.
  3. Browse the catalog: GET /v1/products?min_qty=10&max_price=2 — all items with the min_quantity field (minimum batch). Fast-delivery items (instant_delivery=true) are listed in GET /v1/instant — their minimum is 1 pc.
  4. Top up balance: POST /v1/balance/topup → send USDT to the returned address. 5-10 sec after the network confirmation the balance updates automatically.
  5. Place an order: POST /v1/orders with payment_method:"balance" and your own retry key — the Idempotency-Key header or the idempotence_id field. For fast-delivery items the response usually comes back with status: "completed" and the accounts in items — no polling needed.
  6. Got status: "processing" — poll GET /v1/orders/{id} every 2–5 s until the status is completed (accounts in items), refunded (delivery failed — the money is already back on your balance) or failed (contact support and we will refund you manually).
  7. Optional: pass webhook_url in POST /orders to receive push notifications instead of polling.

1. Getting an API key

You create the key yourself in your account: API keys → Create key (right after signing in with the code from the bot — within 15 minutes). An HMAC secret is created together with it and is shown only once — save it immediately. The key spends the shared balance of your account. Limit: 60 requests/minute per key (HTTP 429 on exceed). Questions about keys — message support.

2. Authentication

X-API-Key: YOUR_KEY_HERE

Every request requires the header. Missing or invalid → HTTP 401 Unauthorized.

3. Catalog (READ-ONLY)

GET /v1/health

Key validation + uptime probe.

curl -H "X-API-Key: $KEY" https://instamarket.pro/api/v1/health
# {"status":"ok","timestamp":1779497200}

GET /v1/products

Catalog with filters. Query params:

  • category, sku
  • min_price, max_price (float, USDT)
  • min_qty (default 1), page (default 1), page_size (default 50, max 200)
curl -H "X-API-Key: $KEY" \
  "https://instamarket.pro/api/v1/products?min_price=1&page=1&page_size=50"

⚡ Key response fields (in every items[] element)

  • instant_delivery (bool) — fast-delivery flag: true — the item is in stock and delivered at once, the accounts come right in the POST /v1/orders response
  • instant_stock (int) — how many pieces you can get with fast delivery right now (0 for other items). An order above this number is not fulfilled by fast delivery

GET /v1/products/{id}

Single-product details by ID.

GET /v1/instant

Only fast-delivery items that are in stock right now (instant_delivery=true). Parameters — category, min_price, max_price, page, page_size (1–200, default 50); the response format is the same as /v1/products. instant_stock — how many pieces one order can get at once, min_quantity = 1 — you can buy from 1 pc. The list is live: request it again before ordering.

curl -H "X-API-Key: $KEY" "https://instamarket.pro/api/v1/instant?page=1&page_size=50"

# {"total": 3, "page": 1, "page_size": 50, "items": [
#   {"id": 18234, "title": "Instagram | ...", "title_en": "Instagram | ...", "title_zh": "Instagram | ...",
#    "category": "...", "price_usdt": 1.23, "quantity": 150, "min_quantity": 1,
#    "sku": 358, "source_site": null, "is_available": true, "has_real_device": true,
#    "followers_count": null, "account_age_days": null, "tags": ["..."],
#    "instant_delivery": true, "instant_stock": 150}
# ]}

GET /v1/categories

Category list with product counts + min prices.

4. Balance & top-up

GET /v1/balance

Current key balance + total spent/topped-up/refunded.

curl -H "X-API-Key: $KEY" https://instamarket.pro/api/v1/balance
# {"balance_usdt": 50.0, "total_spent_usdt": 12.5,
#  "total_topup_usdt": 62.5, "total_refunded_usdt": 1.2,
#  "currency": "USDT"}

POST /v1/balance/topup

Create a top-up intent → get USDT address. Client picks amount + network. Body:

curl -X POST -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"amount_usdt": 100, "network": "usdt_trc_20"}' \
  https://instamarket.pro/api/v1/balance/topup

# {"topup_id": "abc123...", "payment_address": "TYz...",
#  "payment_network": "usdt_trc_20", "amount_usdt": 100.0,
#  "expires_at": 1779500800}

After USDT arrives at the address — balance is automatically credited (cron scans incoming TX every 5 sec). Addresses are shared with website purchases (one master wallet per network); intents are distinguished by amount.

⏱ Full top-up lifecycle

  1. T+0:00 — client: POST /v1/balance/topup {amount_usdt: 100, network: "usdt_trc_20"}
  2. T+0:00 — API creates topup_id, returns payment_address (your master) + amount_usdt: 100 + expires_at: now+1h
  3. T+0:30 — client sends 100 USDT (TRC-20) from their wallet to that address
  4. T+0:55 — TRC-20 confirms (~20 sec / 3-5 blocks)
  5. T+1:00 — backend (every 5s) sees incoming TX, searches pending intents by exact amount
  6. T+1:05 — backend matches the deposit by amount ±$0.01 with your intent → BAL +100, status=credited_auto
  7. T+1:05 — client: GET /v1/balance → balance_usdt: 100.0 ✓

📋 Response fields — what each means

topup_idIntent UUID (stored 24h in Redis). Use for status polling or audit.
payment_addressYour master wallet for the chosen network. Same as website purchases. No new address generated per top-up.
payment_networkEcho: usdt_trc_20 / usdt_bep_20 / usdt_polygon / usdt_arbitrum / usdt_erc20 / usdt_ton / usdt_solana.
amount_usdtThe amount of your transfer — backend finds exactly your incoming TX by it (±$0.01) and credits your balance.
expires_atUnix epoch +1h. If client doesn't send TX within 1h → intent expires; deposit awaits manual credit via support.

⚠️ Edge cases — what if something is off

Asked $100, sent $100.00
✅ Auto-credited in 5-10 sec
Asked $100, sent $99.99
✅ Credited (tolerance ±$0.01)
Asked $100, sent $98 (under)
❌ Won't auto-match. Contact support — actual amount will be credited manually.
Asked $100, sent $200 (over)
❌ No match (over tolerance), manual credit needed
Asked $100, sent after 2h (expired)
❌ Intent expired; deposit awaits manual credit via support.
Your transfer amount collides with another intent within a 15-min window
✅ Your top-up amount is made unique (price may differ ~±1%) — a collision is highly unlikely. Rely on the amount from the intent-creation response.
Sent TX on the wrong network (usdt_bep_20 instead of usdt_trc_20)
❌ The deposit goes to a different-network address and will not auto-credit. Contact support and we will credit it manually.

5. Orders (balance-debit)

POST /v1/orders

Create an order and debit the balance. For fast-delivery items the accounts come right in the response. If the order could not be delivered and the money went nowhere, the amount is returned to your balance automatically (status: "refunded", refunded: true); see «Automatic refund» below.

BODY='{"product_id": 12345, "quantity": 10, "payment_method": "balance", "webhook_url": "https://your.app/api-cb"}'
TS=$(date +%s)
SIG=$(printf '%s\n%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -r | cut -d' ' -f1)
curl -X POST -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
  -H "X-Timestamp: $TS" -H "X-Signature: $SIG" \
  -H "Idempotency-Key: order-2026-0001" \
  -d "$BODY" https://instamarket.pro/api/v1/orders

# instant_delivery=true -> fast delivery, accounts in THIS response:
# {"order_id": 790, "status": "completed", "price_usdt": 12.34, "quantity": 10,
#  "payment_address": null, "payment_network": null, "payment_expires_at": null,
#  "items": [{"items": [{"login": "login1", "password": "pass1", "raw": "login1:pass1|..."}, ...],
#             "raw": "login1:pass1|...\nlogin2:pass2|..."}],
#  "error_message": null, "refunded": false,
#  "created_at": 1779497200, "updated_at": 1779497200}
#
# Not delivered within ~4.5 s, or a regular item -> processing, no items yet
# (then GET /v1/orders/{id} or the webhook):
# {"order_id": 789, "status": "processing", "price_usdt": 12.34, "quantity": 10,
#  "payment_address": null, "payment_network": null, "payment_expires_at": null,
#  "items": null, "error_message": null, "refunded": false,
#  "created_at": 1779497200, "updated_at": 1779497200}

Fast delivery: for items with instant_delivery=true the order is fulfilled within the same request — the POST /v1/orders response comes back with status: "completed" and the accounts in items, usually in a fraction of a second. The server waits for delivery up to ~4.5 s; if it is not done by then the response is status: "processing": the money is already debited and the order keeps going — fetch the accounts via GET /v1/orders/{id} or wait for the webhook. Set your HTTP client timeout to at least 10 s. For other items the response is status: "processing" without items.

items format in POST /v1/orders and GET /v1/orders/{id}: an array with one object. raw — all accounts as text, one per line (the line layout follows the product title, e.g. login:password|cookies); items — the same accounts split into fields: login, password, raw and, when present, email, email_password, cookies, twofa_seed. In the webhook items is that object itself, without the outer array.

Retry without a double purchase: send your own retry key — the Idempotency-Key header or the idempotence_id body field (they mean the same; both sent and different — 422). The key is any unique string of yours, e.g. a UUID. Repeating POST /v1/orders with the same key and the same body neither creates nor pays for a second order — you get the order already created: the same order_id, its current status and the accounts if delivered; the same after a client timeout. The same key with a different body — 422; the first request with this key is still running — 409, retry in a couple of seconds. The key is kept for 30 days. Sign every repeat anew (new X-Timestamp): the same signature is not accepted twice.

If balance < price → HTTP 402 Payment Required with top-up instruction.

⚠️ The minimum batch is in the min_quantity field; order less and you get HTTP 400 with the allowed minimum. Fast-delivery items (instant_delivery=true) have a minimum of 1 pc — you can buy a single account.

GET /v1/orders

Orders created by this key (newest first). Paginate with page/page_size, filter with ?status= (processing | completed | failed | expired | cancelled | refunded | needs_review). Credentials are NOT returned here — only via GET /v1/orders/{id}.

curl -H "X-API-Key: $KEY" "https://instamarket.pro/api/v1/orders?page=1&page_size=50"
curl -H "X-API-Key: $KEY" "https://instamarket.pro/api/v1/orders?status=completed"

# {"total": 137, "page": 1, "page_size": 50,
#  "items": [
#    {"order_id": 790, "status": "completed", "product_id": 12345,
#     "sku": 358, "title": "Instagram | Autoreg", "quantity": 10,
#     "price_usdt": 12.34, "refunded": false,
#     "created_at": 1779497200, "updated_at": 1779497500}
#  ]}

⚠️ items[] in this response means ORDERS, not accounts. Fetch accounts for a given order via GET /v1/orders/{id}.

GET /v1/orders/{id}

Order status; once delivered — accounts in items. Visible only to its own key (an order of another key — 404).

curl -H "X-API-Key: $KEY" https://instamarket.pro/api/v1/orders/789

# {"order_id": 789, "status": "completed", "price_usdt": 12.34, "quantity": 10,
#  "payment_address": null, "payment_network": null, "payment_expires_at": null,
#  "items": [{"items": [{"login": "login1", "password": "pass1", "raw": "login1:pass1|..."}, ...],
#             "raw": "login1:pass1|...\nlogin2:pass2|..."}],
#  "error_message": null, "refunded": false,
#  "created_at": 1779497200, "updated_at": 1779497500}

Order statuses

  • processing — paid, being delivered
  • completed — delivered in full, accounts in items
  • partial — partly delivered: what you got is in items, contact support about the rest
  • needs_review — the delivery outcome is unknown, the order is under manual review: the accounts appear after the check, a refund, if needed, is made manually by support
  • failed — not fulfilled; if the money went nowhere, the amount is returned to your balance automatically and the status becomes refunded, otherwise contact support and we will refund you manually
  • expired — payment window expired, the order is closed
  • cancelled — cancelled; if money was debited, support refunds it manually
  • refunded — money returned to your balance (refunded: true) — automatically or by support

Automatic refund

If an order could not be delivered and the money went nowhere, the amount is returned automatically to the balance it was paid from (the key balance is your shared account balance): the order gets status: "refunded", refunded: true and error_message: "Order refunded.", and a webhook with the final status refunded is sent to webhook_url (if a failed webhook went out before the refund, a second, final one follows). If only part of a cart was delivered, the cost of the undelivered items is returned and the order stays completed. If the outcome is unknown (needs_review) or the order stayed failed, the refund is made manually — contact support with the order number.

6. Webhook notifications

Pass webhook_url in POST /v1/orders — we send a POST with JSON to it when the order reaches a final status (completed, partial, failed, expired, cancelled, refunded, including after an automatic refund), usually within 30 s. For fast-delivery items the accounts are already in the POST response — the webhook duplicates them.

POST $YOUR_WEBHOOK_URL
Content-Type: application/json
X-Webhook-Timestamp: 1779497230
X-Webhook-Signature: <hmac_sha256(secret, f"{ts}\n{body}").hex()>
X-Webhook-Algorithm: HMAC-SHA256

{
  "order_id": 789,
  "status": "completed",
  "price_usdt": 12.34,
  "quantity": 10,
  "product_id": 12345,
  "items": {"items": [{"login": "login1", "password": "pass1", "raw": "login1:pass1|..."}, ...],
            "raw": "login1:pass1|...\nlogin2:pass2|..."},
  "error_message": null,
  "refunded": false,
  "fired_at": 1779497230
}

Expects HTTP 2xx response. On 5xx/timeout — up to 5 retries with exp-backoff. After 5 fails webhook is marked fired.

7. Usage metrics

GET /v1/usage

Per-key statistics: request count, last activity, total spent, refunded.

curl -H "X-API-Key: $KEY" https://instamarket.pro/api/v1/usage
# {"request_count": 1234, "last_used_at": 1779497200,
#  "first_used_at": 1779480000, "last_endpoint": "/api/v1/products",
#  "total_spent_usdt": 125.50}

8. Account delivery

Delivery time: fast-delivery items (instant_delivery=true) — at once, accounts in the POST /v1/orders response (usually a fraction of a second). Others — 30 seconds to 10 minutes after status=processing: poll GET /v1/orders/{id} or wait for the webhook.

  1. POST /v1/orders → status=processing
  2. Async processing (30s-10min)
  3. On success → status=completed
  4. GET /v1/orders/{id} → items[]
  5. Webhook fired (if registered)

⚡ Fast delivery (instant_delivery=true): the whole flow is one request. POST /v1/orders returns status=completed and items right away; if delivery takes longer than ~4.5 s — processing, then GET /v1/orders/{id} or the webhook.

9. USDT networks & fees

NetworkFeeTimeRecommendation
usdt_trc_20$0.5-11-3 minDefault
usdt_bep_20$0.2-0.530 sec - 2 minCheap + fast
usdt_polygon$0.01-0.051-3 minCheapest
usdt_arbitrum$0.1-0.330 secIf on Arbi
usdt_erc20$0.1-12-5 minIf already on Ethereum
usdt_ton$0.05-0.15-15 secFast
usdt_solana$0.01-0.025-30 secCheap + fast

Via the API (POST /v1/balance/topup) the balance is topped up on these 7 networks. On the website and in your account you can also use USDT on Avalanche, USDC (BEP20, Polygon, Arbitrum, Avalanche, Solana), CryptoBot and Telegram Stars — the balance is shared.

⚠️ Send strictly on the network of the request (payment_network): the EVM address is the same on all EVM networks, including Ethereum (ERC20, usdt_erc20), but only transfers on the network of the request are credited.

10. Limits & pricing

  • Rate-limit: 60 requests/min/key (HTTP 429)
  • API price = website price (no markup)
  • page_size: 1-200 (default 50)
  • order quantity: 1-10000 units
  • Top-up: 1-100000 USDT
  • Webhook timeout 10s, up to 5 retries
  • Automatic refund: the order could not be delivered and the money went nowhere — the amount returns to your balance by itself (refunded); the outcome is unknown (needs_review) or the order stayed failed — contact support with the order number, we will refund you manually

11. Error codes

  • 400 — below the minimum batch (min_quantity); webhook_url rejected; unsupported top-up network; invalid X-Timestamp; unknown ?status= value
  • 401 — missing or invalid X-API-Key — {"detail": "Invalid or missing X-API-Key"}; for POST also: no signature, signature mismatch, clock drift over 5 min, the same signature reused (Replay detected)
  • 402 — insufficient balance
  • 403 — the IP is not in the key whitelist, or the key owner is blocked
  • 404 — product or order not found (an order of another key is 404 too)
  • 409 — not enough in stock (Insufficient stock); the item is held by another buyer right now; balance update conflict — retry; a request with this retry key is still running — retry in a couple of seconds
  • 422 — request body failed validation (field type or range); the retry key was already used with a different body; Idempotency-Key and idempotence_id both sent and different
  • 429 — over 60 requests per minute per key (the wait time is in the response text); more than 3 open top-ups per key; the IP is temporarily blocked after a series of invalid keys (Retry-After header)
  • 501 — paying for an order other than from the balance (payment_method ≠ "balance") is not supported yet
  • 503 — service temporarily unavailable — retry (with a new signature)

Errors come as JSON {"detail": "…"}; for 422 the detail field is a list of per-field errors.

11.5 Security (HMAC + IP whitelist)

Additional defenses for production keys: HMAC signing (the secret comes with every key created in your account) and an IP whitelist on request to support.

HMAC body signing (POST /orders + /topup)

An HMAC secret is created together with the key in your account (shown once). POST /orders and /topup REQUIRE an HMAC secret + 2 extra headers (fail-closed). Formula:

X-Timestamp = unix epoch seconds (≤5 min drift from server)
X-Signature = hmac_sha256(secret, f"{timestamp}\n{request_body}").hex()
# Python example
import hmac, hashlib, time, json, requests
KEY = "..."; SECRET = "..."
BASE = "https://instamarket.pro/api/v1"
body = json.dumps({"product_id": 12345, "quantity": 1, "payment_method": "balance"})
ts = str(int(time.time()))
sig = hmac.new(SECRET.encode(), f"{ts}\n{body}".encode(), hashlib.sha256).hexdigest()
r = requests.post(f"{BASE}/orders", data=body, headers={
    "X-API-Key": KEY,
    "Content-Type": "application/json",
    "X-Timestamp": ts,
    "X-Signature": sig,
})
print(r.status_code, r.json())

Protects against: replay attack, MITM tampering, accidental key leak (signature is invalid without secret). Signature is REQUIRED for POST /orders and /topup (fail-closed since 2026-06-03): a key without a secret gets HTTP 401.

IP whitelist

Allowed IPs are bound to a key only by our support: message support from the account that owns the key and send your server IP. If the list is empty — no IP check (default). If at least one IP is present — requests from all others get HTTP 403.

Operation audit

All operations under your API key are logged. Check your own usage stats (request count, last used, total spent) via GET /v1/usage.

🧪 Try it now — interactive playground

Paste your X-API-Key below and click any button — the request fires directly from this page to our API. For POST endpoints, HMAC signature is computed in the browser automatically (if your key has a secret).

GET https://instamarket.pro/api/v1/health
🔒 The request is sent directly from your browser to https://instamarket.pro/api/v1. The key is never stored on the server.

12. SDK examples

Python (requests)

import hashlib, hmac, json, time, uuid
import requests
KEY = "YOUR_API_KEY"
SECRET = "YOUR_HMAC_SECRET"
BASE = "https://instamarket.pro/api/v1"
headers = {"X-API-Key": KEY}

def post_signed(path, payload, idem_key=None):
    body = json.dumps(payload, separators=(",", ":"))
    ts = str(int(time.time()))
    sig = hmac.new(SECRET.encode(), f"{ts}\n{body}".encode(), hashlib.sha256).hexdigest()
    h = {**headers, "Content-Type": "application/json", "X-Timestamp": ts, "X-Signature": sig}
    if idem_key:
        h["Idempotency-Key"] = idem_key
    return requests.post(f"{BASE}{path}", data=body, headers=h, timeout=15)

# 1. Fast-delivery items (from 1 pc)
instant = requests.get(f"{BASE}/instant", headers=headers, timeout=15).json()

# 2. Check balance
bal = requests.get(f"{BASE}/balance", headers=headers, timeout=15).json()
print(f"Balance: {bal['balance_usdt']} USDT")

# 3. Create order (balance-debit, signed). Keep order_key: a retry with it returns the same order
order_key = str(uuid.uuid4())
order = post_signed("/orders", {
    "product_id": instant["items"][0]["id"],
    "quantity": 1,
    "payment_method": "balance",
}, idem_key=order_key).json()
print(f"Order #{order['order_id']} {order['status']}")

# 4. Fast delivery: the accounts are already here. Otherwise poll until final.
o = order
while o["status"] == "processing":
    time.sleep(3)
    o = requests.get(f"{BASE}/orders/{order['order_id']}", headers=headers, timeout=15).json()
print(f"Final: {o['status']}, refunded={o.get('refunded')}")
if o.get("items"):
    print(o["items"][0]["raw"])

Node.js (axios)

import axios from "axios";
import crypto from "node:crypto";

const KEY = process.env.API_KEY;
const SECRET = process.env.API_SECRET;
const api = axios.create({
  baseURL: "https://instamarket.pro/api/v1",
  headers: { "X-API-Key": KEY },
  timeout: 15000,
});

function signed(payload, orderKey) {
  const body = JSON.stringify(payload);
  const ts = String(Math.floor(Date.now() / 1000));
  const sig = crypto.createHmac("sha256", SECRET).update(`${ts}\n${body}`).digest("hex");
  return { body, headers: { "Content-Type": "application/json", "X-Timestamp": ts, "X-Signature": sig, "Idempotency-Key": orderKey } };
}

// 1. Fast-delivery items (from 1 pc)
const { data: instant } = await api.get("/instant");

// 2. Create order (signed). Keep orderKey: a retry with it returns the same order
const orderKey = crypto.randomUUID();
const req = signed({ product_id: instant.items[0].id, quantity: 1, payment_method: "balance" }, orderKey);
let { data: o } = await api.post("/orders", req.body, { headers: req.headers });

// 3. Fast delivery: the accounts are already in o.items. Otherwise poll.
while (o.status === "processing") {
  await new Promise(r => setTimeout(r, 3000));
  o = (await api.get(`/orders/${o.order_id}`)).data;
}
console.log("Final:", o.status, o.items?.[0]?.raw);

Go (net/http)

package main

import (
  "bytes"; "crypto/hmac"; "crypto/sha256"; "encoding/hex"; "encoding/json"
  "fmt"; "io"; "net/http"; "strconv"; "time"
)

func main() {
  body, _ := json.Marshal(map[string]any{
    "product_id": 12345, "quantity": 1, "payment_method": "balance",
  })
  ts := strconv.FormatInt(time.Now().Unix(), 10)
  mac := hmac.New(sha256.New, []byte("YOUR_HMAC_SECRET"))
  mac.Write([]byte(ts + "\n")); mac.Write(body)
  req, _ := http.NewRequest("POST", "https://instamarket.pro/api/v1/orders", bytes.NewReader(body))
  req.Header.Set("X-API-Key", "YOUR_KEY")
  req.Header.Set("Content-Type", "application/json")
  req.Header.Set("X-Timestamp", ts)
  req.Header.Set("X-Signature", hex.EncodeToString(mac.Sum(nil)))
  req.Header.Set("Idempotency-Key", "order-2026-0001")
  resp, err := (&http.Client{Timeout: 15 * time.Second}).Do(req)
  if err != nil { panic(err) }
  defer resp.Body.Close()
  b, _ := io.ReadAll(resp.Body); fmt.Println(string(b))
}

curl

# Full flow: fast-delivery list, balance, signed order, status
KEY=YOUR_API_KEY
SECRET=YOUR_HMAC_SECRET
BASE=https://instamarket.pro/api/v1

curl -H "X-API-Key: $KEY" "$BASE/instant?page_size=5"
curl -H "X-API-Key: $KEY" "$BASE/balance"
BODY='{"product_id":12345,"quantity":1,"payment_method":"balance"}'
TS=$(date +%s)
SIG=$(printf '%s\n%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -r | cut -d' ' -f1)
curl -X POST -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
  -H "X-Timestamp: $TS" -H "X-Signature: $SIG" -H "Idempotency-Key: order-2026-0001" -d "$BODY" "$BASE/orders"
curl -H "X-API-Key: $KEY" "$BASE/orders/789"

Partner API — for reseller shops

A simplified API for reseller shops: base address https://instamarket.pro/api/v1/, the key is the key parameter, catalog, balance and orders are plain GET/POST requests, the response is {"success", "data"}.

  • Create the key yourself: account → «API keys» → «Create key» (within 15 minutes after signing in with the code from the bot). Your server IP is bound to the key only by our support: message support from the account that owns the key and send the IP. Without a bound IP only the catalog and balance are available; once bound, the key works only from those addresses (the whole API).
  • The key is the key parameter: in the query string (GET) or in the body (POST, JSON or form). The response is always HTTP 200: {"success": true, "data": …}; on error success=false and the code and text are in data.status and data.message.
  • The catalog contains only fast-delivery items that are in stock right now, orders from 1 pc. An order completes immediately and returns a link to a .txt file with the accounts; if delivery is still running you get status: pending, and order/download returns the link.
  • Prices and balance are in USD (1 USDT = $1). Payment is from your shared account balance only — the same wallet as on the website and in the bot.
  • idempotence_id: repeating an order with the same value returns the same order, no second purchase. Rate limit — 120 requests per minute per key.
  • Order status (order/status → data.status): unpaid, in_process, completed, error, canceled, refund. If an order could not be fulfilled and the money went nowhere, the amount returns to your balance automatically — status refund; order/download for such an order answers with the error «Заказ имеет статус возврат.» (the order has the refund status).

Methods

GET  /api/v1/category/list
GET  /api/v1/group/list            ?category_id= &ids[]= &name=
GET  /api/v1/attribute/list
POST /api/v1/product/list          {"key", "ids":[…], "category_id", "group_id", "price_from", "price_to", "quantity_from", "page", "per-page"}
GET  /api/v1/product/view          ?id=
GET  /api/v1/product/top
GET  /api/v1/user/balance
GET  /api/v1/order/create          ?product= &quantity= &idempotence_id=
GET  /api/v1/order/status          ?id=
GET  /api/v1/order/download        ?id=

Example

curl "https://instamarket.pro/api/v1/user/balance?key=$KEY"
# {"success":true,"data":{"balance":25.4,"currency":"USD"}}

curl "https://instamarket.pro/api/v1/order/create?key=$KEY&product=37&quantity=10&idempotence_id=my-order-1"
# {"success":true,"data":{"status":"ok","id":11130,"link":"https://instamarket.pro/api/v1/order/file/11130/….txt"}}

# error — always HTTP 200; the code is in data.status, the text (in Russian) in data.message:
# {"success":false,"data":{"name":"Bad request","message":"Недостаточно средств на балансе.","code":0,"status":400}}
# data.message here means: "Insufficient balance."

FAQ

13. Postman / Changelog / Support

Postman collection

Download a ready Postman collection for all endpoints: Download .postman_collection.json

Changelog

  • v1.10 (2026-11-22) — Automatic refund: if an order could not be delivered and the money went nowhere, the amount returns to your balance by itself (status: "refunded", refunded: true, webhook). Retry key — the Idempotency-Key header or the idempotence_id field: a repeat with the same key does not create a second order, the key is kept for 30 days.
  • v1.9 (2026-11-21) — Fast delivery: for items with instant_delivery=true the accounts come right in the POST /v1/orders response (the server waits up to ~4.5 s, otherwise processing); GET /v1/instant lists all fast-delivery items, minimum 1 pc.
  • v1.8 (2026-11-07) — Added the partner API (/api/v1/category/list, product/list, user/balance, order/create, order/status, order/download): key as the key parameter, instant-delivery items only, orders from IPs bound by support.
  • v1.7 (2026-07-18) — Added GET /v1/instant — only instant-delivery items (instant_delivery=true) that are in stock right now. Same as /v1/products but limited to fast-delivery items; instant_stock is the live count, min_quantity=1. Order via the usual POST /v1/orders (returns status=completed + items[] instantly when the item is in stock).
  • v1.6 (2026-07-16) — Added GET /v1/orders — list your key's orders with pagination and a ?status= filter. Previously an order could only be fetched by an order_id you had to store yourself. Credentials are not exposed in the list — only via GET /v1/orders/{id}.
  • v1.5 (2026-07-09) — /v1/products response gains instant_delivery (bool — fast-delivery flag: the item is in stock and delivered at once) and instant_stock (int — units available for instant delivery). Such items are delivered instantly, otherwise 30 sec – 10 min.
  • v1.4 (2026-05-23) — Min-purchase enforcement (per-product min_quantity + 600₽ floor); auto-credit cron 120s→5s; cross-platform dynamic pricing +1%/15min also applies via API; webhook HMAC signing (X-Webhook-Signature header); Try-it playground in /api/docs.
  • v1.3 (2026-05-23) — Auto-refund on failed/expired/cancelled (discontinued: there are no automatic refunds anymore, refunds are manual via support), refunded field, status maps paid→processing, created_at/updated_at in response.
  • v1.2 (2026-05-23) — Balance system, POST /orders with balance-debit, webhook cron.
  • v1.1 (2026-05-23) — Rate-limit 60/min/key, per-key metrics.
  • v1.0 (2026-05-23) — Read-only catalog endpoints (products/categories/health).

Support

API questions: Telegram support. SLA: 30 min during work hours (08:00-22:00 MSK). Telegram.