FP Webhook Message
Message Type Definition
Message Type |
Description |
ping |
only use to test connectivity of webhook url. |
new_ft |
New Fulfillment Task |
generated_shipping_label |
Gotten Tracking No. and Shipping Label for the Parcel |
new_ct |
New Cancellation Task |
shipping_label_updated |
Shipping Label Updated |
cancel_request |
Cancel Request |
(1)Ping
{
"tenant_id":"1234567",
"api_key":"XXXXXXXXXXX",
"webhook_type":"FP",
"message_type":"ping",
"data":{
},
"timestamp":1603766859530
}
(2) New FT (Fulfillment Task)
{
"tenant_id":"1234567",
"api_key":"XXXXXXXXXXX",
"webhook_type":"FP",
"message_type":"new_ft",
"data":{
"ft_no":"FT0000000001",
"order_no":"ORDER00000001",
"sales_channel":"XXXXX_SHOPEE_SG_SHOP01",
"created_time":1603703663
},
"timestamp":1603766859530
}
(3) Gotten Tracking No. and Shipping Label for the Parcel
{
"tenant_id":"1234567",
"api_key":"XXXXXXXXXXX",
"webhook_type":"FP",
"message_type":"generated_shipping_label",
"data":{
"ft_no":"FT0000000001",
"fp_parcel_no":"FP_PARCEL_001",
"delivery_carrier":"J&T",
"delivery_type":"Standard",
"tracking_no":"TRACK00000210",
"obtained_time":1603703663
},
"timestamp":1603766859530
}
(4) New CT (Cancellation Task)
{
"tenant_id":"1234567",
"api_key":"XXXXXXXXXXX",
"webhook_type":"FP",
"message_type":"new_ct",
"data":{
"ft_no":"FT0000000001",
"ct_no":"CT0000000001",
"order_no":"ORDER00000001",
"sales_channel":"XXXXX_SHOPEE_SG_SHOP01",
"created_time":1603703663,
"cancelled_items":["1001","1003"]
},
"timestamp":1603766859530
}
(5) Shipping Label Updated
{
"tenant_id":"1234567",
"api_key":"XXXXXXXXXXX",
"webhook_type":"FP",
"message_type":"shipping_label_updated",
"data":{
"ft_no":"FT0000000001",
"fp_parcel_no":"FP_PARCEL_001",
"updated_time":1603703663
},
"timestamp":1603766859530
}
(6) Parcel Status Updated
{
"tenant_id":"1234567",
"api_key":"XXXXXXXXXXX",
"webhook_type":"FP",
"message_type":"parcel_status_updated",
"data":{
"fp_parcel_no":"FP_PARCEL_001",
"updated_time":1603703663,
"status":"DELIVERED"
},
"timestamp":1603766859530
}
(7) NEW CR (Cancel Request)
{
"tenant_id":"1234567",
"api_key":"XXXXXXXXXXX",
"webhook_type":"FP",
"message_type":"cancel_request",
"data":{
"order_no": "no1",
"ft_no": "ftno",
"requested_Time": 1616317631,
"notification_Type":"NEW_CR / HANDLING_RESULT",
"handling_Result":null,
"reply_Time" :null,
"items":[{
"task_detail_id":"11",
"orig_order_item_id":"11",
"qty":1
}]
},
"timestamp":1603766859530
}