All Status Webhook
1. Overview
The All Status Webhook delivers real-time shipment tracking updates to an enterprise's registered endpoint URL. Clickpost fetches status updates from carriers via webhooks [status push from carrier to Clickpost systems] and via periodic polling of data [if webhooks are not available]. On every new scan, we send a POST request to the configured URL with the full shipment status payload. An enterprise can configure a URL at any time from the dashboard to receive all updates.
Note
The webhook is triggered for every scan update, not only when the status changes. If a carrier reports multiple scans with the same status, you will receive multiple webhook calls.
2. Sample Payload
The following is a representative JSON payload delivered to your endpoint on each webhook trigger:
2.1 Root-Level Fields
These fields appear at the top level of every webhook payload.
| Field | Type | Nullable | Description |
|---|---|---|---|
| waybill | string | No | Airway bill / tracking number assigned by the carrier. |
| cp_id | int | No | Clickpost carrier partner ID. |
| account_code | string | No | Carrier account code name. |
| timestamp | string | No | Scan date-time in yyyy-MM-ddTHH:mm:ssZ format. This is in the same timezone as received from the courier. |
| status | string | No | Raw status string from the carrier partner. |
| clickpost_status_code | int | No | Normalized Clickpost status code. Use this for scan history logic. |
| clickpost_status_description | string | No | Human-readable description of the clickpost status code. |
| location | string | Yes | Location as shared by the courier partner. |
| latitude | double | Yes | Geo-latitude of the scan location. |
| longitude | double | Yes | Geo-longitude of the scan location. |
| remark | string | No | As shared by the courier partner. |
| rider_name | string | Yes | Delivery rider name, populated for last-mile deliveries. |
| rider_contact | string | Yes | Delivery rider contact number. |
| clickpost_city | string | Yes | Clickpost-normalized city name. |
| channel_name | string | Yes | Sales channel (e.g., website, app). |
| qc_image_url | array<string> | Yes | URLs of quality-check images captured at the time of the scan. Only relevant in reverse pickups. |
| rto_awb | string | Yes | Return-to-origin AWB, populated when a shipment moved to RTO Journey and if the carrier shares the RTO AWB in the tracking updates. |
| otp_cancellation_verification_flag | boolean | Yes | True if OTP verification was completed for cancellation. |
| scan_id | long | Yes | Clickpost internal unique scan ID. Recommended de-duplication key. |
| original_reference_number | string | Yes | Shared by you in the order creation or AWB registration process with Clickpost systems. |
| additional | object | No | Extended shipment details. See Section 2.2. |
2.2 Additional Object
The additional object carries enriched metadata about the shipment and the current scan context.
| Field | Type | Nullable | Description |
|---|---|---|---|
| account_code | string | No | Same as root account_code. |
| is_rvp | boolean | No | True if the shipment is a Reverse Vendor Pickup. |
| order_id | string | Yes | The enterprise's own order ID. |
| otp_verified_delivery | boolean | Yes | True if delivery was completed with OTP verification. |
| otp_verified_cancellation | boolean | Yes | True if cancellation was confirmed via OTP. |
| ndr_status_code | int | Yes | Unified NDR (Non-Delivery Report) code. Populated on failed delivery. See Section 6. |
| ndr_status_description | string | Yes | Human-readable description for ndr_status_code. |
| npr_status_code | int | Yes | NPR (Non-Pickup Report) code. Populated on failed pickup. |
| npr_status_description | string | Yes | Human-readable description for npr_status_code. |
| courier_partner_edd | string | Yes | Estimated Delivery Date from the carrier (YYYY-MM-DD). |
| courierPartnerPDD | string | Yes | Promised Delivery Date from the carrier. |
| destination_hub_inscan_ts | string | Yes | Timestamp when the shipment was scanned at the destination hub. |
| name | string | Yes | Consumer name from the messaging system (Clickpost systems have stopped populating values in this field to keep the data secured). |
| string | Yes | Consumer email from the messaging system (Clickpost systems have stopped populating values in this field to keep the data secured). | |
| phone | string | Yes | Consumer phone number from the messaging system (Clickpost systems have stopped populating values in this field to keep the data secured). |
| latest_status | object | No | Current consolidated shipment status. See Section 2.3. |
| callDetails | array<object> | Yes | Log of customer-contact call attempts. See Section 2.4. |
| pickupETA | object | Yes | Estimated pickup time window. See Section 2.5. |
| deliveryETA | object | Yes | Estimated delivery time window. See Section 2.5. |
| feDetails | object | Yes | Field executive (rider) details. See Section 2.6. |
| receiverDetails | object | Yes | Delivery receiver details. See Section 2.7. |
| partial_delivery_items | object | Yes | SKU-level breakdown for partial deliveries. See Section 2.8. |
| deliveryGeoDetails | object | Yes | Geo-coordinates captured at the time of delivery. |
| latest_rider_location_details | object | Yes | Rider’s latest known GPS coordinates at the time of entering the drop location geofence (configured radius or default 200 metres). Refer Section 2.9. |
More information about Additional details here.
2.3 additional.latest_status Object
This sub-object reflects the current overall status of the shipment the most recent meaningful state after Clickpost's de-duplication and normalization. Use this field (not the root clickpost_status_code) when driving customer-facing notifications.
| Field | Type | Nullable | Description |
|---|---|---|---|
| clickpost_status_code | int | No | Normalized code for the latest state. Use for customer notifications. |
| clickpost_status_description | string | No | Human-readable description of the latest status code. |
| clickpost_status_bucket | int | No | Bucket number grouping related statuses. |
| clickpost_status_bucket_description | string | No | Human-readable label for the status bucket. |
| status | string | No | Raw carrier status string for the latest scan. |
| timestamp | string | No | Scan date-time in yyyy-MM-ddTHH:mm:ssZ format. This is in the same timezone as received from the courier. |
| location | string | Yes | Location of the latest scan. |
| clickpost_city | string | No | Clickpost-normalized city for the latest scan. |
| latitude | double | Yes | Latitude for the latest scan location. |
| longitude | double | Yes | Longitude for the latest scan location. |
| remark | string | No | Remark for the latest scan. |
| reference_number | string | Yes | Reference number for the latest scan. |
| rider_name | string | Yes | Rider name at the latest scan. |
| rider_contact | string | Yes | Rider contact at the latest scan. |
2.4 additional.callDetails Array
Each element represents one customer-contact call attempt.
| Field | Type | Nullable | Description |
|---|---|---|---|
| shipmentId | int | No | Internal Clickpost shipment ID. |
| logId | string (UUID) | No | Unique log entry identifier. |
| source | int | No | Source system that initiated the call. |
| callDuration | int | No | Duration of the call in seconds. |
| callTimestamp | string (datetime) | No | When the call was made. |
| callStatus | string | No | Outcome: ANSWERED, NOT_ANSWERED, etc. |
| callRemark | string | Yes | Optional remark about the call. |
| createdAt | string (datetime) | No | Record creation timestamp. |
2.5 additional.pickupETA / deliveryETA Object
Both ETA objects share the same structure.
| Field | Type | Nullable | Description |
|---|---|---|---|
| shipmentId | int | No | Internal shipment ID. |
| logId | string (UUID) | No | Unique log entry ID. |
| source | int | No | Source that provided the ETA. |
| etaTimestamp | string (datetime) | No | Estimated arrival date-time. |
| etaTimezone | string | No | Timezone for etaTimestamp (e.g., Asia/Kolkata). |
| capturedAt | string (datetime) | No | When this ETA was recorded. |
| capturedTimezone | string | No | Timezone for capturedAt. |
| createdAt | string (datetime) | No | Record creation timestamp. |
2.6 additional.feDetails Object
Field executive (delivery agent) details, populated during last-mile delivery assignment.
| Field | Type | Nullable | Description |
|---|---|---|---|
| shipmentId | int | No | Internal shipment ID. |
| logId | string (UUID) | No | Unique log entry ID. |
| feName | string | Yes | Name of the field executive. |
| fePhoneNumber | long | Yes | Phone number of the FE. |
| fePhoneCode | int | Yes | Country phone code (e.g., 91 for India). |
| feID | string | Yes | Carrier-assigned FE identifier. |
| feAllocationTime | string (datetime) | No | When FE was assigned to this shipment. |
| feBridgePhoneNumber | long | Yes | Virtual/bridge phone number for the FE. |
| feBridgePhonePin | string | Yes | PIN for the bridge number. |
| createdAt | string (datetime) | No | Record creation timestamp. |
2.7 additional.receiverDetails Object
Details of who accepted the shipment at the time of deliver
| Field | Type | Nullable | Description |
|---|---|---|---|
| shipmentId | int | No | Internal shipment ID. |
| receiverName | string | No | Name of the person who received the shipment. |
| receiverRelation | string | Yes | Relation to consignee (e.g., Self, Spouse). |
| receiverIDType | string | Yes | Government ID type provided at delivery. |
| receiverIDNumber | string | Yes | Government ID number (masked). |
| receiverLocationType | string | Yes | Delivery location type (e.g., Door, Mailbox). |
| capturedAt | string (datetime) | No | When receiver details were captured. |
| createdAt | string (datetime) | No | Record creation timestamp. |
2.8 additional.partial_delivery_items Object
Populated for partial delivery events (status code 48).
| Field | Type | Nullable | Description |
|---|---|---|---|
| delivered | array<object> | Yes | Items delivered. Each: { sku: string, qty: int }. |
| non_delivered | array<object> | Yes | Items not delivered. Each: { sku: string, qty: int }. |
2.9 additional.latest_rider_location_details Object
Rider’s latest known GPS coordinates when the rider enters the configured radial geofence around the drop location (default: 200 metres). Populated for rider within drop location geofence event. (status code 139).
| Field | Type | Nullable | Description |
|---|---|---|---|
| latitude | double | No | Rider latitude in decimal degrees. |
| longitude | double | No | Rider longitude in decimal degrees |
| location_capture_time | string | No | Timestamp when the rider's location was captured. Format: yyyy-MM-dd HH:mm:ss (UTC). Example: "2026-08-10 14:23:10" |
3.Authentication
Clickpost sends the webhook request with authentication credentials embedded in the HTTP request, using whichever method you configure in the dashboard.
| Type | How it works | Header / Parameter |
|---|---|---|
| Simple Token | A static bearer token sent in the Authorization header. | Authorization: Token <token> |
| X-API-Key | A static API key sent in the x-api-key header. | x-api-key: <key> |
| Webhook-Key | A static key sent in the webhook-key header. | webhook-key: <key> |
| Basic Auth | Standard HTTP Basic authentication using Base64-encoded credentials. | Authorization: Basic <base64(user:pass)> |
| Dynamic Token | An access token fetched from your auth endpoint before each delivery. Tokens are cached until expiry. | Authorization: Bearer <dynamic_token> |
Note
Dynamic Token auth is available for enterprise accounts requiring short-lived tokens (OAuth 2.0-style flows). Contact your CSM or Support to enable this option.
4. Important Behavioral Notes
4.1 No Ordering Guarantee
Webhooks are triggered as scans are received. Due to carrier reporting delays, scans may arrive out of chronological order. Always compare timestamp values before updating your system state.
4.2 Success / Failure Responses and Retry Policy
| Type | Condition |
|---|---|
| Success | HTTP 200, 201, 202, or 204 |
| Failure | Any other HTTP response code, or API timeout (5-second limit) |
If your endpoint does not return HTTP 200, 201, or 202, or if the request times out, Clickpost schedules up to 6 retries over 3 hours with linear backoff:
| Attempt | Delay After Initial Failure |
|---|---|
| 1st retry | 30 minutes |
| 2nd retry | 60 minutes |
| 3rd retry | 90 minutes |
| 4th retry | 120 minutes |
| 5th retry | 150 minutes |
| 6th retry | 180 minutes |
Retries deliver the same payload again. However, the latest_status component may reflect updated shipment state between the original send and the retry. Your endpoint must handle duplicate deliveries gracefully without creating duplicate records.
4.3 JSON Schema Validation
Do not apply strict JSON schema validation. The payload structure may be extended over time with new fields added without prior notice. Use permissive parsing and ignore unknown fields.
Note
It is recommended to use clickpost_status_code (at both the root level and inside latest_status) when applying business logic. Other textual fields are subject to change.
4.4 Retrigger Policy
Enterprises can manually retrigger webhooks from the dashboard. All Status and Selected Status are independent — retriggering one does not affect the other. Each retrigger sends the shipment’s latest status to the chosen webhook URL(s).
4.5 De-duplication / Ordering Guidelines
Recommended de-duplication key: waybill + scan_id. The scan_id is Clickpost's internal unique identifier for a scan. It is globally unique and monotonically increasing.
For any given shipment, timestamp + clickpost_status_code can also be used as a unique identifier. No two scans for the same AWB within the same courier can share both the same clickpost_status_code and the same timestamp.
Updated 21 days ago
