Fetch Recommended Carriers: Rest of the World and Cross Border

Our recommendation API helps you decide amongst your available Carrier Partners, the best, most efficient and dependable choice of delivery for any given package.

It makes these decisions based on historical data on deliveries, delays and other internal parameters in the user-specified location.

This API can be used for shipments in the GCC, North America, and European Countries.

Important Links

Run in Postman API Guide

Payload Example

{
    "pickup_info": {
        "city": "Umm Sala Ali",
        "name": "Hellmann",
        "time": "2020-12-23T13:01:01",
        "email": "[email protected]",
        "phone": "555555555",
        "state": "",
        "address": "GW100 Doha City Umm Salal Muhammed, Doha",
        "landmark": null,
        "phone_code": "+974",
        "postal_code": "Umm Sala Ali",
        "country_code": "QA"
    },
    "drop_info": {
        "city": "Doha",
        "name": "Varsha Hon",
        "email": "[email protected]",
        "phone": "555555555",
        "state": "",
        "address": "St 11, Gate 108, Barsha Khulaib Street",
        "landmark": null,
        "phone_code": "+974",
        "postal_code": "Al Dafna",
        "country_code": "QA"
    },
    "shipment_details": {
        "items": [
            {
                "sku": "8719134064735",
                "price": 50,
                "quantity": 1,
                "description": "Shower Oil",
                "cat":"Soap",
                "weight":"1000",
                "manufacture_country_code":"IN",
                "manufacture_country":"INDIA"
            }
        ],
     "additional": {
        "custom_fields": [
            {
                "key": "areaId",
                "value": 28233
            },
            {
                "key": "pieces",
                "value": 1
            }
        ]
    },
        "height": 10,
        "length": 10,
        "weight": 10,
        "breadth": 10,
        "cod_value": 90.00,
        "order_type": "COD",
        "invoice_date": "2020-12-22",
        "currency_code": "USD",
        "delivery_type": "FORWARD",
        "invoice_value": 90.00,
        "invoice_number": "120000009",
        "reference_number": "120000059"
    }
}

Request Payload

Pickup Info (pickup_info)

This mandatory object takes in the data for the warehouse/pickup location for the shipment.

Field NameData TypeFieldDescription
latFloatOptionalLatitude of the pickup location
longFloatOptionalLongitude of the pickup location
cityStringMandatoryCity of the pickup location
nameStringMandatoryContact name of the consignor of the shipment
addressStringMandatoryAddress of the pickup location
districtStringOptionalDistrict of the pickup location
stateStringMandatoryState/province of the pickup location
landmarkStringOptionalLandmarks to help find the pickup location
emailStringMandatoryEmail of the pickup contact
phoneStringMandatoryContact number of the pickup contact
timeStringMandatoryTime of pickup for the order (to be provided in YYYY-MM-DDTHH:MM:SS format only)
postal_codeStringOptionalPostal code of the pickup location
country_codeStringMandatoryAlpha ISO-2 country code of the pickup location. Only "IN" is accepted as input.
delivery_instructionsStringOptionalDelivery Instruction to be passed to the Carrier partner
phone_codeStringMandatoryCounty code of the phone number
address_typeStringOptionalPickup address type

Drop Info (drop_info)

This mandatory object takes in the data for the delivery/consignee location for the shipment.

Field NameData TypeFieldDescription
latFloatOptionalLatitude of the drop location
longFloatOptionalLongitude of the drop location
nameStringMandatoryContact name of the consignee of the shipment
addressStringMandatoryAddress of the drop location
districtStringOptionalDistrict of the drop location
cityStringMandatoryCity of the drop location
stateStringMandatoryState/province of the drop location
landmarkStringOptionalLandmarks to help find the drop location
emailStringOptionalEmail of the drop contact
phoneStringMandatoryContact number of the drop contact
timeStringOptionalEstimated time of drop for the order (to be provided in YYYY-MM-DDTHH:MM:SS format only)
postal_codeStringMandatoryDrop Postal code
country_codeStringMandatoryAlpha ISO-2 country code of the drop location. Only "IN" is accepted as input.
address_typeStringOptionalThe address type of the drop location

additional [additional parameters] [optional]

