Изменения

Перейти к: навигация, поиск

API Documentation

2034 байта добавлено, 15:04, 2 июля 2021
м
Order tracking by number
</div>
== Tracking Order tracking by number Number ==
Query Request for tracking order tracking by number is intended to provide minimal anonymized information about a certain order to a non-authorized user. Our system has its own interface for this which is available at the following URL: "home.courierexe.ru/{extra code}/tracking". You can either create a link to such page at your web-site or put as an iframe there or create your own page and use our API. This interface is specially designed to issue information to a human web-site user. You need to use "statusreq" query, desirably with changes=ONLY_LAST parameter in order to obtain statuses of orders into your information system!
MeaSoft allows unauthorized access to tracking at htttp://home.courierexe.ru/{client extra code}/tracking. This interface is designed to show information to a human user. You can create a link to such page at your web site, or place an iFrame, or create your own page and use our API. To receive order statuses in your information system, use <code>statusreq</code> request, the <code>changes=ONLY_LAST</code> parameter is recommended. '''A query example:Request Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
</source>
'''A response exampleResponse Example:'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<sender>
<town code="1" country="RU">Moscow city</town>
<date>2021-03-22</date> <time_min>09:00</time_min> <time_max>14:00</time_max>
</sender>
<receiver>
<town code="1" country="RU">Moscow city</town>
<zipcode>125480</zipcode> <date>20152021-0403-1822</date> <time_min>09:00</time_min> <time_max>14:00</time_max>
</receiver>
<AWBprice>BarCode387.5</AWBprice> <inshprice>387.5</inshprice> <paytype>CASH</paytype> <weight>05.1</weight> <quantity>12</quantity> <service>2</service> <type>3</type> <return>NO</return> <return_service>2</service> <return_date></return_date> <return_time></return_time> <return_message></return_message> <waittime>12</waittime> <enclosure>Kids toys</enclosure> <instruction>Check in the presence of the buyer, sign acceptance certificate</instruction> <deliveryprice total="158.6" delivery="100.00" return="58.6" /> <courier> <code>26</code> <name>Katie Summerhill</name> <phone>+79161234567</phone> </courier> <currcoords lat="55.680327" lon="37.604456" accuracy="50" RequestDateTime="2021-04-21 18:07:45" /> <status eventstore="Saint-Petersburg branchBranch office" eventtime="20162021-06-02 17:22:00" createtimegmt="20162021-06-03 16:14:44" message="" title="Delivered" country="RU">COMPLETE</status> <statushistory> <status eventstore="Moscow office" eventtime="20162021-05-30 10:20:00" createtimegmt="20162021-06-03 16:14:44" message="" title="New" country="RU">NEW</status> <status eventstore="Moscow office" eventtime="20162021-06-01 17:38:00" createtimegmt="20162021-06-03 16:14:44" message="Saint-Petersburg branch" title="Dispatch is planned" country="RUBranch office">DEPARTURING</status> <status eventstore="Moscow office" eventtime="20162021-06-01 19:53:00" createtimegmt="20162021-06-03 16:14:44" message="Saint-Petersburg branch" title="Dispatched from the warehouse" country="RUBranch office">DEPARTURE</status> <status eventstore="Saint-Petersburg branchBranch office" eventtime="20162021-06-02 07:41:00" createtimegmt="20162021-06-03 16:14:44" message="" title="Received by the warehouse" country="RU">ACCEPTED</status> <status eventstore="Saint-Petersburg branchBranch office" eventtime="20162021-06-02 09:17:00" createtimegmt="20162021-06-03 16:14:44" message="" title="Given to the courier to be delivered" country="RU">DELIVERY</status> <status eventstore="Saint-Petersburg branchBranch office" eventtime="20162021-06-02 17:22:00" createtimegmt="20162021-06-03 16:14:44" message="" title="Delivered (to be confirmed)" country="RU">COURIERDELIVERED</status> <status eventstore="Saint-Petersburg branchBranch office" eventtime="20162021-06-02 17:22:00" createtimegmt="20162021-06-03 16:14:44" message="" title>COMPLETE</status> </statushistory> <deliveredto>Mary Smith, secretary</deliveredto> <delivereddate>2021-06-02</delivereddate> <deliveredtime>17:22</deliveredtime> <outstrbarcode>EXT123456</outstrbarcode> <items> <item code="34533" extcode="abc123" quantity="1" mass="0.2" retprice="37.5" VATrate="0" barcode="2345625213125" article="1" returns="0" origincountry="040" GTD="" excise="Delivered0.00" countrygovernmentCode="RU11223311" suppcompany="Miller and Company" suppINN="1112223334" suppphone="79161234567">COMPLETEPrincess house</item> <item code="34456" extcode="abc124" quantity="2" mass="2" retprice="100" VATrate="10" barcode="4645625213138" article="2" returns="0" governmentCode="">Sword</item> <item code="34421" extcode="abc125" quantity="3" mass="0.3" retprice="50" VATrate="18" barcode="2345625213126" article="3" returns="0" governmentCode="">Jedi lightsaber</statusitem> </statushistoryitems>
</order>
</tracking>
</source>
'''Get Info in 17 TRACK Format''' '''Request Example''' <?xml version="1.0" encoding="UTF-8"?><tracking17> <extra>8</extra> <orderno>1234</orderno></tracking17> '''Request Example'''  { "number":"ExtNumber", "oriNumber":"1234", "oriCountry":"RU", "destCountry":"RU", "status":"Complete", "events":[ { "time":"2021-06-02 17:22:00", "location":"RU", "content":"Complete" }, { "time":"2021-06-02 17:22:00", "location":"RU", "content":"Courierdelivered" }, { "time":"2021-06-02 09:17:00", "location":"RU", "content":"Delivery" }, { "time":"2021-06-02 07:41:00", "location":"RU", "content":"Accepted" }, { "time":"2021-06-01 19:53:00", "location":"RU", "content":"Departure" }, { "time":"2021-06-01 17:38:00", "location":"RU", "content":"Departuring" }, { "time":"2021-05-30 10:20:00", "location":"RU", "content":"New" } ] } The function searches for the last latest order among the orders of all customers clients by its number (AWB or orderno). It provides anonymized information on a the current state of the order. <br />The description of response Response containers is are similar to the description of [[API#.D0.97.D0.B0.D0.BF.D1.80.D0.BE.D1.81_.D1.81.D1.82.D0.B0.D1.82.D1.83.D1.81.D0.B0_.D0.B7.D0.B0.D0.BA.D0.B0.D0.B7.D0.BE.D0.B2Order Status|Order status queryStatus Request]].
== Changing Order ==

Навигация