Infrastructure & virtualisation

Proxmox Automation Order Lifecycle Guide

Separate payment, provisioning, suspension and termination in Proxmox automation. Design consistent service states for repeated events.

In Proxmox automation, the order lifecycle covers the states from payment notification through service cancellation. Creating a machine is only one part of this flow. Customer records, invoice status, infrastructure operations and delivery details may change at different times. A reliable design must also handle situations where these records fall out of sync.

For a hosting business, asking which record is authoritative during a delay, retry or cancellation matters as much as asking whether a server is provisioned automatically. The model described here is an operational recommendation; it does not claim that VMRobot implements every detail out of the box. Review the scope of your integration on the WHMCS Proxmox or WISECP Proxmox pages and verify the behavior in your own version.

Keep three distinct states separate from a single “active” label

Commercial status describes the customer’s payment and contract position. Provisioning status tracks the infrastructure operation’s progress. Infrastructure status records whether the VM exists and is running. An invoice may be paid while provisioning is still incomplete. A commercially suspended service may still need its disk data preserved.

Link the state records without forcing them to mean the same thing. “Paid,” “provisioning” and “running” are distinct outcomes. Customer messages should not promise delivery based solely on payment confirmation. If provisioning is delayed, show a clear status confirming that the order has not been lost and that operations staff are tracking it.

Checks to apply before the payment event

Before an order enters the provisioning queue, the product must be valid, the customer’s selected options must be within the permitted scope, and the business’s approval policy must be satisfied. The payment provider’s notification must also be validated within its integration. Receiving payment is no reason to attempt provisioning with an invalid template or a package for which capacity is unavailable.

In a hypothetical flow, payment is verified, product options are checked, resources are reserved and the provisioning job is recorded. Adapt this sequence to your needs. Record the outcome of every step persistently. A successful HTTP response alone does not mean that the next step took place.

Create a decision table for state transitions

EventPrerequisiteExpected result
Payment verifiedValid order and productProvisioning job recorded
Provisioning completedResources and access verifiedService ready for delivery
Suspension requestedCorrect service and authorized eventAccess restriction in accordance with policy
Resumption requestedSame suspended serviceAccess restored with data preserved
Termination confirmedRetention and approval requirements metControlled resource removal

Define prohibited transitions as well. A stale resumption event for a terminated service must not create a new machine. A request to suspend a service that has not yet been provisioned may need different handling. Record a clear outcome even when no action is taken; silently returning success can lead to false assumptions later.

Define the evidence for completed provisioning

Before marking provisioning complete, check the expected machine ID, the correct product resource allocation and the network details needed for delivery. Depending on the product, verifying that the operating system boots and the customer can connect may be additional acceptance steps. Write these criteria before you start selling, so operators interpret “ready” consistently.

In a controlled test, check that the order is linked to exactly one machine. The IP address sent to the customer must not belong to another service. Send the delivery notification after the provisioning result is known. If notification fails, handle that task separately rather than attempting to create the machine again.

Use VPS and VDS concepts correctly in product descriptions so resource allocation matches the sales copy. The purchased package must not imply guarantees about CPU sharing or backups that you have not offered. The lifecycle must match both the technical records and your commercial commitments.

Suspension, resumption and data retention

Suspension temporarily restricts a service; termination may have permanent consequences. Applying both ambiguously through a single command creates serious operational risk. Define whether disks and the service association must be preserved during suspension. Test resumption using the same machine and data.

In a hypothetical scenario, a resumption event arrives after a customer pays an overdue invoice. The acceptance test checks that the service state changes, access returns and a test file remains in place. This does not guarantee data safety under all conditions; it shows only that the defined suspension policy was tested. Backup and disaster recovery require separate plans.

Before termination, check retention requirements, the cancellation date and any backup responsibilities. A customer cancellation may not require immediate deletion. Authorized business staff must determine legal and contractual requirements. Automation must apply that decision to the correct service without inventing its own retention policy.

Monitor notification records independently of the delivery decision

A failed customer notification does not mean the virtual machine was not provisioned. Record the service ID, notification type and result. Resending a message must not trigger infrastructure creation again. In testing, simulate an isolated notification-channel failure and check that the machine count does not change.

Use separate message templates or states for ready for delivery, provisioning in progress and review required. Do not include unverified IP details or access passwords in a ready message. If an old notification job runs late, check whether it sends a message that conflicts with the current service state. Communication accuracy belongs in the same acceptance scope as the lifecycle’s technical records. Customers must understand the current state without being misled by a delayed message from an earlier operation.

Take into account delayed and repeated events

An event arriving twice or being processed later than expected can occur during normal operations. Reprocess the same payment event through a controlled acceptance test. No new machine should be created, and the existing service should not enter an incorrect state. Linking the event ID to the service ID helps identify duplicates.

Two concurrent operations can target the same service: an operator might initiate termination while the customer is waiting for resumption. Define which decision takes priority. Queuing operations per service or using locks are possible approaches. Verify the method your application uses through documentation and testing; the method’s name alone does not guarantee correct results.

What happens if cancellation and installation occur at the same time?

In a hypothetical test, a customer requests cancellation immediately after the provisioning task begins. Business policy must define how to handle it. Options might include stopping provisioning, completing it but holding the service for review before delivery, or another decision. The technical system must apply that policy; completing provisioning must not cause it to disregard the cancellation record.

The acceptance criterion here is a consistent final state rather than immediate speed. Machine inventory, service status, customer notifications and resource reservations must reflect the same decision. If a stale task-success notification arrives after cancellation, check that it does not reactivate the service. Record the operation time and the business-decision time separately where needed.

The operator report should show which event arrived first and which decision governed the action. If manual review is needed, show customers an appropriate pending state instead of a vague active label. Use disposable lab data for cancellation tests. Before any termination test, separately verify the service ID and its machine association to avoid targeting the wrong machine.

Connect WHMCS and WISECP documentation to your workflow

WHMCS's supported module functions and WISECP's server module description are primary references for each platform’s lifecycle concepts. Verify that your module implements the required functions in line with your sales policy. A platform’s capability does not automatically appear in every third-party module.

Record separate results for normal orders, failed provisioning, duplicate events, suspension and resumption, and controlled termination. Correct only the step that failed; restarting the entire lifecycle can accidentally duplicate a service. Keep the links between service ID, event ID and task record central to the report.

Base the final decision on more than the success screen for a new order. Seeing a service’s beginning and end in the same record chain helps define what must be preserved when an error occurs. Combine the overall architecture with the Proxmox automation guide and define tested behavior for every transition that the business understands.