Processing social media marketing orders manually might work when your storefront receives five orders a day. Once volume grows to dozens or hundreds of checkouts per hour, copying target links, checking wholesale balances, and updating completion statuses by hand becomes a major operational bottleneck.
An automated SMM order workflow solves this by connecting your storefront directly to a provider's fulfillment engine. In this guide, you will learn how automatic SMM order processing works from start to finish—covering the exact API lifecycle, what your panel must manage locally versus what Flowly's SMM Orders API v2 handles remotely, how to submit orders and poll statuses, and how to recover from failed requests without creating duplicate orders.
New to SMM APIs? Start with our beginner's guide on what an SMM panel API is or follow our step-by-step tutorial on how to connect an SMM panel to a service provider.
Why Automate SMM Order Processing?
Connecting your panel to an upstream provider through an automated API pipeline transforms how your business scales:
- Instant 24/7 Fulfillment: Customer orders are dispatched to the provider within seconds of payment confirmation, regardless of time zones.
- Zero Copy-Paste Mistakes: Automated parameter forwarding prevents human errors such as pasting the wrong profile URL, selecting the wrong package ID, or typing an incorrect quantity.
- Live Dashboard Updates: Scheduled background tasks automatically sync start counts, remaining quantities, and completion states so customers never have to open support tickets just to ask for progress updates.
- Protected Profit Margins: Automated balance checks and error alerts ensure your team knows immediately if your wholesale wallet runs low or if a customer submits an invalid link.
If you are working on scaling your storefront, combining backend automation with proven SMM panel growth strategies allows you to focus on marketing and customer acquisition instead of repetitive admin tasks.
The Automated API Order Workflow: Panel vs. Provider Responsibilities
A reliable automation pipeline requires a clear separation of duties between your website (the reseller panel) and the fulfillment backend (the API provider).
Step-by-Step Lifecycle from Checkout to Completion
Every automated SMM order follows a five-stage lifecycle:
- Customer Checkout (Local Panel): A customer selects a service on your website, enters their target link and desired quantity, and pays using your local payment gateway (creating a local order ID, such as
Local Order #5012). - Order Dispatch (
action=add): Your server looks up the mapped providerserviceID and sends an authenticated HTTPPOSTrequest to the provider's endpoint (https://flowlycore.com/api/v2/). - Validation & Wholesale Deduction (Provider): The provider verifies your API key, validates the target link and quantity limits, deducts the wholesale cost from your prepaid USD wallet balance, and queues the order for delivery.
- Remote Order ID Mapping: The provider replies with a JSON payload containing a unique remote order ID (for example,
{"order": 94821}). Your panel saves94821in its database alongsideLocal Order #5012. - Periodic Status Polling (
action=status): A scheduled background job (cron job) on your server periodically sends the remote order ID back to the provider to fetch the lateststatus,start_count, andremainsvalues until the order reaches a final state.
Responsibility Matrix: Your SMM Panel vs. Flowly's API
When building or configuring your panel, keep this boundary in mind:
| Workflow Stage | What Your SMM Panel Must Implement | What Flowly's SMM Orders API Performs |
| Retail Checkout | Authenticate the user, validate retail pricing, process customer payments, and store the local order record. | No action yet (happens entirely on your storefront). |
| Order Submission | Map your local package to Flowly's service ID, keep your sk- API key strictly server-side, and send an action=add POST request. | Authenticate your API key, verify service min/max rules, deduct the wholesale charge from your Flowly wallet, and return a unique order ID. |
| Order Tracking | Run a scheduled background worker (cron job) to query action=status for active orders and update the customer-facing UI. | Return accurate, real-time JSON metrics (status, charge, start_count, remains, and currency) for single or comma-separated batch IDs. |
| Refunds & Exceptions | Detect Canceled or Partial states from status responses and credit the appropriate retail amount back to your customer's panel balance. | Return exact remains counts and status flags, or return explicit HTTP error codes (400, 401, 402, 429, 500) when a request fails. |
Submitting Orders Automatically with the add Action
All SMM fulfillment calls go to Flowly's unified v2 endpoint:
https://flowlycore.com/api/v2/
Note on API Billing vs. Tools Quotas: Flowly's SMM Orders API v2 operates strictly on your prepaid account wallet balance—checking your balance, syncing services, or polling order statuses is completely free, and funds are deducted only when you place a valid order via action=add. (By contrast, Flowly's separate Tools API v1—which currently powers the live YouTube Downloader endpoint, while Instagram Downloader, TikTok Downloader, Twitter/X Media, and AI Caption & Tags are marked Coming Soon—uses a 100 free daily request quota followed by per-request billing.)Checking Your Wallet Balance Before Forwarding Orders
Before dispatching a batch of queued customer orders, custom panel backends often verify that their prepaid wholesale balance is sufficient using action=balance.
You can generate and monitor your sk- secret keys at any time from the API Access dashboard (login required). Always send your key from the server side—using the recommended Authorization: Bearer header or standard key form parameter—and never expose it in frontend JavaScript.
curl -X POST https://flowlycore.com/api/v2/ \ -H "Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "action=balance"
Example JSON Response:
{
"balance": "142.85",
"currency": "USD"
}
Sending the add Request and Storing the Provider Order ID
When a customer completes checkout for a package mapped from the Flowly Services catalog, your backend triggers an action=add request containing the service ID, the target link, and the quantity (plus optional parameters like custom_data/comments or answer_number for specialized services):
import os
import requests
API_URL = "https://flowlycore.com/api/v2/"
API_KEY = os.getenv("FLOWLY_API_KEY", "sk-YOUR_PLACEHOLDER_API_KEY")
def submit_smm_order(service_id: int, target_link: str, quantity: int):
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/x-www-form-urlencoded"
}
payload = {
"action": "add",
"service": service_id,
"link": target_link,
"quantity": quantity
}
response = requests.post(API_URL, headers=headers, data=payload, timeout=15)
if response.status_code == 200:
data = response.json()
# Store data["order"] in your local database mapped to the customer's checkout
return {"success": True, "provider_order_id": data.get("order")}
else:
return {
"success": False,
"http_code": response.status_code,
"error": response.text
}
Successful add Response (HTTP 200 OK):
{
"order": 94821
}
Immediately save 94821 in your orders table under a provider_order_id column and transition your internal order state from Pending Dispatch to Processing.
Tracking Order Progress via Automated Status Polling
Because social media delivery happens asynchronously over minutes, hours, or days depending on the package, your panel should never hold an HTTP connection open waiting for an order to finish. Instead, use a scheduled cron job (for example, every 5 to 10 minutes) to poll the status action for open orders.
Single vs. Batch Order Status Checks (Up to 100 IDs)
If you have dozens of active orders in progress, querying them one by one wastes server resources and risks hitting rate limits (HTTP 429). Flowly's status action supports both single order lookups (order) and batch lookups (orders) for up to 100 comma-separated order IDs in a single request:
# Single order status check curl -X POST https://flowlycore.com/api/v2/ \ -H "Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "action=status&order=94821" # Batch status check (up to 100 comma-separated order IDs) curl -X POST https://flowlycore.com/api/v2/ \ -H "Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "action=status&orders=94821,94822,94825"
Example Batch Status JSON Response:
{
"94821": {
"charge": "1.20",
"start_count": "1450",
"status": "In progress",
"remains": "350",
"currency": "USD"
},
"94822": {
"charge": "0.85",
"start_count": "320",
"status": "Completed",
"remains": "0",
"currency": "USD"
},
"94825": {
"error": "Incorrect order ID"
}
}
Interpreting Status Fields (charge, start_count, status, remains)
Your status-syncing cron job should parse each returned field as follows:
status: Updates the badge shown to your customer (such asPending,In progress,Completed,Partial, orCanceled). Once an order reaches a terminal state (Completed,Partial, orCanceled), stop polling that ID in future cron runs.start_count: The baseline metric recorded on the target link right before fulfillment started. Display this on the customer's order receipt for transparency.remains: How many units are still queued for delivery. If an order ends with aPartialstatus, useremainsto calculate the exact pro-rata refund owed to your customer.charge¤cy: The exact wholesale amount deducted from your Flowly wallet inUSD, allowing your panel to calculate net profit per order automatically.
Handling Failed API Requests and Preventing Duplicate Orders
A resilient automation system must distinguish between errors that require user correction, errors that require admin intervention, and temporary network issues. Flowly's API uses clear HTTP status codes to help your code make the right decision:
| HTTP Status Code | Meaning in SMM Orders Workflow | Automated Panel Action |
200 OK | Request succeeded (order created or status returned). | Save the remote order ID or update order metrics in your database. |
400 Bad Request | Validation failed (missing parameters, invalid link format, or quantity outside the service's min/max limits). | Do not retry. Mark the order for validation review or prompt the customer to fix their link/quantity. |
401 Unauthorized | Missing, invalid, regenerated, or deleted sk- API key. | Pause the queue and alert your admin to verify the active key in the API Access dashboard. |
402 Payment Required | Insufficient Flowly wallet balance to cover the wholesale order cost. | Hold the order in a Pending Provider Balance queue. Alert the admin to top up the wallet, then re-dispatch automatically. |
429 Too Many Requests | Your server is sending requests too aggressively. | Back off and increase the interval between cron job runs; batch up to 100 IDs per status request instead of polling individually. |
500 Server Error | Temporary server-side issue or timeout. | Log the attempt and flag for verification before re-sending action=add to prevent accidentally submitting duplicate orders. |
Critical Rule for Preventing Duplicate Orders: Never configure youraction=addworker to blindly retry on a connection timeout or500response without locking the local order record first. If a network drop prevents your server from receiving the{"order": ...}response, check your request logs in the API Access dashboard to confirm whether the order was created before dispatching it a second time.
SMM Order Automation Checklist
Before turning on full auto-fulfillment for your customers, run through this technical checklist:
- Server-Side Key Storage: Your
sk-secret key is stored in environment variables (.env) or encrypted backend settings—never in client-side code. - Catalog Validation: Your local database enforces the exact
minandmaxquantity boundaries returned by Flowly'sservicesaction so invalid orders are caught before calling the API. - Remote ID Persistence: Your database schema reliably links every
local_order_idto Flowly's returnedprovider_order_id. - Batched Status Cron Job: Your status worker groups active orders into comma-separated batches (up to 100 IDs per
action=statusrequest) and excludes completed or canceled orders from future checks. - Low-Balance Safeguard: Your panel handles
HTTP 402gracefully by queuing the order locally and notifying an administrator rather than showing raw API error messages to your retail buyer.
Ready to put your fulfillment pipeline on autopilot? Explore the complete endpoint reference in the Flowly Developers documentation or generate your credentials in the API Access dashboard to start automating orders today.
Frequently Asked Questions (FAQ)
Does polling order status (action=status) cost money or use a daily quota?
No. Checking order statuses, fetching the service list, or checking your wallet balance on the SMM Orders API v2 is free. Your prepaid wallet is only charged when you place a valid SMM order using action=add. (The 100 daily free requests quota applies exclusively to Flowly's separate Tools API v1.)
How often should my panel poll for order status updates?
For most SMM panels, running a background cron job every 5 to 15 minutes provides an ideal balance between timely customer updates and low server overhead. Always batch up to 100 active order IDs using the orders parameter rather than making individual HTTP calls for each order.
What happens if a customer places an order when my Flowly wallet balance is too low?
Flowly's API will reject the action=add request with an HTTP 402 Payment Required status code and no remote order will be created. Most SMM panels keep the customer's order in a local "Pending" queue so the admin can top up their provider wallet and push the queued order through without requiring the customer to reorder.