Field NameData TypeFieldDescription
additionalJSON OBJECTOptionalThe JSON Object of the additional parameter
keystringOptionalThe enterprise defined field's key. This will come into picture, if enterprise want to set Enterprise defined allocation rules
valuestringOptionalThe enterprise defined field's value. This will come into picture, if enterprise want to set Enterprise defined allocation rules

Shipment Details (shipment_details)

In the 'shipment_details' field, the details regarding all items, and important order details like payment type, order type, courier partner, etc. are added.

Field NameData TypeFieldDescription
itemsList[Object]MandatoryList of items to be delivered in the shipment. Details of the items explained below.
heightFloatMandatoryHeight of the overall package (in cms)
widthFloatMandatoryWidth of the overall package (in cms)
lengthFloatMandatoryLength of the overall package (in cms)
weightFloatMandatoryWeight of the package (in gms)
reference_numberStringMandatoryReference number of the order. Must be unique for every shipment, i.e. every call of this API.
cod_valueFloatMandatoryCash to be given to the courier (currency to be determined by currency_code). Must be non-zero for COD orders, and zero for PREPAID orders.
order_idStringOptionalIdentification string for the order
order_typeStringMandatoryType of payment of the shipment. Can only take values "COD" or "PREPAID". cod_value must be non-zero for COD shipments and zero for PREPAID shipments.
delivery_typeStringMandatoryType of delivery to be done. Can only take values "FORWARD" or "RVP".
invoice_valueFloatMandatoryValue of the shipment as mentioned in the invoice.
invoice_dateStringMandatoryDate of issuance of the invoice of the shipment. (YYYY-MM-DD format only)
invoice_numberStringMandatoryThe Invoice number of the shipment.

Item Level details (items)

The details for each item to be delivered is passed in the "items" field, in "shipment_details".

Field NameData TypeFieldDescription
catStringOptionalCategory of the item in question
descriptionStringMandatoryBrief description of the item
quantityIntegerOptionalNumber of units of the item
weightFloatMandatoryWeight of each unit of the item
priceFloatMandatoryPrice of each unit of the item (currency to be decided by 'currency_code' field)
manufacture_country_codeStringOptionalAlpha-2 ISO Country code of manufacture of the item
manufacture_countryStringOptionalFull country name of manufacture of the item
skuStringOptionalStock-keeping unit of the item

Response

meta [meta parameters]

Field NameData TypeDescription
successBooleanIndicates the success of the API request
messageStringThe message from clickpost. In case of success it will be "SUCCESS". In case that there are no carrier partners that are servicing the pincodes it will be”Pin code not serviceable"
statusHTTP CodeThe HTTP response status code of the API request

result [result parameters]

Field NameData TypeDescription
preference_arrayarrayThe preference list of eligible carrier partners
cp_nameStringThe name of the carrier partner
cp_idnumCarrier Partner ID. This can be found on the dashboard or you can refer it to here
account_codestringThe name of the account configured inside of the carrier partner on the Clickpost dashboard
asyncBooleanWhether the carrier partner supports asynchronous order creation or not
account_idnumThe identifier for the particular account configured under the carrier partner
prioritynumThe priority of the carrier partner, this will be according to the Allocation rule set up by the enterprise on the Clickpost dashboard
scores_computationJSON ObjectThe scoring of the carrier partner
scoring_paramsJSON ObjectThe scoring parameters on which carrier partners are to be ranked
PRICINGnumThe pricing of the carrier partner
zoneStringThe zone which has been mapped with pincodes on the clickpost dashboard under the courier integration section.This can be configured in the Pricing section in courier partner account configuration section. (Settings>Courier>Integrations>Accounts> Configuration > Pricing)
total_scorenumThe total score for the particular carrier partner
shipping_chargenumThe total shipping charge that the carrier partner will charge for the particular shipment
filters_ranJSON ObjectThe JSON object of all the filters that have applied
1_active_accounts_filterarrayThe list of active carriers that are there on Clickpost account
2_serviceable_accounts_filterarrayThe list of serviceable carrier partners for the particular pickup and drop pincode
2_1_serviceable_oda_accounts_filterarray
Language
Click Try It! to start a request and see the response here!