Work out the chargeable weight of a parcel
calculate_cubic_weightCarriers charge on whichever is greater, actual weight or cubic (volumetric) weight, so a light bulky parcel costs far more than its scale weight suggests. Give the dimensions and actual weight and this returns the cubic weight under each common convention and which weight you would be charged on. Use it before quoting so the weight you pass to a quote tool is the one that will actually be billed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width_cm | Yes | Width in centimetres. | |
| height_cm | Yes | Height in centimetres. | |
| length_cm | Yes | Longest side in centimetres. | |
| weight_kg | Yes | Actual weight on the scales, in kilograms. |