Tracking Sweden API. Version 3.1



Similar documents
Sorting support Interface documentation. Version 1.0

Search invoice API. Version 5.1

Price Online Sweden API. Version 2.8

Price Online Sweden API. Version 3.0

Price Online Sweden API. Version 4.00

Tracking API. Version 1.72

SCTS-AIS Swedish Customs Technical Specifications for Automated Import System ICS phase 1 Appendix C Codelists Version 1.0.

Electronic solutions that make every day more flexible

GetLibraryUserOrderList

Unifaun XMLPosting

Web Services API Developer Guide

New Participant Digital Certificate Enrollment Procedure

Using EDI in OTM to Increase Carrier Performance

Additional rules and comments for the transfer of container movements to DAKOSY with the EDIFACT-message CODECO/COARRI

GetFormatList. Webservice name: GetFormatList. Adress:

Description CBSA, APPENDIX C CODE TABLES PRIMARY LIFT CONTAINER PRIVATE VEHICLE PIPE RACK PARTITIONING QUARTER OF BEEF RAIL (SEMICONDUCTOR)

Pensio Payment Gateway Merchant API Integration Guide

Private Medical Insurance

Internet connection (high speed recommended) Microsoft Excel (installed locally) Adobe Reader 8.1 or later (installed locally)

SAS Data Integration SAS Business Intelligence

SAS Education Providing knowledge through global training and certification. SAS Foundation. Kursöversikt 2010

HireDesk API V1.0 Developer s Guide

Merchant Implementation Guide

Passcreator API Documentation

Issue 1.9, April agreed-upon by EDI Working Group of ECR Poland

Payment on Receipt EDIFACT INVOIC D97.A

ZF Group North American Operations. EDI Implementation Guide

AS DNB banka. DNB Link specification (B2B functional description)

The #1 Fastest Growing Customer Service Software. Comm100 Marketing API Guide. Copyright 2011 Comm100. All Rights Reserved.

IFSNA EXTENSIONS FOR DATA COLLECTION/BAR CODING CREDIT CARDS, FREIGHT INTERFACE & TAX SOFTWARE

Expense Reports. University of Kansas 2/12/2014

1. Change Log Introduction Flow summary Flow Overview Premium SMS flow Pin Flow Redirect Flow...

Example for Using the PrestaShop Web Service : CRUD

How to create an Expense Report through iexpense in the iphone Mobile App

DEPLOYMENT GUIDE Version 1.2. Deploying the BIG-IP System v10 with Microsoft IIS 7.0 and 7.5

A Shipper s View of EDI with a LTL carrier

OUR CUSTOMER RELATIONSHIPS

BS1000 command and backlog protocol

WorldShip Process a Return Services Shipment

RECOMMENDED PRACTICE 1600u CARGO POUCH LABEL (NEW)

Pacsoft Online. Collection Request

OTP Server. Integration module. Nordic Edge AD Membership Provider for Microsoft ASP.NET. Version 1.0, rev. 6. Nordic Edge

Utbytesbatterier för UPS:er 300VA VA

Office of Court Administration Automated Registry (AR) Interface Design Document for DSHS - Clinical Management for Behavioral Health Services (CMBHS)

DSV IFTMIN S93A. Message Implementation Guideline. based on. IFTMIN Instruction message UN S.93A S3

DESADV DESPATCH ADVICE. BCBG Profile. Message Implementation Guidelines Version: 1.2 Draft


Data Management System - Developer Guide

Adobe - EDIFACT D97.A ORDERS

EDIFACT DESADV D.97A for suppliers (Benteler Europe)

User Handbook Website Copa Courier Version 2 USER HANDBOOK WEBSITE COPACOURIER.COM

CSX EDI 824 Application Advice Version:

Platron API. Technical description. version 3.5

Release Notes. Infor Supplier Exchange

Document Management in e-freight based on Cloud Storage Architecture

Destin8 and Container Gross Mass Verification (VGM)

User-ID Features. PAN-OS New Features Guide Version 6.0. Copyright Palo Alto Networks

EDIFACT MESSAGE IMPLEMENTATION GUIDELINES RECEP:0:2:FH:

Guide REST based web services in Automatisk kortbetaling via Betalingsservice

Tanden Care Provider Interfaces PreAssessmentSTB v3

Version 1.00 Wien, 10. März Internationale Prüfungen

EDIFACT. Version 1.7

EDE Electronic Data Exchange Instructions April 2007

GENERAL MOTORS DE MEXICO SPOM

Commerce Services Documentation

Service for checking whether an is operative or not. Validate ids in your databases.

