Original post by user Ken Cox
Even though I supply the dimensions for a medium-size box to the GetRates API, I get a few rate results that are quite bizarre such as the price for sending the box in a shipping tube or letter envelope. 😉
Is there a way of ensuring the return of only rates suitable for the type and size of the package described?
I'm wondering if this is done through the packageCode value in the API call?
What are the valid values (other than null) for packageCode as shown below?
{
"carrierCode": "fedex",
"serviceCode": null,
"packageCode": null,
"fromPostalCode": "78703",
"toState": "DC",
"toCountry": "US",
"toPostalCode": "20500",
"toCity": "Washington",
"weight": {
"value": 3,
"units": "ounces"
},
"dimensions": {
"units": "inches",
"length": 7,
"width": 5,
"height": 6
},
"confirmation": "delivery",
"residential": false