Terminate a Subscription (Subnet / Service)
This guide explains how to terminate an active subscription (for example, an IPv4 subnet lease) using the IPXO API. A termination can be:- End of period – service remains active until the current billing period ends
- Immediate – service is terminated right away (irreversible)
Prerequisites
Before starting this flow, you need:- A valid access token (
{access_token}) - Your tenant UUI (
{tenant_uuid}) - At least one active subscription
Flow overview
At a high level, terminating a subscription consists of:- Listing active subscriptions
- Selecting a subscription to terminate
- Creating a termination request
- (Optional) Cancelling a pending termination
1) List active subscriptions
Try itStart by retrieving all active subscriptions for the tenant.
What this does
- Returns all currently active subscriptions
- Each subscription represents a recurring service (e.g. subnet lease)
What to save from the response
From the selected subscription:uuid→{subscription_uuid}
2) Terminate a subscription
Try itCreate a termination request for the selected subscription.
Termination types
| Type | Behavior |
|---|---|
end_of_period | Service remains active until current billing period ends |
immediate | Service is terminated immediately (cannot be undone) |
⚠️ Important: Immediate terminations are irreversible.
End-of-period terminations can be cancelled before the period ends.
Termination reason
There are more termination reasons available.For this API example, only one is provided (
Pricing).
What this does
- Creates a termination request
- Marks the subscription for termination
- Does not immediately delete the service (unless
immediate)
What to save from the response
uuid→{subscription_termination_uuid}
3) (Optional) List termination requests
If you need to:- Verify termination status
- Retrieve the termination UUID
- Check whether a termination can be cancelled
Try itList pending termination requests for the subscription.
When this is useful
- You didn’t store the termination UUID
- You want to check if termination is still pending
- You want to allow the user to undo termination
4) (Optional) Cancel a pending termination
Try itIf the termination type was
end_of_period, it can be cancelled before it is executed.
What this does
- Cancels a pending termination request
- Keeps the subscription active
- Restores normal recurring billing
Subscription lifecycle summary
Variables created in this flow
| Variable | Source | Purpose |
|---|---|---|
{subscription_uuid} | List subscriptions | Identify service to terminate |
{subscription_termination_uuid} | Terminate subscription | Track / cancel termination |