Installation Cookbook December 13, 2013

Bill of Lading D99A. Extract of version 3.0/E. (valid from May/July 2010 in test environment, from October 2010 in production environment)

Chapter 4b - Navigating RedClick Import Wizard

Global EDI Clearing Center (GECC)

Statistics for ( )

Cite My Data M2M Service Technical Description

The HTTP Plug-in. Table of contents

Purchase Orders Message ORDERS (EDIFACT D97A)

Hella EDIFACT ORDERS

There are various ways to find data using the Hennepin County GIS Open Data site:

Technical Brief: Dynamic Number Insertion

Hella EDIFACT INVRPT

The presentation explains how to create and access the web services using the user interface. WebServices.ppt. Page 1 of 14

Software Requirements Specification. Web Library Management System

TECHNICAL DOCUMENTATION FOR VARUBREV

DEPLOYMENT GUIDE Version 2.1. Deploying F5 with Microsoft SharePoint 2010

Application Notes for Microsoft Office Communicator Clients with Avaya Communication Manager Phones - Issue 1.1

TCP/IP Networking, Part 2: Web-Based Control

Oracle FLEXCUBE Universal Banking 12.0 RAD Notification Development. Release 1.0

VMware vcenter Log Insight Developer's Guide

< USER S GUIDE > DDNS(Dynamic Domain Name System)

DPD shipping module documentation. Magento module version 2.0.3

Qlik REST Connector Installation and User Guide

Safeguard Ecommerce Integration / API

Unicenter NSM Integration for Remedy (v 1.0.5)

THE INVOIC MESSAGE EANCOM97/EDIFACT D.96A

PURCHASE ORDER RESPONSE

ACCREDITATION COUNCIL FOR PHARMACY EDUCATION. CPE Monitor. Technical Specifications

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM System with VMware View

Transcription:

Tracking Sweden API Version 3.1

: Date: 2008-09-04 Sida 2 av 14 Revision history Version Date Comments 3.1 2008-09-04 Removed statistic variables and made remaining optional. 3.0 2008-06-19 Added XML parametres as well as reorganized the document. 2.06 2007-08-30 Adjusted and added texts/codes for status_event_code 2.05b 2006-12-20 Added gls_shipment. 2.05a 2006-11-27 Added definition of request variables: request.format.mime och request.format.type 2.04 2006-10-31 New error code 9 Delivered to terminal by shipper 2.03 2005-10-03 New field handling_unit_number (kolliid) added and new actions (status_event_code). Note that code 13 now is Picked up by consignee (was a duplicate with code 4 Arrived ). 2.02 2003-06-11 Added status_event_time, new event (status_event_code): In terminal (13) Collected (14).

: Date: 2008-09-04 Sida 3 av 14 TABLE OF CONTENTS REVISION HISTORY... 2 1 TRACKING SWEDEN... 4 2 GENERAL VARIABLES/NODES... 5 2.1 Request... 5 2.2 Response... 5 2.3 System... 6 3 INFORMATION CONCERNING ONE CONSIGNMENT (WAYBILL)... 6 3.1 Request... 6 3.2 Response... 8 3.3 Consignment events... 10 3.4 Codes for status_event_code... 11 4 INFORMATION CONCERNING CUSTOMER CONSIGNMENTS (CUSTOMER)... 11 4.1 Request... 11 4.2 Response... 13

: Date: 2008-09-04 Sida 4 av 14 1 Tracking Sweden The service gives external customers the possibility to connect to Schenker s systems and always get accurate information. The interface supports two methods: To get information about current status of a consignment by waybill number or from client ID and reference get a list of waybill numbers. Examples ready to run will be found in the documentation. Just copy and paste them in to your web browser to get an overview of the possibilities. The service can be invoked by httprequest using XML or HQF (http Query Format) and can also be returned in these two formats. Examples of requests and responses for both ways can be found in this document. Figure 1 Flow chart of the service For further information of how Schenker s online services are built and should be invoked we recommend reading our separate introduction. URL to use for HQF: http://cgi.webtrp.com/cgi-bin/cgiwrap/w01btl/prod2/online/track_trace/track_trace_table.pl? URL to use for XML: http://cgi.webtrp.com/cgi-bin/cgiwrap/w01btl/prod2/online/track_trace/xml_connector.pl?

