{{ activeApiMethod.description }}

Resource information

Rate Limited?
No
Requests per rate limit window
-
Authentication
Secure API Key
Response Formats
json
HTTP Methods
POST
Resource family
Serviceability
Response object
Result
API Version
v1.0

Service capabilities

This interface provides information on the availability of a given On Demand product to send from a particular locality (state, suburb & postcode) to a particular destination locality. The request is wrapped in a list to support multiple serviceability lookups in a single request. It is assumed that the requested origin and destination are valid addresses and the requested product requires a serviceability check. No additional validation will be performed by the service.

Service availability

Serviceability lookup is only applicable to the following On Demand products:

Requests for other products will not be serviceable

Example Request

POST
https://digitalapi.auspost.com.au/shipping/v1/serviceability/lookup

Example Serviceable Response

HTTP Response Code: 200

Example Unserviceable Response

HTTP Response Code: 200

Example Error Response

HTTP Response Code: 400

References

Request Field Reference

Element NameDescriptionOptional / MandatoryType
product_idThe unique code of the eligible On Demand product to lookup serviceability for. Valid values are: TON, SAT, AFT, TONID, SATID, AFTID.MandatoryString
fromThe from location of the serviceability request.Mandatory
stateThe state code for the from location. Valid values are: ACT, NSW, NT, QLD, SA, TAS, VIC, WA.MandatoryString
postcodeThe postcode for the from location.MandatoryString
suburbThe suburb for the from location.MandatoryString
toThe to location of the serviceability request.Mandatory
stateThe state code for the to location. Valid values are: ACT, NSW, NT, QLD, SA, TAS, VIC, WA.MandatoryString
postcodeThe postcode for the to location.MandatoryString
suburbThe suburb for the to location.MandatoryString

Response Field Reference

Element NameDescriptionType
resultsThe list of results for the serviceability lookup. There will be one result for each lookup in the request.List
product_idThe unique code of the eligible On Demand product that the serviceability lookup result is for. Valid values are: TON, SAT, AFT, TONID, SATID, AFTID.String
fromThe from location of the serviceability request.
stateThe state code for the from location. Valid values are: ACT, NSW, NT, QLD, SA, TAS, VIC, WA.String
postcodeThe postcode for the from location.String
suburbThe suburb for the from location.String
toThe to location of the serviceability request.
stateThe state code for the to location. Valid values are: ACT, NSW, NT, QLD, SA, TAS, VIC, WA.String
postcodeThe postcode for the to location.String
suburbThe suburb for the to location.String
serviceableWhether or not the requested to and from locations are serviceable by the requested product.Boolean
errorsThe list of errors that caused the lookup result to be unserviceable.List
errorsThe combined list of all the lookup results' errors.List
codeThe code associated with the error.String
nameThe name category for the error.String
messageThe human readable error message.String
fieldThe request field that is in error.String

Error Response Field Reference

Element NameDescriptionTypeLength
errorsThe error codes and descriptions related to the action attempted.Array
codeThe code associated with the error.String
nameThe name category for the error.String
messageThe human readable error message.String
contextA map of values that attempts to highlight important information that may have caused the error. This may or may not be populated depending on the type of error.Map

Error Code Reference

CodeNameExample Message
40002JSON_MANDATORY_FIELD_MISSINGThe input request is missing the mandatory field with the name <field name>. Please resubmit the request including the required fields and values.
82000UNSERVICEABLE_INVALID_STATE_COMBINATIONThe from and to state are required to be the same for product <product id>.
82001UNSERVICEABLE_TO_ADDRESSThe requested to address <suburb postcode state> is not supported by product <product id>.
82002UNSERVICEABLE_FROM_ADDRESSThe requested from address <suburb postcode state> is not supported by product <product id>.