Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel1
maxLevel6
include
outlinefalse
indent
excludeOn this page:
typelist
class
printablefalse

Tracking webhook

Info

The purpose of this guide is to explain how OmniParcel can send tracking updates to an integrated system via an API Webhook.

Note

To help secure your Application endpoint, OmniParcel can use basic authentication and pass a username and password in the header

Requires Authentication

  • Customer to provide Username and Password for OmniParcel to use in webhook

Protocol

  • HTTP/HTTPS (Preferred)

Headers

  • Username:<value>

  • Password:<value>

 

Tracking Webhook Process Flow

...

Parameters

Parameter

Type

Description

ConsignmentNo

String

Consignment number

Status

String

Current Consignment Status

Picked

Datetime

Date time consignment was manifested to Seko

Delivered

Datetime

Delivered datetime of consignment

Tracking

String

Consignment tracking URL

Events

Object Array

See Events Information

 

Event Information

Parameter

Type

Description

Code

String

Stage of Event

EventDT

String

Date and Time of event. Local to region where it occurred

OmniCode

String

OmniParcel Tracking Code. Full List of tracking codes can be provided

Description

String

Description of Tracking Event from Carrier

Location

String

Location of Event

Part

Integer

If consignment has multiple packages, this is the package number

 

Example Request body

Code Block
[  
   {  
      "ConsignmentNo":"1245",
      "Status":"Tracking number allocated & order ready",
      "Picked":"",
      "Delivered":"",
      "Tracking":"http://track.omniparcel.com/1245",
      "Events":[  
         {  
            "EventDT":"2018-28-28T17:22:43",
            "Code":null,
            "OmniCode":"OP-1",
            "Description":"Tracking number allocated & order ready",
            "Location":"IL",
            "Part":"1"
         }
      ]
   },
   {  
      "ConsignmentNo":"ABC124578",
      "Status":"Scanned out of Auckland TO Napier",
      "Picked":"2018-07-23 140426",
      "Delivered":"",
      "Tracking":"http://track.omniparcel.com/ ABC124578",
      "Events":[  
         {  
            "EventDT":"2018-30-23T05:30:22",
            "Code":null,
            "OmniCode":"OP-43",
            "Description":"Customs cleared",
            "Location":"NZ",
            "Part":"1"
         },
         {  
            "EventDT":"2018-30-23T05:30:18",
            "Code":"PUP",
            "OmniCode":"OP-7",
            "Description":"Picked up",
            "Location":"Auckland",
            "Part":"1"
         },
         {  
            "EventDT":"2018-04-23T14:04:26",
            "Code":"OUT",
            "OmniCode":"OP-51",
            "Description":"Scanned out of Auckland TO Napier",
            "Location":"",
            "Part":"1"
         }
      ]
   }
]

 For detailed information about our tracking webhook, please see our tracking documentation here.

  

Info

Please provide below details to your account manager for your webhook to be configured

Request

https://yourwebsite.com/yourendpoint

https://yourwebsite.extension/yourendpoint

Headers
Username:<value>

Password:<value>

...

  1. Log into your Mangeto admin portal.

  2. Navigate to System => Webservices => SOAP/XMP-RPC => Roles.

  3. Create a new role as OmniParcel

  4. Select Role Resources

  5. Grant access to Sales and Directory as shown below.

  6. Navigate to System => Webservices => SOAP/XMP-RPC => Users

  7. Create a new user as below. You can change the values below to suit your needs. The API Key is the password.

  8. Select User Role. Add user to the newly created OmniParcel role.

  9. Change Setting System => Configuration => Services => Magento Core API.

  10. To configure the app in OmniParcel, follow these steps above.