SMM reseller API: prevent duplicate orders and reconcile delivery
Updated:
Map the catalogue before selling
Import the current services through your account’s API documentation. Store your product ID separately from the panel service ID, together with the rate, pricing unit, limits and refill terms. Approve a small catalogue first. Stop selling a service when it becomes unavailable or its terms no longer match your offer. API access does not create customers or guarantee profit.
Keep credentials and spending on your server
Keep the API key out of browser code, screenshots and public repositories. Check balance and catalogue access before enabling paid orders. Validate the destination and quantity on your server, and obtain the customer’s approval for the exact charge. The current standard order endpoint accepts a link and quantity; do not assume it supports subscription or drip-feed parameters.
Make one purchase survive a timeout
Create one unique Idempotency-Key for each intended purchase, save it before sending, and reuse it with the same payload if the request must be retried. A new key represents a new request and may create another charge. Store the returned panel order ID against your customer’s purchase. If the outcome remains ambiguous, stop automatic retries and reconcile the record with support before charging again.
Reconcile delivery and customer accounts
Check status at a controlled interval, back off on rate limits, and stop routine polling after a final state. Status synchronization reflects available provider updates; it is not a promise of instant delivery. Keep original charge, delivered amount, remaining amount and credited refund as separate fields. Resolve a partial delivery against the actual settlement rather than marking every non-completed order fully refunded. Retain support references without logging API credentials.
A launch checklist
Test catalogue mapping, invalid links, insufficient balance, timeouts and duplicate submissions in your own integration before accepting customers. A small authorized live test still spends real balance. Write realistic delivery terms, explain platform-policy risks and keep a support/refund reserve. Review margin after supplier cost, payment costs and staff time, not only after the headline service price.