: Date: 2008-09-04 Sida 5 av 14 2 General variables/nodes The general variables are for administrating communication and are mutual for all communication. The variables are: request, response and system. The variable data_list is an array with the message information which is specific per method. For XML it will be <request>, <response>, <system> and <data_list> which consists of <data index=? > nodes with the message information. An XML document can only contaion one top node and se we enclose the aboce mentioned nodes with <xml>. A request will thus have the following structure: <?xml version= 1.0?> <xml> <request>...</request> <response>...</response> <system>...</system> <data_list> <data index= 0 >...</data> </data_list> </xml> The title M symbolizes mandatory field. 2.1 Request Contains information to the service. The request can be done in two ways. Either with client ID and reference (customer) or with waybill number or package ID (waybill). Add prefix request. to the variables if using HQF or place the nodes under <xml><request> if using XML. service.action <service><action> M String WDR 10 Value select service.method <service><method> M String WDR 10 Value customer or waybill format.mime <format><mime> M String WDR - Response format. Value text%2fhtml, text%2fplain or text%2fxml format.type <format><type> String WDR - Response type. Value url_simple eller full. Which to use is set by response format. If response format is text%2fplain, the type should be url_simple. If response format is text%2fhtml, the type should be full. For text%2fxml the type could be set to anything. 2.2 Response Contains information from the service. Is found after prefix response. If using HQF or under <xml><response> if using XML.

: Date: 2008-09-04 Sida 6 av 14 service.name <service><name> M String WDR - Name of the service service.version <service><version> M String WDR - Version number (1.0) data_list_count <data_list_count> M Int WDR - Number of items in the data_list 2.3 System Contains error code generated from the system. For HQF system.error.id=0 means OK. For XML <system><error><id>0</id></error></system> means OK. Also contains statistic variables to the system. Add prefix system. if using HQF or place the nodes under <xml><system> if using XML. error.id <error><id> M Int WDR 5 Errorcode error.message <error><message> String WDR 100 Error message statistics.remote.coun try_code statistics.remote.send _data_format statistics.remote.acce ss_type statistics.remote.appli cation_name statistics.remote.admi n_e_mail statistics.user.organiz ation_id statistics.user.langua ge_code <statistics><remote> <country_code> <statistics><remote> <send_data_format> <statistics><remote> <access_type> <statistics><remote> <application_name> <statistics><remote> <admin_e_mail> <statistics><user><o rganization_id> <statistics><user><l anguage_code> String WDR - Countrycode for client, ex. se or us String WDR - Clients way of sending the request, xml or hqf (Http Query Format) String WDR - Clients request type, A (browser), B (wap-device) String WDR - Clients page or module which sends the request String WDR - E-mail address to the clients administrator String WDR - Clients VAT-number or Organisation number String WDR - Languagecode for clinet, ex. sv_se 3 Information concerning one consignment (waybill) Returns current status of consignment. 3.1 Request Information being sent to the service. HQF Request on waybill number: request.service.method=waybill Add prefix data_list.0. to variable. XML

: Date: 2008-09-04 Sida 7 av 14 Request on waybill number:... <request> <service> <method>waybill</method> </service> </request>... Place the node under <xml><data_list><data index= 0 >. transport_document_ number handling_unit_numbe r <transport_documen t_number> <handling_unit_num ber> M String RFF 1153-AAS DE 1154 10 Transport document number of the shipment, ex; waybillnumber or consignment number String - 18 Package ID Example of requesting current status with XML via waybill number, response in XML format: http://cgi.webtrp.com/cgi-bin/cgiwrap/w01btl/prod2/online/track_trace/xml_connector.pl?xml= <?xml version="1.0" encoding="iso-8859-1"?> <xml> <request> <format> <mime>text%2fxml</mime> <type>full</type> </format> <service> <method>waybill</method> <action>select</action> </service> </request> <data_list> <data index="0"> <consignor_reference_number /> <consignor_identification /> <handling_unit_number /> <transport_document_number>[waybill number]</transport_document_number> </data> </data_list> <system> <statistics> <remote> <country_code>se</country_code> <send_data_format>web2</send_data_format> <admin_e_mail>[clients administrators e-mail address]</admin_e_mail> <access_type>a</access_type> <application_name>[clients application where from the request is sent]</application_name>

