Skip to content

Validate a route and evaluate courier rules

POST
/api/v5/locations/validate-route

Validates an origin/destination/items route and returns, per courier, the rules that apply and whether the courier can quote the route. Requires an API key.

object
from

Origin (pickup) location for the route.

object
postcode

4-digit AU postcode of the location.

string
"" nullable
suburb

Suburb/locality of the location.

string
"" nullable
state

State code (e.g. NSW, VIC).

string
"" nullable
country

2-letter ISO country code; defaults to AU.

string
default: AU nullable
type

Address type, “business” or “residential”; defaults to business.

string
default: business nullable
isResidential

Explicit residential flag, overriding type when set.

boolean
nullable
to

Destination (delivery) location for the route.

object
postcode

4-digit AU postcode of the location.

string
"" nullable
suburb

Suburb/locality of the location.

string
"" nullable
state

State code (e.g. NSW, VIC).

string
"" nullable
country

2-letter ISO country code; defaults to AU.

string
default: AU nullable
type

Address type, “business” or “residential”; defaults to business.

string
default: business nullable
isResidential

Explicit residential flag, overriding type when set.

boolean
nullable
items

Items to be shipped along the route.

Array<object>
default:
object
description

Package type/contents description; defaults to “Carton”.

string
default: Carton nullable
packaging

Packaging type override for the item.

string
nullable
weight

Item weight in kg.

number
0 nullable
length

Item length in cm.

number
0 nullable
width

Item width in cm.

number
0 nullable
height

Item height in cm.

number
0 nullable
quantity

Number of identical items; defaults to 1.

integer
default: 1 nullable
couriers

Courier string_ids to restrict validation to; null/omit for all.

Array<string>
nullable

Per-courier validation result

object
couriers
required

Per-courier validation results, keyed by courier string_id.

object
key
additional properties
object
rules
required

Rules that apply to this courier for the route.

Array<object>
object
code
required

Machine-readable rule code.

string
severity
required

Rule severity: “block” (cannot quote), “surcharge” (adds cost), or “prompt” (warn user).

string
Allowed values: block surcharge prompt
msg
required

Human-readable explanation of the rule.

string
surcharge_amount

Surcharge added when severity is “surcharge”, in AUD.

number
meta

Additional structured metadata about the rule.

object
key
additional properties

Arbitrary JSON value (string, number, boolean, null, array, or object).

nullable
can_quote
required

Whether the courier can quote the route (no blocking rules).

boolean

Missing or invalid API key