ParcelTrack API

(0 reviews)

Receiving Webhook Notifications

The notification_endpoint URL supplied in your subscription needs to be built to accept the type of request/messages that are generated by NZ Post, this will also require the normal "200" response message to be returned.

Response Elements

Field NameDescriptionRequiredTypeExample
message_datetimeTimestamp of this messageYesString2017-10-17T11:35:21.3135634+13:00
message_idIdentifier of this messageYesString4b1664a2-6f8d-4587-a6bb-f5aa5639263a
notification_idIdentifier of this notificationYesString280d2aec-d5a3-4ceb-9f61-8c861dfb516a
subscription_guidIdentifier of the subscription this notification relates toYesString28F2A43B-9019-462D-A3BF-6371239ACD53
tracking_referenceThe tracking reference this notification relates toYesStringCL092594237NZ
tracking_eventsList of tracking eventsYesArraySee Tracking Events Response Elements

Tracking Events Response Elements

Field NameDescriptionRequiredTypeExample
event_datetimeTimestamp of the eventYesString2017-05-22T12:39:37
event_descriptionDescription of the eventNoStringYour item was picked up by our courier Sanjay based at AKL Western Suburbs Fleet
event_edifact_codeUnique code for the eventNoString13
signed_byList of details about the signeeNoObjectSee Signed By Response Elements
sourceThe source system for this eventNoStringCME
status_descriptionDescription of the event statusNoStringWith courier for delivery
tracking_referenceThe tracking reference this event relates toNoStringCL092594237NZ

Signed By Response Elements

Field NameDescriptionRequiredTypeExample
nameFull name of the person providing the signatureNoStringJohn
signatureBase64 encoded signatureNoStringec608f40-2a8b-11e5...

Response Examples

Acceptance:

{
   "message_datetime":"2017-10-17T11:35:02.8690189+13:00",
   "message_id":"8526758a-dddd-426c-9f33-70c1ee006303",
   "notification_id":"8c4811f9-a5f0-4233-bec2-a985c69ff3a2",
   "subscription_guid":"28F2A43B-9019-462D-A3BF-6371239ACD53",
   "tracking_events":[
      {
         "event_datetime":"2017-10-16T22:34:39.8430000Z",
         "event_description":"Acceptance",
         "event_edifact_code":"13",
         "signed_by":{
            "name":"",
            "signature":""
         },

         "source":"CME",
         "status_description":"Acceptance",
         "tracking_reference":"8963062936272601WLG004AS"
      }
   ],
   "tracking_reference":"8963062936272601WLG004AS"
}

Out for delivery:

{
   "message_datetime":"2017-10-17T11:35:21.3135634+13:00",
   "message_id":"4b1664a2-6f8d-4587-a6bb-f5aa5639263a",
   "notification_id":"280d2aec-d5a3-4ceb-9f61-8c861dfb516a",
   "subscription_guid":"28F2A43B-9019-462D-A3BF-6371239ACD53",
   "tracking_events":[
      {
         "event_datetime":"2017-10-16T22:34:56.1330000Z",
         "event_description":"Out for Delivery",
         "event_edifact_code":"32",
         "signed_by":{
            "name":"",
            "signature":""
         },
         "source":"CME",
         "status_description":"Out for Delivery",
         "tracking_reference":"8963062936272601WLG004AS"
      }
   ],
   "tracking_reference":"8963062936272601WLG004AS"
}

Delivery:

{
   "message_datetime": "2017-10-17T11:39:46.7661705+13:00",
   "message_id": "6cd89513-5edf-4c9f-9619-08a587f69e34",
   "notification_id": "3b8aee42-ab9f-4619-ab9b-977e981034ca",
   "subscription_guid": "28F2A43B-9019-462D-A3BF-6371239ACD53",
   "tracking_events": [
      {
         "event_datetime": "2017-10-16T22:35:14.6400000Z",
         "event_description": "Delivery",
         "event_edifact_code": "22",
         "signed_by": {
            "name": "John Smith",
            "signature": ""
         },
         "source": "CME",
         "status_description": "Delivery",
         "tracking_reference": "8963062936272601WLG004AS"
      }
   ],
   "tracking_reference": "8963062936272601WLG004AS"
}

Reviews