Hi,
I was wondering if you could add support for Polish automated parceli delivery service called Paczkomaty.pl which is run by Inpost. This is second largest package delivery system in Poland and it's rapidly getting more and more popular.
In order to make your work easier I've included below a fragment of their API documentation (http://paczkomaty.pl/pliki/paczkomaty_api.zip) translated into english (pages 11 and 12 to be exact).
In order to track a parcel issue HTTP request to the following address:
http://api.paczkomaty.pl/?do=getpackstatus&packcode=tracking_number_goes_here
Sample address: http://api.paczkomaty.pl/?do=getpackstatus&packcode=*removed* (this parcel was sent 21.10.2014 and tracking number will be valid at least for next 3 months)
In response server will return valid XML document containing parcel status:
|
|
<paczkomaty> |
|
<status>STATUS_CODE</status> |
|
<statusDate>2014-10-22T19:38:45.981+02:00</statusDate> |
|
</paczkomaty> |
Valid status codes are:
Created - parcel was just created in system and is awaiting for pickup
Prepared - picked up, awaiting departure
Sent - parcel has left original point of pickup
InTransit - package is in transit
Stored - parcel is awaiting for pickup at automated pickup point
Avizo - avizo document has been issued
Expired - package hasn't been picked up in time (after 48h packages are moved from automated delivery point to Inpost post office)
Delivered - self explanatory
RetunedToAgency - moved to Inpost post office
Cancelled
Claimed - customer has issued a complaint request
ClaimProcessed - complaint request processing finished
In case of error following XML is returned:
|
|
<paczkomaty> |
|
<error key="Error_description_goes_here">Human readable error message in Polish</error> |
|
</paczkomaty> |
Error in case of wrong tracking number (parcel not found in system):
|
|
<paczkomaty> |
|
<error key="NoPackageFound">Nie znaleziono paczki</error> |
|
</paczkomaty> |
I hope that I've provided enough information. In case of questions please do not hesitate and contact me.