Skip to end of banner
Go to start of banner

Push Notifications

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Outbound | POST | {Client’s URL}

Summary

This API will push notifications to the client’s system.

Description

This API will push notifications to the client’s systems. Notifications can be of the forward order statuses or it can be of return orders. These notifications pushed can be from both Clickpost and/or Shiprocket (based on the configuration).

Request (Forward Order Payload)

{

   "forwardOrderCode":"order-1",

   "forwardAwb":"awb-1",

   “courierName”:”SELF”,

   "notificationType":"PICKED_UP",

   "logisticAggregatorInfo":{

     "logisticAggregatorName":"CLICKPOST",

     "logisticAggregatorMetaData":{

       "Account Code":"ABCD",

       "Security Key":"12abcd12",

      }

   }

   "returnOrderInfo":null,

   "warehouseCode":"wh-1",

   "items":[

      {

         "itemId":"2",

         "sku":"puma-sku-1",

         "quantity":1

      }

   ]

}

The above request is a sample notification for a forward order notification.

Request (Return Order Payload)

{

   "forwardOrderCode":"order-1",

   "forwardAwb":null,

   “courierName”:”SELF”,

   "notificationType":"PICKED_UP",

   "logisticAggregatorInfo":{

     "logisticAggregatorName":"CLICKPOST",

     "logisticAggregatorMetaData":{

       "Account Code":"ABCD",

       "Security Key":"12abcd12",

      }

   }

   "returnOrderInfo":{

      "returnOrderId":"2",

      "returnAwb":"awb-1_rev",

      "transporter":"Self Reverse",

      "returnOrderTime":"2021-07-14T13:23:02Z"

   },

   "warehouseCode":"wh-1",

   "items":[

      {

         "itemId":"2",

         "sku":"puma-sku-1",

         "quantity":1

      }

   ]

}

The above request is a sample notification payload for a return order notification. The return order details will be found in the returnOrderInfo object.

Parameter Name

Data Type

Description

Mandatory

forwardOrderCode

String

Forward Order Code

yes

forwardAwb

String

Forward AWB for the order. If the notification is of forward order, this field would be present.

Conditional yes

notificationType

String

The type of notification that is being sent. The possible values are listed in the Notification Type section

yes

returnOrderInfo

Object

Return Order Information. Will be present if the notification type is a return type(AWB_GENERATED, RETURN_PICKUP, RTO etc.)

Conditional yes

returnOrderInfo.returnOrderId

String

Return Order Id

Conditional yes

returnOrderInfo.returnAwb

String

Return Awb

Conditional yes

returnOrderInfo.transporter

String

Courier for the return order

Conditional yes

returnOrderInfo.returnOrderTime

Date

Return Order Time

Conditional yes

logisticAggregatorInfo

Object

This contains the custom fields sent by Clickpost/Shiprocket

yes

logisticAggregatorInfo.logisticAggregatorType

String

Logistic Aggregator type. Can be CLICKPOST or SHIPROCKET

yes

logisticAggregatorInfo.logisticAggregatorMetaData

Object

Map of extra information that are passed to us by logistic aggregators. Example - Account Code, Security Key etc. in Clickpost’s case

yes

warehouseCode

String

Warehouse Code for the forward/return order. If the shipping label was generated through MiniOMS, then this field would be populated.

Conditional yes

items

Objects

The items for the forward/return order. Would be null in case of shiprocket forward order statuses

Conditional yes

items.itemId

String

Item Id

Conditional yes

items.sku

String

SKU of the item

Conditional yes

items.quantity

Integer

Quantity of the item

Conditional yes

Notification Type

The following are the types of notifications that can be sent to the client’s system

Notification Type

Applicable for

Description

SHIPPING_LABEL_GENERATED

Clickpost

Shipping Label has been generated

OUT_FOR_PICKUP

Clickpost,Shiprocket

Courier is out to pick up the shipment

RETURN_PICKED_UP

Clickpost

Courier has picked up the return order

OUT_FOR_DELIVERY

Clickpost,Shiprocket

Courier is out to deliver the shipment

FAILED_DELIVERY

Clickpost

shipment could not be delivered ( e.g. address not found, person not available)

DELIVERED

Clickpost,Shiprocket

Shipment delivered successfully

RTO

Clickpost,Shiprocket

Shipment could not be delivered and the shipment is now being sent back to its origin/Warehouse

RETURN_ORDER_PLACED

Clickpost

Customer has placed the return order

AWB_GENERATED

Clickpost

AWB is generated for the shipment

CANCELLED

Clickpost,Shiprocket

Shipment has been canceled (e.g customer cancellation) 

RTO_DELIVERED

Clickpost,Shiprocket

Shipment delivered to origin

EXCHANGE_PICKUP

Clickpost

fwd order picked up from warehouse to exchange against the return order

EXCHANGE_DELIVERED

Clickpost

Return order picked up, fwd order delivered

PICKUP_CANCELLED

Clickpost

shipment from warehouse canceled

SHIPMENT_STUCK

Clickpost

Shipment is stuck in transit

SLA_BREACHED

Clickpost

Shipment not delivered on time

LOST

Clickpost,Shiprocket

Shipment lost in transit

DAMAGED

Clickpost,Shiprocket

Shipment damaged in transit

INVOICED

Shiprocket

Invoice for shipment has been generated

READY_TO_SHIP

Shiprocket

Shipment Label has been generated

PICKUP_SCHEDULED

Shiprocket

Shipment pick up has been scheduled and pick request is sent to courier partner

SHIPPED

Shiprocket

Shipment dispatched from the Warehouse

PAYMENT_FAILED

Shiprocket

UNFULFILLABLE

Shiprocket

PICKUP_QUEUE

Shiprocket

Shipment is in queue for pickup post shipment pickup was scheduled

PICKUP_RESCHEDULED

Shiprocket

Pick up is rescheduled 

PICKUP_ERROR

Shiprocket

An order for which there is some error in pick up generation

CANCELLATION_REQUESTED

Shiprocket

Cancellation has been requested for the order

TRANSIT

Shiprocket

Shipment is in transit

UNDELIVERED

Shiprocket

Shipment could not be delivered in first attempt.

DELAYED

Shiprocket

Shipment is delayed but within SLA

PARTIAL_DELIVERED

Shiprocket

FULFILLED

Shiprocket

ARCHIVED

Shiprocket

REACHED_DESTINATION_HUB

Shiprocket

During transit shipment reached from one HUB to final HUB before delivering to customer

MISROUTED

Shiprocket

Shipment sent to wrong route

PICKED_UP

Clickpost,Shiprocket

Shipment picked up from the warehouse

RTO_ACKNOWLEDGED

Shiprocket

An order for which RTO is acknowledged by seller

FAQs

How can I identify if the notification is for a forward order or a return order?

If the “returnOrderInfo“ field is null, then it is a forward order notification. If it is not null, it is a return order notification.

  • No labels