: Date: 2008-09-04 Sida 8 av 14 </remote> <user> <organization_id>[clients VAT/org-number]</organization_id> <language_code>sv</language_code> </user> </statistics> </system> <response /> </xml> (same as above but with test values, ready to be tested in web browser) http://cgi.webtrp.com/cgibin/cgiwrap/w01btl/prod2/online/track_trace/xml_connector.pl?xml=<?xml%20version="1.0"%20e ncoding="iso-8859-1"%20?><xml><request><format><mime>text%2fxml</mime><type>full</type></format><servic e><method>waybill</method><action>select</action></service></request><data_list><data%20i ndex="0"><consignor_reference_number%20/><consignor_identification%20/><handling_unit_nu mber%20/><transport_document_number>2222222222</transport_document_number></data></ data_list><system><statistics><remote><country_code>se</country_code><send_data_format> web2</send_data_format><admin_e_mail>test@test.test</admin_e_mail><access_type>a</acc ess_type><application_name>testexempel</application_name></remote><user><organization_id >1234567891</organization_id><language_code>sv</language_code></user></statistics></syst em><response%20/></xml> To do the same request but get the response in textformat, change text%2fxml to text%2fplain and full to url_simple. Example of requesting current status with HQF via waybill number, response in XML format: http://cgi.webtrp.com/cgibin/cgiwrap/w01btl/prod2/online/track_trace/track_trace_table.pl?data_list.0.transport_document_ number=2222222222&data_list.0.handling_unit_number=&data_list.0.consignor_reference_numb er=&data_list.0.consignor_identification=&request.format.mime=text%2fxml&request.format.type =full&request.service.action=select&request.service.method=waybill&system.statistics.remote.sen d_data_format=web2&system.statistics.user.organization_id=1234567891&system.statistics.user. language_code=sv&system.statistics.remote.country_code=se&system.statistics.remote.admin_e _mail=test@test.test&system.statistics.remote.access_type=a&system.statistics.remote.applicati on_name=testexempel To do the same request but get the response in textformat, change text%2fxml to text%2fplain and full to url_simple. 3.2 Response Information returned from the service. HQF Add prefix data_list.0. to variables. XML Place nodes under <xml><data_list><data index= 0 >.

: Date: 2008-09-04 Sida 9 av 14 contract_condition_co de <contract_condition_ code> String TSR 4065-PAR 4065-COM 4065-BUD 4065-CLD 4065-DIR 4065-SPC - Product PAR = Parcel, COM = Comfort, BUD = Budget, CLD = Coldsped, DIR = Direct, SPC = Special transport_document_ number departure_place_nam e destination_place_na me <transport_documen t_number> <departure_place_n ame> <destination_place_ name> String RFF 1153-AAS DE 1154 departure_place_x_c oordinate <departure_place_x _coordinate> departure_place_y_c <departure_place_y oordinate _coordinate> destination_place_x_ <destination_place_ coordinate x_coordinate> destination_place_y_ <destination_place_ coordinate y_coordinate> acceptance_date <acceptance_date> Date DTM 2005-143 DE 2380 - Transport document number of the shipment, ex; waybillnumber or consignment number String TDT 3227-5 DE 3224 - Departure city, LOC-3224(3227=5). String TDT - Arrival city, LOC-3224(3227=8). 3227-8 DE 3224 Int - Departure city-x-coordinate Int - Departure city -y-coordinate Int - Arrival city-x-coordinate Int - Arrival city -y-coordinate - Day of transport gls_shipment <gls_shipment> String 1 Flag if event outbound Europe exists. status_event_list <status_event_list> Array - An array with transmission events. Example of response in XML format: <?xml version="1.0"?> <xml> <response> <data_list_count>1</data_list_count> <service> <version>3.0</version> <name>trackandtrace_002</name> </service> </response> <system> <error> <message>your+request+was+successfully+processed.</message> <id>0</id> </error> </system> <data_list> <data index="0"> <status_event_list> <status_event index="0"> <status_event_date>20080319</status_event_date> <status_event_time>13.17</status_event_time> <status_event_code>4</status_event_code> <status_event_place>kristianstad</status_event_place> </status_event>

: Date: 2008-09-04 Sida 10 av 14 </status_event_list> <contract_condition_code>%26nbsp%3b</contract_condition_code> <transport_document_number>2222222222</transport_document_number> </data> </data_list> <request /> </xml> Example of response in text format: response.data_list_count=1& response.service.version=3.0& response.service.name=trackandtrace_002& system.error.message=your+request+was+successfully+processed.& system.error.id=0&data_list.0.status_event_list.0.status_event_date=20080319& data_list.0.status_event_list.0.status_event_time=13.17& data_list.0.status_event_list.0.status_event_code=4& data_list.0.status_event_list.0.status_event_place=kristianstad& data_list.0.contract_condition_code=%26nbsp%3b& data_list.0.transport_document_number=2222222222 3.3 Consignment events HQF status_event_list is an array with consignment/waybill events with max 16 entries (0-15). Example: If Stockholm is the departure area (first event), it results in the following: data_list.0.status_event_list.0.status_event_place=stockholm XML <status_event_list> contains max 16 <status_event> nodes with index 0-15. Example: If Göteborg is the departure area (first event), it results in the following: <data_list> <data index= 0 >... <status_event_list> <status_event index= 0 > <status_event_place>g%f6teborg</status_event_place> </status_event>... </status_event_list> </data> </data_list>

