In order to use Australia Post, you'll need to ensure you are using a valid Australian address as your origin. You'll also need to ensure your Craft Commerce default currency is set to AUD.
Register for an API key via the Australia Post developers (opens new window) website. Use this API Key in the provider information either through the control panel, or in the configuration file.
The below service are available with Australia Post for domestic and international customer destination addresses.
Domestic
AUS_PARCEL_COURIERAUS_PARCEL_COURIER_SATCHEL_MEDIUMAUS_PARCEL_EXPRESSAUS_PARCEL_EXPRESS_SATCHEL_500GAUS_PARCEL_REGULARAUS_PARCEL_REGULAR_SATCHEL_500GInternational
INT_PARCEL_COR_OWN_PACKAGINGINT_PARCEL_EXP_OWN_PACKAGINGINT_PARCEL_STD_OWN_PACKAGINGINT_PARCEL_AIR_OWN_PACKAGINGINT_PARCEL_SEA_OWN_PACKAGING
Add the following code to your configuration file under the providers array, as per the below. Note that to disable certain services, simply omit them from the services array.
'providers' => [
'australiaPost' => [
'name' => 'Australia Post',
'markUpRate' => '<yourMarkUpRate>',
'markUpBase' => '<value>',
'settings' => [
'apiKey' => '<yourApiKey>',
],
'services' => [
'AUS_PARCEL_EXPRESS' => 'Express Post',
'AUS_PARCEL_REGULAR' => 'Parcel Post',
],
],
]