Blog

A Practical Guide to API v2 for Resellers

2026-10-31 4 min read

If you sell social media services to your own customers, placing every order by hand quickly becomes impossible. The API v2 used by most SMM panels lets your website, Telegram bot or reseller panel talk to the supplier panel directly. Orders are placed automatically, statuses are synced and balances are checked without anyone copying and pasting links. This guide walks through the API in practical terms.

On smmvex.com you can open the API page and read what integrators check first next.

The basic shape of a request

API v2 uses one endpoint, usually a URL ending in /api/v2. Every request is an HTTP POST with form fields. Two fields are always present: key, your personal API key, and action, the operation you want to perform. Other fields depend on the action.

Responses are JSON. Successful responses contain the requested data. Errors come back as an object with a single error field, for example an invalid key or an incorrect request. Because the format is shared by many panels, a client written for one panel usually works with another after changing the URL and key.

Getting your API key

Your key is shown on the account or API page of the panel. Treat it like a password: anyone with the key can place orders that are charged to your balance. Store it in a configuration file or environment variable on your server, never in front-end code that customers can read, and generate a new key immediately if you suspect it has leaked.

Listing services

The services action returns the full catalog available to your account. Each entry includes the service ID, name, type, category, rate, minimum and maximum, and flags for refill and cancel support. Numbers such as rate, min and max are usually returned as strings, so convert them in your code before doing math.

Cache the service list on your side and refresh it periodically, for example every hour. Fetching it before every order wastes time and increases load on both sides.

Checking your balance

The balance action returns your current balance as a string and the currency code. Call it before placing large batches, and build an alert in your system when the balance falls below a level that would block your customers' orders.

Placing an order

The add action creates an order. The required fields are service, link and quantity. Some service types accept extra fields: comments for custom comment services, runs and interval for drip-feed, or usernames for certain mention services. A successful response contains the new order ID.

Always save that ID in your own database together with your customer's order. It is the key to every later status check, refill and cancel request.

Checking status

The status action takes one order ID and returns the charge, start count, status, remains and currency. To check many orders at once, send a comma-separated list in the orders field instead. The response is then an object keyed by order ID, with an error entry for any ID that is not found. Batching status checks is much more efficient than calling once per order.

Status values follow the panel's own naming: Pending, In progress, Processing, Completed, Partial and Canceled. Map them to whatever your own customers see.

Refill and cancel

The refill action requests a refill for a completed order on a service that supports it and returns a refill ID. The refill_status action takes that ID and reports progress. Cancel accepts one or more order IDs and returns, for each one, either a confirmation or an error explaining why it cannot be canceled. Multi-order variants return lists so you can process them in one loop.

Handling errors gracefully

Plan for every request to fail occasionally. Network timeouts, maintenance windows and validation errors are part of normal operation. Good integrations follow a few rules:

  • Retry only on network errors and timeouts, with a short delay, and never retry an add request blindly, because the first one may have succeeded.
  • Show validation errors, such as a quantity below the minimum, to your customer in plain language.
  • Log the full error text along with the time and the request parameters, but never log the API key.
  • Pause automatic ordering if the balance check fails, instead of sending orders that will be refused.

Avoiding duplicate orders

The most expensive integration bug is the duplicate order, usually caused by retrying an add call after a timeout. To prevent it, record the order request in your database before calling the API, mark it as sent once you receive an ID, and on a timeout check the latest orders by status before retrying. A little caution here saves real money.

Syncing schedules

A sensible sync schedule checks pending and in-progress orders every few minutes, completed orders occasionally for refill eligibility, and the services list every hour. Use multi-status requests in batches of up to a few hundred IDs. This keeps your customers' dashboards fresh without overloading anything.

Security checklist

  • Keep the key on the server only.
  • Use HTTPS for every request.
  • Restrict who can see the key in your own admin panel.
  • Rotate the key if a team member with access leaves.
  • Watch for unexpected orders, which can indicate a leaked key.

Summary

API v2 is a compact interface with a handful of actions: services, balance, add, status, refill, refill_status and cancel. Learn their request fields and response shapes, store order IDs carefully, batch your status checks and handle errors without duplicating orders. With those basics in place, your reseller business can run around the clock without manual work.

If you do not have an account yet, sign up. Balance, orders and prices stay the same on the website and the API.

🎁

Update-Kanal

Treten Sie unserem Telegram-Kanal bei für Dienste und Angebote 🎁

Jetzt beitreten