How to Connect an SMM Provider With API v2
A step-by-step guide to the SMM panel API v2 for resellers: balance, services, add and status calls, service syncing, partial refunds and key security.

The SMM panel API, usually called "API v2," is a simple HTTP interface that lets a reseller's store or bot read a provider's services, place orders, track their status and check the balance without touching the provider's dashboard. Most panels implement the same actions with the same parameter names, which is why one integration can often be reused across several suppliers. How does a reseller go from an API key to a working, reliable connection? This guide walks through each request, the responses to expect and the mistakes that cost money, with examples taken from a provider's published documentation.
What is the SMM panel API v2 and why do resellers use it?
API v2 is a de facto standard rather than a formal specification: each panel publishes its own documentation, but the core actions and fields match closely across providers. Resellers use it to automate ordering, keep prices current and pass status updates to customers. The sub-sections below list the standard actions and what needs to be ready before the first call.
Which actions does the standard API v2 support?
Every request is a POST to the panel's API URL with two required fields, key (the reseller's API key) and action, plus any parameters the action needs. Responses come back as JSON. The table below follows the published API documentation of God Of Panel, a panel listed on TopSMM, which uses the endpoint https://godofpanel.com/api/v2. Other panels use the same pattern at their own URL.
| Action | Required parameters | Example response fields |
|---|---|---|
services |
key | service, name, type, category, rate, min, max, refill, cancel |
add |
key, service, link, quantity (varies by service type) | order |
status |
key, order (or orders, up to 100 IDs) |
charge, start_count, status, remains, currency |
refill |
key, order (or orders) |
refill |
refill_status |
key, refill (or refills) |
status |
cancel |
key, orders | per-order result or error |
balance |
key | balance, currency |
Optional parameters exist for some service types. A default service can accept runs and interval for drip-feed delivery, while custom comment services take a comments list instead of a quantity. The drip-feed guide explains when gradual delivery is useful.
What is needed before the first request?
Three things: an account on the provider panel with a small balance, the panel's API URL from its documentation page, and the API key from the account settings. The key works like a password that can spend the balance, so it belongs on a server, in an environment variable or secret store, never in browser JavaScript or a public repository. TopSMM's guides make the same point in their API reseller basics section.
How does a reseller connect a provider step by step?
A safe connection is built in four calls, each confirming the previous one worked: check the balance, pull the service list, place a minimum test order and poll its status. Doing them in this order catches a wrong key, a wrong URL or an unexpected response format before any real customer order depends on it.

Step 1: How should the key be tested with the balance call?
The balance action is the safest first request because it spends nothing. A minimal test from a terminal looks like this:
curl -X POST https://provider.example/api/v2 \
-d key=YOUR_API_KEY \
-d action=balance
A working key returns something like {"balance": "100.84292", "currency": "USD"}, the example shown in the God Of Panel documentation. An error message here usually means a mistyped key, a wrong URL or an account without API access. Note the currency field: rates in the service list are in that currency, and a store that sells in another currency needs a conversion step.
Step 2: How should the service list be pulled?
The services action returns an array of every active service. Each entry has a numeric service ID, a name, a type, a category, a rate per 1,000 units, min and max quantities, and boolean refill and cancel flags. Store the whole response, not only the IDs, because the rate and limits are needed to price and validate customer orders. Values often arrive as strings, so convert rate, min and max to numbers before doing arithmetic.
Step 3: How should a test order be placed with add?
For a default service, add needs service, link and quantity. The quantity must sit between the service's min and max, and the link must be a public URL, never a login. A successful call returns an order ID such as {"order": 23501}. Place the first order at the minimum quantity on a profile or post set aside for testing, and record the start count and time so delivery can be measured. The order's charge comes out of the balance, so check the balance again afterwards to confirm it matches rate times quantity divided by 1,000.
Step 4: How should order status be polled?
The status action takes one order ID or a comma-separated orders list. God Of Panel documents up to 100 IDs per batch request, and other panels set their own limits. The response includes charge, start_count, status, remains and currency. Polling every open order at a steady interval, in batches, is far lighter on the provider than one request per order, and it reduces the risk of hitting rate limits.
How should the services list be mapped and kept in sync?
The service list is the most fragile part of an integration. Providers change rates, rename services, remove them and sometimes reuse IDs, so a mapping that was correct last week can sell a service at a loss or route an order to the wrong product. A reliable integration re-reads the list on a schedule and flags any change before it reaches customers.

