1. Home
  2. Developers
  3. Calculate Rates

Calculate Rates

Calculate shipping pricing from sender & receiver information.

POST /rates

 
 

Elements

Request

NameTypeDescription
DepartureCountryCodestringSender country in ISO 3166-1 alpha-2.
DeparturePostcodestringSender postcode.
DepartureLocationstringSender location in International Air Transport Association (IATA) code.
ArrivalCountryCodestringReceiver country in ISO 3166-1 alpha-2.
ArrivalPostcodestringReceiver postcode.
ArrivalLocationstringReceiver location in International Air Transport Association (IATA) code.
PaymentCurrencyCodestringRate currency in ISO 4217 3-Letter code.
WeightMeasurestringWeight unit. KG,LBS
Weightnumber ¹Weight value.
NumofItemnumber ¹Number of items in parcel. Default:1
ServiceTypestringService type code.
DimensionUnitstringDimension unit. CM,INCH
CustomCurrencyCodestringCustoms currency in ISO 4217 3-Letter code.
CustomAmountnumeric ¹Customs value.
ItemsArray of ItemsItems details.

Items

NameTypeDescription
Weightnumber ¹Weight value.
Lengthnumber ¹Cubic length value in cm.
Widthnumber ¹Cubic width value in cm.
Heightnumber ¹Cubic height value in cm.
CubicWeightnumber ¹Cubic weight value.

Response

NameTypeDescription
PricingResponseDetailsarray of PricingResponseDetailsA list of pricing results.

PricingResponseDetails

NameTypeDescription
CurrencyCodestringRate currency in ISO 4217 3-Letter code.
ProductCodestringService type code.
BasicAmountnumberBase charge amount.
TaxAmountnumberTax value.
FSAmountnumberFuel-surcharge value.
TotalAmountnumberTotal value.
ErorMessagestringError message (if any) returned from the rate request.
Othersarray of OthersList of other charges.

Others

NameTypeDescription
ItemIDstringUnique ID of the charges.
ItemNamestringCharge name.
ItemValueTypestringCharge type. $, %
ItemRefCodestringCharge reference.
ItemTypestringN/A
ItemValuenumberCharge value.
ItemOperatorstringCharge operator. +,-

 

Reference

¹ Refer Notes section for required format.

 

Sample

Request

{ "DepartureCountryCode": "SG", "DeparturePostcode": "208573", "DepartureLocation": "SINGAPORE", "ArrivalCountryCode": "MY", "ArrivalPostcode": "53300", "ArrivalLocation": "KUALA LUMPUR", "PaymentCurrencyCode": "SGD", "WeightMeasure": "KG", "Weight": 3.5, "NumofItem": "1", "ServiceType": "ED", "DimensionUnit": "CM", "CustomCurrencyCode": "SGD", "CustomAmount": 50.00, "Items": [{ "Weight": 1, "Length": 3, "Width": 3, "Height": 3, "CubicWeight": 0 }, { "Weight": 1.5, "Length": 3, "Width": 3, "Height": 3, "CubicWeight": 0 }] }

Response

{ "PricingResponseDetails": [{ "CurrencyCode": "SGD", "ProductCode": "ED", "BasicAmount": 45.0, "TaxAmount": 0.0, "FSAmount": 0.0, "TotalAmount": 45.0, "ErorMessage": "", "Others": [{ "ItemID": "5A1D798A5DDE13708C9C16CE9796C50C", "ItemName": "Remote Charges", "ItemValueType": "$", "ItemRefCode": "Charge", "ItemType": "", "ItemValue": "30", "ItemOperator": "+" }] }] }