Fields and values
Field names are camelCase.
Money is a decimal string in Australian dollars, such as "49.95", with a
currency field beside it.
A price or charge comes as three fields. …ExGst is the amount without
GST, …Gst is the GST, and …IncGst is the amount with GST. The total, for
example, is totalExGst, totalGst and totalIncGst. On a GST-free
account the GST is "0.00" and the other two are equal. On an invoice or
credit note the three are as it was issued. Everywhere else we work them
out with your account’s GST treatment today. Some objects still have a
single older money field beside the three, such as total or cost. We
keep it for now, and the reference marks it deprecated. A payment, a
balance and a credit limit are one figure each, and the reference says
whether it includes GST.
One object comes back in result, and a list comes back in results.
An id is a string. Store it and compare it, but don’t parse it or rely on
its format. Webhook bodies use the same ids as the API.
An end user is named by its number, as endUser, in every request and
response. Where a response also shows the end user’s name, it is in
endUserName.
Where a list or read names a related record, expand puts the whole record
inline. For example, expand=endUser on your services adds endUserDetail.
Objects carry createdAt and updatedAt. They are in UTC unless you ask
for your own zone, as described under Time zones.
Answers
A create answers 201 with the new resource. Every other success answers
200.
A delete that is done at once answers 204 with no body. A delete that has
to wait on someone else, such as releasing a number, answers 202 with the
object’s new status.
Lists
Every list of your own records takes page and perPage. It returns
total, page and perPage alongside results. perPage is 50 by
default and can be from 1 to 200. A value outside that range answers 422
naming the field. We never change it for you quietly.
Lists also take sort, and q to search. They take updatedSince,
createdFrom and createdTo with an ISO 8601 date or time. sort takes a
field the reference names. Put - in front of it to sort descending. A
filter such as status takes several comma-separated values, in any case:
status=open,pending. An unknown sort field or filter value answers 422.
Some lists grow while you read them, so they also return nextCursor.
These are payments, tickets, SMS, webhook deliveries and call records. Pass
nextCursor back as cursor until it is null, and you read every record
exactly once. Some short lists come back whole, and some download as CSV or
NDJSON. Paging through lists says which.
Time zones
Every time is in UTC unless you ask for your own zone. To use your own,
send CN-Time-Zone: Australia/Perth, or any other IANA zone name. Then:
- every time in a JSON response comes in that zone with its offset, such
as
2026-11-22T09:30:00+08:00 - a date on its own in
createdFrom,createdToorupdatedSincemeans that day in that zone - the response sends the header back.
A name that is not a zone answers 422 naming CN-Time-Zone.
The header does not change downloads (CSV, NDJSON, PDF), webhook deliveries
or the carrier-shaped /nbn and /opticomm bodies. It also leaves alone
anything you set yourself, even when it looks like a time. That covers
metadata, externalRef, your references (orderReference,
customerReference, customerRef, salesReference, paymentReference,
paidReference) and your own name, description, note and notes
text.
When you send a date, such as a port’s preferredCutoverOn, we check it
against today in your CN-Time-Zone. Without the header we check it
against today in your account’s time zone.
Billing dates follow your bill’s calendar. On invoices and credit notes,
both yours and your end users’, issuedFrom and issuedTo match the day
each one shows, in the time zone it was cut in. paidFrom, paidTo, the
usage months and a data service’s usage days are in your account’s time
zone. You set that zone in Company Settings. It is Brisbane until you set
another. When you send CN-Time-Zone, we read these dates in that zone
instead.
Your own references
Trunks, numbers, data services and tickets carry your own externalRef
and metadata. Use them to hold your customer or job ids, so you don’t
need to keep a map from our ids to yours.
| Field | What it holds |
|---|---|
externalRef |
Up to 64 letters, digits, _, . or -. It is unique on your account for each kind of object. |
metadata |
Up to 20 keys. Each key is up to 40 of those characters, and each value is text of up to 255 characters. |
Set them when you create the object, or later with PATCH. A field you
leave out of a PATCH is kept, and null clears it. A number order, a data
order and a trunk drafted into a bundle take them too. They hold them until
the number, service or trunk is made. Every read and webhook about the
object returns them, and each list takes externalRef= to find one.
An order’s own reference is its orderReference. It is also returned as
salesReference.
Carrier-shaped endpoints
Some /nbn and /opticomm endpoints mirror the carrier’s own API, so an
integration written for the carrier works here unchanged. They return the
carrier’s own bodies and status codes, without the result wrapper, and
they are not paginated. They are:
- the
/nbnservice qualifications (single_site,fibre_uplift,enterprise_ethernet) /nbn/address/search,/nbn/address/geocode,/nbn/address/{locId}and/nbn/planning/{locId}- the
/nbn/product_qualificationservice_typesandbandwidths - the diagnostic test catalogue
- Opticomm
productOrders.
We remove our account identifiers from these bodies, and links point at
this API. The /nbn endpoints take the carrier’s snake_case query parameter names
(loc_id, service_ref, customer_authority_date, location_ref,
service_type) as well as ours. Lists of your own records under those
paths, such as your NBN inventory, are paginated as usual. Where we add a
field or parameter to a carrier’s shape, the reference marks it “Ours”.
Errors
Errors use standard HTTP status codes. The JSON body has an error object
that tells you more:
| Field | What it is |
|---|---|
code |
The value to branch on in your code. |
reason |
A message for a person to read. |
messageId |
The request’s id. |
docUrl |
A link to the code’s row in API errors, which lists every code and what to do about it. |
Every error comes back as this JSON body, whatever your Accept header
says. That includes an unknown path.
| Status | Meaning |
|---|---|
400 |
The body could not be parsed, or a required header is missing. On the carrier-shaped endpoints, it can also be a bad input, as the carrier answers it. |
401 |
The access token is missing, expired or invalid, or its key is past its end date (key_expired). |
403 |
Refused. code says why, such as missing_scope, key_revoked, ip_not_allowed or account_suspended. |
404 |
Not found. We give the same answer for something on another account. |
405 |
The path exists, but not for this method. |
409 |
The resource isn’t in a state that allows this right now. |
422 |
An input was wrong (validation_failed, with fields naming it), or we refused the request on its merits. reason says why. |
429 |
Too many requests. See API rate limits. |
501 |
The endpoint is Coming Soon, or isn’t offered in the sandbox. |
5xx |
A problem on our side or with the carrier. Try again shortly. |
POST /oauth/token is the exception. It answers a wrong secret in OAuth’s
own shape. See Token errors.