Leased Subnet Management: Assign ASN (Create LOA)
This flow shows how to attach an ASN to a leased IPv4 subnet by purchasing a LOA (Letter of Authorization) add-on, and then how to check LOA status for the service. Use this when a customer has an active leased subnet and wants:- ROA / RPKI support
- route objects (RADB / ROUTE)
- inetnum automation (WHOIS)
Conceptually: validate ASN → add LOA product to cart → checkout → LOA gets created for the service.
Prerequisites
You need:{access_token}(Auth flow){tenant_uuid}{asn}(the ASN to assign to){subnet}(notation string, e.g.82.27.122.0/24){company_name}(used in LOA product fields)- A billing
{address_uuid}available for the tenant (from address list) - A payment method
{payment_method_uuid}available for the tenant (from payment method list)
{service_uuid}of the leased subnet service (typically from “List Services” step in the lease flow)
Flow overview
- Validate ASN for the subnet
- Add LOA/ASN item to cart
- Complete checkout (standard cart steps)
- List LOAs for the service to confirm status (Pending/Active)
1) Validate ASN for the subnet
Try it.Before adding LOA to cart, validate that the ASN is eligible for the provided subnet(s).
What this does
- Checks whether the ASN can be assigned to the subnet
- Returns validation info (AS name, country, flags like OFAC/spamhaus, and whether subnet is already added)
What to look for
valid: truesubnet.already_added: false(if already added, you may not need to purchase again)
2) Add LOA / ASN item to cart
Try itThis adds a LOA product (one-time) to the cart, configured with your ASN + subnet.
What this does
- Adds a one-time purchasable LOA item to the cart
- Specifies optional automation:
roa(RPKI / ROA support)radb+route(routing objects)- inetnum creation preferences
Response
OftenHTTP 204 No Content (same behavior as adding an IPv4 item). If you need confirmation, use List cart items.
3) Complete checkout (standard cart steps)
From here the flow becomes the “standard checkout block” you already have in Lease an IPv4 Subnet.3.1 List cart (get cart_uuid)
Try itList the current cart
{cart_uuid}
3.2 Attach billing address to cart
Try it(Uses the address you already have from earlier List company billing addresses step.)
3.3 (Optional) Apply credits to cart
Try it
3.4 Checkout and create order
Try it
{order_uuid}from response (optional, if you want order verification)
4) List LOAs for the service (Pending / Active)
Try itAfter checkout, LOA creation may take a bit of processing time. This endpoint lets you confirm status.
What this returns
- LOAs associated with the leased subnet service
Pendingright after checkoutActiveonce processed
What to save (optional)
loa.uuidif you later want LOA-specific operations (extend/renew/view details) when you add them.
Variables used and introduced in this flow
| Variable | Where it comes from | Used for |
|---|---|---|
{asn} | User input | Validate + add LOA |
{subnet} | Leased subnet notation | Validate + add LOA |
{company_name} | Customer/company profile | LOA details |
{cart_uuid} | List cart | Checkout steps |
{address_uuid} | List company addresses | Attach billing address |
{payment_method_uuid} | List payment methods | Checkout |
{order_uuid} | Checkout response | Optional order verification |
{service_uuid} | “List services” from lease flow | List LOAs |