How often should a reseller re-sync services?
There is no fixed rule, but a sync at least daily, and before any price change on the store, is a reasonable baseline for most resellers. For comparison, TopSMM pulls catalogues through the same services action and re-syncs sponsored and featured panels every 12 hours; each panel page shows its last sync time. Busy stores often sync more often and compare each new list with the previous one, highlighting new IDs, removed IDs and rate changes for review.
How should rate changes and removed services be handled?
Price each store item from the provider rate the integration last saw, plus margin, and recalculate whenever that rate changes. If a rate rises above the store's retail price, pause the item automatically rather than selling at a loss. If an ID disappears, hide the store item and alert the operator; do not assume a reused ID is the same product. Mapping each store item to an internal ID, with the provider and provider service ID as attributes, makes it easy to point a best-selling item at a second provider. The compare tool helps find a backup supplier covering the same networks.
How should status, partial orders and refunds be handled?
Status handling decides whether customers get fair refunds and whether the reseller's books balance. Each provider status has to map to a store status and, for partial or cancelled orders, to a refund calculation. Handling these cases from day one avoids manual reconciliation later, which becomes painful once order volume grows.
Which status values come back from the API?
The God Of Panel documentation shows examples such as Partial and In progress, and panels commonly also return values like Pending, Processing, Completed and Canceled. Exact spelling varies between providers, so the integration should normalise them, for example by lower-casing and mapping both "Canceled" and "Cancelled" to one internal state. The meaning of each status is explained in SMM panel order statuses explained.
How is a partial refund calculated?
A partial order delivered fewer units than ordered, and the remains field shows how many were not delivered. A common approach is to refund the customer the undelivered share: remains times the retail rate divided by 1,000. The provider usually credits its own refund to the reseller's balance rather than to a card or wallet, so the store should reconcile the provider's charge against what it billed. As an illustration, a 5,000-unit order with 157 remaining at a retail rate of $2.00 per 1k would refund about $0.31 to the customer.
When should refill and cancel be used?
Only services whose refill or cancel flag is true accept those actions. A refill request returns a refill ID, which can be tracked with refill_status; responses such as "Completed" or "Rejected" appear in the documentation. Cancel requests take a list of order IDs and return a per-order result, with an error for orders that cannot be cancelled. Exposing a refill button to customers only for eligible services avoids failed requests and support tickets. Refill windows and drop behaviour are defined in the TopSMM glossary.
What security and reliability mistakes should resellers avoid?
Most integration failures come from a handful of avoidable mistakes: leaked keys, unbounded polling, no backup provider and blind trust in provider responses. Each one has a simple fix, and together they make the difference between an integration that runs quietly and one that needs daily attention.

How should the API key be protected?
Keep the key server-side only, restrict who can read it, and rotate it if it is ever exposed. Never pass the key from a browser to the provider; route every call through the reseller's own server. Logging should mask the key. Since a leaked key can spend the whole balance, keeping only a few days of expected spend on each provider also limits the damage.
How can an integration stay reliable when a provider fails?
Set timeouts on every request, retry status polls with a delay, but never retry add blindly, because a request that timed out may still have created an order. Instead, record each outgoing order with a local ID and check the provider's response before resubmitting. Watch for responses with an error field even when the HTTP status looks normal. Finally, keep a second provider mapped for top services. On TopSMM, as of November 2026, 44 of the 70 listed panels are Verified, meaning their API answered with a valid service list, which is a useful first filter when choosing that backup in the panel directory.
When is an API integration not worth building?
An integration is not worth it for very low volume, where placing orders by hand is quicker, or for a reseller without access to someone who can maintain server code. In those cases a child panel is simpler, as explained in child panel vs main panel vs API reseller. It is also worth remembering that automating orders does not change the product's risk: purchased engagement breaks the terms of networks such as YouTube, whose fake engagement policy says artificial traffic will not be counted and can lead to strikes.
Frequently asked questions
Is the SMM panel API v2 the same on every panel?
Mostly, but not exactly. The core actions (services, add, status, balance) and their field names match across most panels, yet limits, status spelling, optional parameters and support for refill or cancel differ. Always read each provider's documentation and test with a minimum order before going live.
Does the API v2 use GET or POST?
The published documentation from God Of Panel specifies HTTP POST, with key and action sent as form parameters and JSON returned. Whether a given panel also accepts GET varies, but POST keeps the API key out of URLs and access logs, so it is the safer default.
How many order IDs can be checked in one status request?
God Of Panel documents up to 100 order IDs per multi-order status request, separated by commas. Other providers may set different limits, so check the documentation. Batching status checks reduces load on the provider and lowers the risk of being rate-limited.
Why does the API return a different rate from the website?
Rates can differ because the API shows the reseller's account price, which may include discounts or a different currency, while the website may show a public price. Rates also change over time, so a cached list goes stale. Re-sync the service list before pricing any store item.
Can the API be called from a mobile app or website directly?
It should not be. Calling the provider from a browser or app exposes the API key, which can spend the whole balance. Route requests through the reseller's own server, which holds the key securely and forwards only the needed data to the client.
Does TopSMM provide an SMM ordering API?
No. TopSMM is a directory and does not sell services or accept orders. It offers a read-only public data API for panel and platform information, documented on the TopSMM API page, and it reads panel catalogues through each panel's own services action.