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.

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
}

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
    }
}

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_codeStringMandatoryThe name of the account configured inside of the carrier partner on the Clickpost dashboard100"test_account"

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
Language
Click Try It! to start a request and see the response here!