Fetch Recommended Carriers: India

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.

Important Links

Run in Postman API Guide

Payload Example

[{
    "pickup_pincode": "110017",
    "drop_pincode": "110019",
    "order_type": "PREPAID",
    "reference_number": "1",
    "item": "bottle",
		"item_count": 2,
    "invoice_value": 1245,
    "delivery_type": "FORWARD",
    "weight": 10,
    "height": 10,
    "length": 10,
    "breadth": 10,
    "additional": {
        "custom_fields": [{
            "key": "ptl_or_ftl",
            "value": "PTL"
        }, {
            "key": "truck_size",
            "value": "14 feet"
        }]
    }
}]
[
    {
        "item": "HealthcareProducts",
        "height": "10",
        "length": "10",
        "weight": "10",
        "breadth": "10",
        "additional": null,
        "order_type": "COD",
        "drop_pincode": "123456",
        "delivery_type": "FORWARD",
        "invoice_value": 2187.0,
        "pickup_pincode": "400078",
        "reference_number": "FL1023075027",
      	"item_count": 2
    }
]

Request Payload

Field NameData TypeFieldDescription
lengthfloatOptionalThe length of the shipment in centimeter. This field becomes mandatory if enterprise wants to calculate shipping_charge
pickup_pincodestringMandatoryThe pickup pincode where the shipment needs to be picked up
drop_pincodestringMandatoryThe drop pincode where the shipment needs to be delivered
breadthfloatOptionalThe breadth of the shipment in centimeter. This field becomes mandatory if enterprise wants to calculate shipping_charge
height floatOptionalThe height of the shipment in centimeter. This field becomes mandatory if enterprise wants to calculate shipping_charge
invoice_valuefloatOptionalThe invoice value of the shipment in INR. This field becomes mandatory if enterprise wants to calculate PRICING
weightfloatOptionalThe weight of the shipment in kilograms. This field becomes mandatory if enterprise wants to calculate shipping_charge
delivery_typeenumMandatoryThe order type for which serviceability needs to be determined. Enter FORWARD if the shipments need to be delivered to the customer from the enterprise's warehouse. Enter RVP if the shipment needs to picked up from the customer’s location and delivered to the enterprise’s warehouse
reference_numberstringMandatoryThe reference number for the API request. It has to be unique for each API request
order_typeenumMandatoryThe order type for the particular shipment

1. PREPAID
2. COD
item_countintegerOptionalThe number of items in the shipment

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

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!