Posted - 01/03/2018 : 15:48:10
Hi Guys,
I have read in detail about the insurance options. It seems that charging insurance based on the location of the buyer is not possible currently.
I have spoken to the tech department at AUSPOST and they have suggested the following, It seems its doable
Can the following code be added, =================================== Reply from AUSPOST =================================== Can you confirm if you were using the Retail Postage Calculator or one tied to an eParcel account?
For the Retail/Postage Assessment calculator, the insurance price can be retrieved using the “Calculate” endpoints (/domestic/calculate). For example, https://digitalapi.auspost.com.au/postage/parcel/domestic/calculate.json?from_postcode=3000&to_postcode=3000&length=20&height=10&width=20&weight=5.04&service_code=AUS_PARCEL_REGULAR&option_code=AUS_SERVICE_OPTION_STANDARD&suboption_code=AUS_SERVICE_OPTION_EXTRA_COVER&extra_cover=300
This should return the total cost and the breakdown of each of the costs.
{ "postage_result": { "service": "Parcel Post", "delivery_time": "Delivered in 2 business days", "total_cost": "15.05", "costs": { "cost": [ { "item": "Parcel Post", "cost": "10.55" }, { "item": "Standard Service", "cost": "0.00" }, { "item": "Extra Cover", "cost": "4.50" } ] } } }
You’ll need to add the following parameters Domestic - option_code: AUS_SERVICE_OPTION_STANDARD or AUS_SERVICE_OPTION_SIGNATURE_ON_DELIVERY (depending if you want signature on delivery as well - suboption_code : AUS_SERVICE_OPTION_EXTRA_COVER - extra_cover: the insurance value amount
International - option_code: INT_EXTRA_COVER - extra_cover: the insurance value amount ======================================END OF REPLY============
Andrew
|