Build with the AlwaysCompleted API
Connect AlwaysCompleted to your server-side workflow to retrieve services, place orders and follow their progress. This guide takes you from your first read-only request to the checks that matter when creating orders. Keep the API reference open for the complete parameter lists and response examples.
Get ready to connect
- Create an account and use your account’s API key in your server-side configuration.
- Read the service catalogue and the terms of the services you plan to offer. Requirements, available options and order limits depend on the selected service.
- Send requests from your own backend over HTTPS. Keep normal TLS certificate verification enabled.
- Store the API key securely on your server. Keep it out of public pages, browser JavaScript, screenshots and shared code examples.
For a credential change, use the API key rotation and redacted logging runbook to inventory consumers and plan the handoff without putting keys in logs.
Use the PHP API starter for a server-side example with TLS certificate and hostname verification, request timeouts and a read-only first run. Follow the included setup notes before making a live API request.
Make your first read-only request
The documented endpoint accepts POST requests and returns JSON. The official request example uses URL-encoded form parameters. Every action includes your API key and an action name.
POST https://alwayscompleted.com/api/v2
key=YOUR_API_KEY&action=services
Replace the placeholder only in your server-side configuration. The services action reads the catalogue; it does not create an order. Use its response to identify service IDs and inspect the available fields before building your order form.
Use current service and account information
The service list documents each service’s name, type, category, rate, minimum and maximum quantity, plus refill and cancellation indicators. Match the chosen service ID to its current description and requirements. Use the returned data when preparing an order instead of copying illustrative IDs or prices from documentation examples.
Use action=balance to read your account balance and its currency. Treat example amounts in the reference as sample data. Your application should display the actual response and handle errors before continuing.
Connect an SMM API to your website
If you are choosing AlwaysCompleted as your SMM panel API provider for an existing storefront, keep your customer-facing product codes separate from the service IDs returned by AlwaysCompleted. Build the connection around two records:
- SMM API service mapping: link each product in your own system to the selected AlwaysCompleted service ID and the checked service type. A familiar name or an ID returned by another API is not a verified match. Review this mapping before switching the service behind an existing product.
- Order mapping: retain your customer order reference and the AlwaysCompleted order ID returned after creation. Use the AlwaysCompleted ID for API status requests and keep the customer reference for your own records.
Begin by reading current services and balance. Verify the mapping and the required fields before enabling customer submissions through the connection. This integration plan does not assume a ready-made connector for any particular shop or panel software.
Handle changes to a cached catalogue
When refreshing a cached catalogue, check for removed service IDs and changed rates or quantity limits before making saved options available again. If a selected ID is absent from the current response, pause that order for review instead of choosing a service with a similar name. If a rate, type or quantity limit changes, update your form and validate the selection again before sending action=add. Save the checked service details with your local order record so later questions can be traced to the selection your application actually reviewed.
Work through the offline catalogue change exercise, then use the service-type validation examples to check how supported input requirements affect your form. Both use fictional records.
Create orders deliberately
To create an order, send action=add with the selected service ID and the fields required for that service type. A Default order uses link and quantity; other types have different parameters. Check the matching section of the reference before submitting.
If an order-creation request loses its response, your application may not know whether the server created the order. Treat the outcome as unresolved in your own system; a missing response is not proof that creation failed.
Check the known outcome before retrying
- A successful response included an order ID: save it and use the documented status action. Do not send another creation request to test connectivity.
- An order ID is known, but a status read fails: keep the ID and resolve the read problem. The error is not proof that the order does not exist.
- Creation was sent, but no usable response or ID arrived: pause automatic resubmission, inspect available dashboard records and contact technical support if the result remains unclear. Do not use an invented ID or your local reference as an order ID.
- Local validation stopped transmission: correct the input and submit only after validation passes. This is a local outcome, not an API order status.
For an unresolved submission, keep the local request reference, submission time, selected service, destination and quantity for reconciliation. Exclude the API key from logs and support materials. Resume after clarifying the outcome. These steps do not assume that the API supports an idempotency key or a lookup by your local reference.
Practise the unresolved-outcome workflow with the local order-intent exercise. Its simulated incident keeps a missing response separate from a confirmed failure.
Track orders and supported follow-up requests
Use action=status with order for one order, or orders with comma-separated IDs for a batch of up to 100. The documented response includes status, charge, start_count, remains and currency. Inspect each result: a batch can contain an error for an individual ID.
The mixed batch status exercise shows how to retain valid results while recording an item error, a missing ID or an unexpected response shape.
Refill and cancellation are requests subject to availability and the selected service’s conditions. Use action=refill to request a refill, action=refill_status to follow it and action=cancel to request cancellation. The documented batch variants accept up to 100 IDs. Submitting a request does not guarantee that a refill or cancellation will be approved.
Before a live connection check, run the offline integration fixture suite to review twelve defined cases without an API key or network requests. A local pass does not verify your live account or every service type.
Continue your integration
Use the full API reference for exact action parameters and examples. If you are building a customer-facing service workflow, see AlwaysCompleted for resellers. Review the Terms & Policy alongside each service’s description before accepting customer orders.