: Date: 2008-09-04 Sida 11 av 14 See also chapter 3.4 concerning event codes for status_event_code status_event_code <status_event_code > Int STS DE 4405 - Code for event. IMPORTANT! Schenker use exclusive codes.. status_event_place status_event_date <status_event_place > <status_event_date > String STS 3227-172 DE 3225 Date status_event_time <status_event_time> String (5) STS 2005-145 DE 2380 - NAD-3036/3039 (3035=CA) Name of Schenker terminal - Date of event Time of event 3.4 Codes for status_event_code Possible codes for status_event_code Schenker use exclusive codes, which doesn t adhere Edifacts suggested standard. 1 Departed 2 Out for delivery 3 Delivered 4 Arrived 6 Advise 7 Not delivered 8 Collected 13 Picked up by consignee 14 Picked up by consignee 15 Not delivered 17 Delivery attempt unsuccessful 18 Delivery attempt unsuccessful 19 Delivery attempt unsuccessful 27 Advise finished 29 Returned to shipper 30 Delivered to agent 32 Not delivered 36 Not delivered 37 Not delivered 39 epod available 4 Information concerning customer consignments (customer) Recieves client ID and reference and returns an array of waybill numbers, not current status of consignments. 4.1 Request Information being sent to the service. HQF Request on client ID/reference: request.service.method=customer.

: Date: 2008-09-04 Sida 12 av 14 Add prefix data_list.0. to variables. XML Request on client ID/reference:... <request> <service> <method>customer</method> </service> </request>... Place nodes under <xml><data_list><data index= 0 > consignor_identificati on <consignor_identific ation> M String NAD-CZ DE 3039 8 Customer number, 8 digits consignor_reference_ number <consignor_referenc e_number> M String RFF 18 Customer reference Example of search of waybill number with XML, response in XML format: http://cgi.webtrp.com/cgi-bin/cgiwrap/w01btl/prod2/online/track_trace/xml_connector.pl?xml= <?xml version="1.0" encoding="iso-8859-1"?> - <xml> - <request> - <format> <mime>text%2fxml</mime> <type>full</type> </format> - <service> <method>customer</method> <action>select</action> </service> </request> - <data_list> - <data index="0"> <consignor_reference_number>[reference]</consignor_reference_numb er> <consignor_identification>[client ID]</consignor_identification> <handling_unit_number /> <transport_document_number /> </data> </data_list>

: Date: 2008-09-04 Sida 13 av 14 - <system> - <statistics> - <remote> <country_code>se</country_code> <send_data_format>web2</send_data_format> <admin_e_mail>[clients administrators e-mail address]</admin_e_mail> <access_type>a</access_type> <application_name>[clients application where from the request is sent]</application_name> </remote> - <user> <organization_id>[clients VAT/org-number]</organization_id> <language_code>sv</language_code> </user> </statistics> </system> <response /> </xml> Example of search of waybill number with HQF, response in XML format: http://cgi.webtrp.com/cgi-bin/cgiwrap/w01btl/prod2/online/track_trace/track_trace_table.pl? data_list.0.transport_document_number= &data_list.0.handling_unit_number= &data_list.0.consignor_reference_number=[reference] &data_list.0.consignor_identification=[client ID] &request.format.mime=text%2fxml &request.format.type=full &request.service.action=select &request.service.method=customer &system.statistics.remote.send_data_format=web2 &system.statistics.user.organization_id=[clients VAT/org-number] &system.statistics.user.language_code=sv &system.statistics.remote.country_code=se &system.statistics.remote.admin_e_mail=[clients administrators e-mail address] &system.statistics.remote.access_type=a &system.statistics.remote.application_name=[clients application where from the request is sent] Change blue text to your own information. To do the same request but get the response in textformat, change text%2fxml to text%2fplain and full to url_simple. Notice that the request must not have space between variables (as example above). 4.2 Response Information returned from the service. HQF Addera prefixet data_list.n. till variablerna, där n är ett index mellan 0-49.

: Date: 2008-09-04 Sida 14 av 14 XML <data> noderna ligger under <xml><data_list>. För varje sänding finns en <data index=? > nod med index 0-49 transport_document_ number <transport_documen t_number> String RFF 1153-AAS DE 1154 acceptance_date <acceptance_date> Date DTM 2005-143 DE 2380 - Consignment/waybill number 10 digits - Day of transport