Your systems can read and manage your NBN and Opticomm services through the
API, under /data. The
full reference lists every call and
its fields. This page covers the rules they share.
Naming a service
Address a service by its product reference or by its service reference, in any case. A product reference is an NBN PRI or an Opticomm product. A service reference is an AVC. Where a carrier has reused a reference, the live service answers, then a suspended one, then the newest.
The services list
GET /data/services opens as the portal’s Services list does: the most
recently requested first. A service with no request date, such as one taken
over from another provider, comes after them. With sort, a service with no
value in the sorted field comes last, either way round. Each row carries the
plan you are billed for, the location id, the POI, your customer reference
and your tags.
It takes the portal’s filters: network, status, technology,
customerReference, plan, locationId, endUser and tag. plan is a
SKU, and locationId is a LOC or OPC id. q searches what the portal’s
search does. A value a filter does not know is refused with 422, never
answered with a wider list.
The carrier-shaped GET /nbn/products lists your NBN services in nbn’s own
shape, as do /nbn/products/active, /in_progress and
/recently_disconnected. Each takes two filters:
| Filter | What it takes |
|---|---|
productType |
The traffic class each row shows: EE for Enterprise Ethernet, TC4 for the rest. |
techType |
The product family each row shows as technology: NFAS, NCAS, NWAS, NHAS, NSAS or EEAS. |
GET /nbn/products also takes status, which is Active, the default, or
Deleted. A value a filter does not know is refused with 400, as the
carrier’s own API does. That includes TC1 and TC2, which no service
reports, and an order state such as InProgress.
A suspended service
You can’t suspend a data service through the API. Only we do. A service we
suspend carries suspensionTakesEffect, saying how soon the suspension
takes effect:
suspensionTakesEffect |
The service |
|---|---|
within 15 minutes |
A service we cut ourselves, including one handed to you at layer 2 on your interconnect: its tags come off your port, and come back when it is resumed. |
within 1 business day |
An Opticomm L3 service, which Opticomm suspends for us. |
A live service carries no statement. It is null on /data/services and
on an end user’s services. The carrier-shaped /nbn/products and
/opticomm/product reads have no field at all, and on /nbn/products the
product stays Active.
The orders list
GET /data/orders gives one short row per order: its type, status, network,
location, your reference, its service, its end user, and what it waits for
from you, if anything. The whole order is its href.
An open order is always listed, however long it has waited. Finished orders
are listed for 30 days. Ask for status=completed, status=failed or an
updatedSince to reach older ones. status=open is every order not yet
finished.
Bundles
POST /bundles starts a bundle, and each item joins it through its own order
call with the bundle’s id. A bundle is submitted as a data order, so an
account that may not order data services is refused with 403 when it starts
one, as the portal’s bundle pages are closed to it, rather than only when it
submits.
A bundle holds at most 200 draft data orders. One more answers 422 with
code bundle_draft_limit, and no draft is made.
GET /bundles/{id} shows what the portal’s bundle page shows:
totalis the draft data orders’ monthly and one-off charges added up at today’s prices, ex GST, GST and inc GST, withunpricedDraftsfor drafts that have no price yet. Each draft’s ownpriceis on its item. Both needbilling:read.canCheckoutis on each draft. When it isfalse,checkoutBlockedReasonandcheckoutBlockedMessagesay why:refused_by_rules,incomplete,needs_appointment,qualification_expiredorprice_changed.draftRemovalon each draft says when it is removed if it is not checked out, and whether Keep can still move that date.POST /bundles/{id}/keepkeeps every draft that can be kept for another 30 days, up to 90 days from when it was made.
To check out some of the drafts, send their ids as orders on
POST /bundles/{id}/submit. The rest stay drafts in the bundle. Without
orders, every ready draft goes. The answer’s orders has one entry per
draft: submitted, scheduled with sendAt, or refused with the same
reason the draft’s item shows. One refusal stops none of the rest. A draft
whose price has gone up is refused with price_changed and the new price.
Accept it with PATCH /bundles/{id}/items/{itemId} and
{"acceptNewPrice": true}, then submit again.
Proof of occupancy
An NBN order for a premises whose end user has moved in, where the AVC of the
service still on the line can’t be given, is a Connect Outstanding with a
proof of occupancy:
POST /data/occupancy-documentswith the file as a multipartfile: a PDF, JPEG or PNG of 10 MB or less. It answers201with the document’sid. It needsdata:create.- Place the order with
transferType: "Connect Outstanding"andoccupancyDocumentIdset to thatid, and noserviceRef.
A document is used by one order only. Another order naming it is refused
with 422. A retry of the same order, with a new Idempotency-Key and the same
orderReference, may name it again. The document is kept with the order as
its evidence. If the first call stopped before the order was sent, the retry
keeps the document it names with the order before sending it. An order that
already keeps a document keeps that one. The portal’s qualification page
takes the same file. See
When there is no AVC to give.
Fibre Uplift
Where GET /data/sq/{locId} says upliftAvailable, NBN can replace the
premises’ FTTN, FTTB or FTTC line with fibre. A 12-month term applies, as the
portal says. To order it:
- Choose an uplift plan: a
bandwidthProductSkuthat ends-UPL. Any other plan is refused with 422, and an uplift plan on any other order is too. POST /data/orderswithinstall: "fibreUplift", and noresourceId,transferTypeorserviceRef. NBN’s own uplift qualification is read again first. A location it no longer offers is refused with 422.- A technician installs the new NTD. Without an
appointmentIdthe order waits for one (order.appointmentRequired). Read its timeslots withGET /data/orders/{orderId}/timeslots, reserve one withPOST /nbn/appointments/reserveandalternativeTechnology: "Fibre", and send it withPATCH /data/orders/{orderId}.
To book it for a day ahead, send fibreUplift: true and the appointmentId
to POST /nbn/orders/delayed. It is placed at once with that appointment,
as any order a technician attends is.
Tags
Tag services and orders with your own names, such as a site or a cost centre:
PUT /data/services/{ref}/tagssets a service’s whole list.[]clears it.tagsonPOST /data/orderstags the order, and the service it builds carries them.tagfilters either list. Repeat it and a row must carry every one.GET /data/tagslists your tags with how many services and orders carry each.
A tag is trimmed and matched ignoring case: “Brisbane Office” and “brisbane office” are one tag. Each is at most 255 characters, and a service or order carries at most 20.
Sessions
GET /data/services/{ref}/sessions lists the service’s connection sessions,
newest first: start, end, duration, address, bytes each way, the router’s MAC
and why each ended. from and to narrow it to a window of at most 90
days. Without them you get the last 90 days. A longer window is refused with
422, so read a longer period 90 days at a time.
- On our own network, the sessions come from our RADIUS and are current.
- On an Opticomm Layer 3 service, they are what Opticomm last told us, and
retrievedAtsays when. Reading never asks Opticomm. To ask, callPOST /data/services/{ref}/sessions/refresh. It needsdata:update. The sessions are on the list a minute or two later, and thedata.radius.sessionRetrievedwebhook says when. While one request is on its way, another is refused with 409. - A service whose sessions another carrier holds, such as a Kinetix Layer 3
service, has no history here. Its current session is on
GET /data/radius/{ref}/session. - A service handed to you at layer 2 on your interconnect never logs on to our RADIUS, so it has no sessions here: the list is refused with 422.
Is it online now
GET /data/radius/{ref}/online says whether the user has a session up, and
GET /data/radius/{ref}/session gives that session. On our own network and
on a Kinetix Layer 3 service they are read live on every call.
On an Opticomm Layer 3 service they answer from the latest session check at
Opticomm, and retrievedAt, or the session’s lastSeenAt, says when
Opticomm reported it. Reading never asks Opticomm, so a monitoring script on
a data:read key places no carrier tests. To ask, call
POST /data/radius/{ref}/session-check with an Idempotency-Key. It needs
data:update, counts against the carrier-write limit, and is refused for a
service that is not live and while your account is suspended. It answers
202 with Retry-After. A check already on its way is reused. Until the
answer is in, the reads answer 202 too, and the
data.radius.sessionRetrieved webhook says when it arrives. With no check
held, the reads answer status: NotChecked rather than online or offline.
A service handed to you at layer 2 on your interconnect never logs on to our
RADIUS. Its reads answer status: NotOnOurRadius with source: handoff,
never online or offline. GET /data/radius/{ref} gives detailSource: handoff with the detail unavailable, and on GET /data/services/{ref} its
session is NotOnOurRadius. A reset or a session check of it is refused
with 422.
Resetting a session
After a password or plan change, DELETE /data/radius/{ref}/session drops
the service’s live session. It needs data:update. The service connects
again on its own, with the change. The call answers:
| Answer | When |
|---|---|
202 |
The session is dropped. |
409 with no_live_session |
Nothing is connected. |
422 with session_not_resettable |
The service’s session is held where we cannot reset it, such as a carrier’s RADIUS. |
A service that is not live, or an account that is suspended, is refused. The audit log names the key that asked.
GET /data/radius/{ref}/online and the reset share one limit: 2 a second
and 30 a minute for your account. Past it you get 429 with Retry-After.
Usage
GET /data/services/{ref}/usage gives a month’s usage by day. Months and days
are cut in Brisbane time, as your bill is.
GET /data/usage?period=YYYY-MM gives the same month for every service on
your account in one paged call, one row per service: download, upload and
total bytes, the plan’s allowance, the share of it used, and whether the
month is complete. Each row’s totals match the per-service read. endUser
and network narrow it, as on GET /data/services. A service disconnected
before the month began has no row.
Line tests
The same calls run a line test on an NBN or an Opticomm service, so you do not need to know the carrier or its test names:
GET /data/services/{ref}/diagnostics/typeslists the tests the carrier allows for the service now. Each says when to use it, when to raise a fault ticket rather than test again (escalateIf), and the inputs it takes.POST /data/services/{ref}/diagnosticswithtest, a code from the list, andinputsruns it. It needsdata:updateand anIdempotency-Key, and counts against the carrier-write limit. The service must be live. It answers202with the test’s id.GET /data/diagnostics/{id}gives the test and, once the carrier answers, its result.GET /data/services/{ref}/diagnosticslists the service’s tests, newest first, and takesstatus,typeandresultfilters.
While the same test is still running on the service, a second is refused with
409, and error.runningTestId names the one running. Nothing reaches the
carrier, so a reset is never sent twice. When the carrier’s test system is
down, you get 503 with Retry-After. Session history is not a line test
here. Read it from GET /data/services/{ref}/sessions.
Is anything wrong at this service
GET /data/services/{ref}/incidents answers in one call what your portal’s
service page shows, on either network:
outages: the entries on our outage register that cover the service’s address, asGET /outagesgives them. Each carries the cause, the premises affected andserviceCounts, the count of services hit by type, so you can report the outages you must report, andupdates: each update we posted on it as{at, text}, newest last, the newest being itsadditionalInfo.plannedWork: the maintenance windows you were told of whose area takes in the service’s address.degradations: the Potential Service Degradations at its point of interconnect, where the service may be slower at peak but is not down.
Open ones only, unless you add include=resolved for those resolved in the
last 30 days. A service with nothing on it answers three empty lists.
Contract term and disconnecting
GET /data/services/{ref} carries contract: when the term ends, and what
disconnecting today would charge, as the portal’s Contract Term card shows.
The term is the current plan’s. A charge we have waived reads 0.00, with
earlyTerminationChargeWaived true.
GET /data/services/{ref}/disconnect-quote?ceaseOn=YYYY-MM-DD prices a
disconnect on that day: today by default, up to 90 days ahead. It shows one
line for the plan and one for each add-on. A line whose charge we waived
reads 0.00 with chargeWaived true, and so does the total when nothing is
left to charge. Reading it books nothing.
PPPoE passwords
PATCH /data/radius/{ref}/password changes a PPPoE password only where our
own RADIUS checks it. A service must be live, and its password may hold
printable characters except a quote, an apostrophe or a backslash. A service
that logs on at the carrier keeps the password the carrier holds, so the call
is refused with 422.
Testing without the carrier
The carrier’s own test switch is not accepted. To try a call without reaching the carrier, use the sandbox.