Discussions

Ask a Question
Back to All

Mandatory fields for rate API

Hi Dev, I have tried to retrieve shipping rate with the following JSON:
{
"origin_country_alpha2": "SG",
"origin_postal_code": "239732",
"destination_country_alpha2": "SG",
"destination_postal_code": "238839",
"taxes_duties_paid_by": "Sender",
"is_insured": false,
"items": [
{
"actual_weight": 1.2,
"height": 10,
"width": 15,
"length": 20,
"category": "mobiles",
"declared_currency": "SGD",
"declared_customs_value": 100
}
]
}

But I can't get any rates from your API, can you guide me on what did I need to provide to have the rate API to work flawlessly?
Can you list down the combination of fields that can be use to retrieve rates flawlessly?