Pickup Request: India

Given all pickup and carrier partner details, create a new pickup request for select carriers. Applicable for shipments created and transported within India only.

Overview

This API enables customers to create a new pickup request for select carriers, given all pickup and carrier partner details. This is useful whenever the AWB is already registered but the customer wants to issue a pickup request.

Important Links

Run in Postman API Reference

Usecase

This is a standard API which applies to MPS (Multi-Piece Shipment) and SPS (Single Piece Shipment) orders which are open (where the pickup_time has not been defined yet but are just created in carrier's database). Only the following Indian couriers support pickup requests (as of 9th December 2022):

Courier PartnerPartner ID
Delhivery4
Fedex1
Bluedart5
XpressBees Cargo61

Geography

This is a standard API which supports shipments created and transported within India.

URL

POST <https://www.clickpost.in/api/v1/create-pickup/>

Query Parameters

Field NameData TypeFieldDescriptionMax LengthExample
usernameStringMandatoryUsername of the registered enterprise100"test-enterprise"
keyStringMandatoryUnique license key for the enterprise user100"a537d832-f22b-459a-838d-d3bc71d34768"

Request Payload

Field NameData TypeFieldDescriptionMax LengthExample
pickup_dateStringMandatoryTime of pickup for the order (to be provided in YYYY-MM-DDTHH:MM:SS format only)200"2018-10-23T15:30:39"
courier_partnerIntegerMandatoryPartner ID of the carrier partner that will facilitate the pickup123
pickup_nameStringMandatoryContact name of the consignor of the shipment100"Mukesh Kumar"
pickup_addressStringMandatoryAddress of the pickup location500"123, ABC Street"
pickup_cityStringMandatoryCity of the pickup location100"Mumbai City"
pickup_stateStringMandatoryState/province of the pickup location100"Maharashtra"
pickup_emailStringMandatoryEmail of the pickup contact50"[email protected]"
pickup_phoneStringMandatoryContact number of the pickup contact11"9876543210"
pickup_pincodeStringMandatory6-digit Pin code of the pickup location6"400065"
pickup_countryStringMandatoryISO-2 Code of the country of the pickup location2"IN"
itemsStringMandatoryDescription of the items to be picked up by the carrier500"3 boxes of Faber-Castell Crayons, 24 colours"
account_codeStringMandatoryCourier partner account name configured on the Clickpost dashboard100"test_account"
expected_package_countIntegerOptionalTotal number of packages Courier partner need to pickup3

Response

The sample response can have the following fields

Field NameData TypeDescription
metaObjectMetadata for the result, e.g. status code, error messages.
resultObjectThe actual result of the pickup request

Response Meta

Field NameData TypeDescription
statusIntegerStatus code of the response (including, but not limited to HTTP Status codes)
messageStringError message (if any errors) for the request.
successBooleanWhether the request is successful or not.

Response Result Object

Each object in the result list may consist of the following fields.

Field NameData TypeDescription
locationStringLocation ID of pickup, shared by the carrier partner
confirmation_numberStringThe confirmation number of the pickup

Sample Payload

{
    "items": "1 package(s), 500 grams",
    "pickup_city": "Surat",
    "pickup_date": "2022-12-08T14:00:00",
    "pickup_name": "ABCD",
    "account_code": "test_account",
    "pickup_email": "[email protected]",
    "pickup_phone": "1234567890",
    "pickup_state": "GUJARAT",
    "pickup_address": "123, ABC Street",
    "pickup_country": "IN",
    "pickup_pincode": "123456",
    "courier_partner": 4,
    "expected_package_count": 3
}

Sample Response

{
    "meta": {
        "status": 200,
        "message": "SUCCESS",
        "success": true
    },
    "result": {
        "location": "Surat_Kacholi_GW",
        "confirmation_number": "101847200"
    }
}
{
    "meta": {
        "status": 400,
        "message": "Error message",
        "success": false
    }
}