Important note: We still support the operation of Ship Advisor 1.0 but the product is discontinued and we no longer make any new deployments. Please see our documentation for Ship Advisor 2.0 which will eventually replace Ship Advisor 1.0. |
ShipAdvisor is a pure web service and therefor it does not provide a graphical interface in any form.
This ensures flexibility and freedom to customize the output from the methods on the client side.
ShipAdvisor provides the data that could be used to show drop points in e.g. a Google map, but do not provide a Google map API key. A Google map API key is created by Google and will only work on the domain(s) that it is created on.
Briefly description: Client (web shop application) calls GetFreightProductsForShipment to get the suited freight products for the shipment used as input parameter. At this moment, no evidence is registered in ShipAdvisor. After all inside processes of the order, client calls CreateConfirmedOrder to create a complete shipment (including freight product and drop point information) and sends it to ShipAdvisor also in this step.
This is the standard order of calling ShipAdvisor:
- GetFreightProductsForShipment
- (optional) DropPoint Methods (1 or more calls)
- (optional) CreateConfirmedOrder
Common methods:
* GetFreightProductsForShipment
* CreateConfirmedOrder
Miscellaneous methods:
* GetPrices
* GetShipmentByOrder
DropPoint methods:
* GetClosestDropPoint
* SearchForDropPoints
* SearchDPsForMoreProducts
* GetDropPointByCarriersId
Drop points are divided into 2 categories: carrier DP and web shop DP.
Carrier DPs are related to the carrier; stores and other facilities that have an agreement with the carrier to be a package distribution point. Usually, a single carrier is present in one DP.
Web shop DP are custom drop points that are unique for the specific webshop it is created on and used together with custom products defined in ShipAdvisor.
This could be a product that the customer would choose if they want to pickup the order at the store. If the store has multiple locations then a custom drop point could be linked to
the product so the customer could choose from a list / map which store he wants to pick up the order from.
GetClosestDropPoint and SearchForDropPoints are returning only carrier drop points.
SearchDPsForMoreProducts handles carrier DP and web shop DP on multiple carriers and webshop products.
Deprecated methods:
* CancelChodOrder
* CancelConfirmedOrder
* ConfirmChodOrder
* GetChodOrder
* GetFreightProducts
* OrderInitialize
* UpdateChodOrder
The above methods are no longer in use by ShipAdvisor.
NOTE : All the methods are protected by SOAP authentication header. Each client, including test ones will be provided unique credentials (WebShopId, Username and Password) for accessing the application.
WebShopLine
NOTE : A WebShopLine in ShipAdvisor is not the same as a product line in a Web shop shopping cart. It is like the goods line in Consignor ( your TA solution), where you defined the values for the number of packages(parcels), measurements of the packages and so on.
This indicates that you need some kind of logic on the client side to know how the shipment would be shipped regarding the number of parcels for the shipment.
Remember a WebshopLine operates on line and package(parcel) level. This means that the values you pass in for the fields, like PackageWeight and measurements, are for each package defined in NumberOfPackages.
Example:
NumberOfPackages is set to 2 and PackageWeight is set to 5000 grams. This means that this WebshopLine has two parcels and each parcel weighs 5000 grams ( 5 kgs), with a total weight of 10000 grams.
Use multiply WebShopLines If you need to define different measures for parcels.
Example:
First WebShopLine – > NumberOfPacakges = 2, PackageWeight = 2000 gram
Second WebshopLine –> NumberOfPackages = 1, packageWeight = 3000 gram
The first line contains 2 parcels that weigh 2000 grams each and a total of 4000 grams.
The second line contains 1 parcel that weighs 3000 grams.
This shipment would contain 3 parcels with a total weight of 7000 gram
Business Entities:
- Receiver – data about the user/buyer like address, postcode, etc.
- WebShopShipment – all data on the order / shipment, it can include more items, this is what it has an array of WebShopLines
- WebShopLine – goods line data of the order, number of packages, weight etc.
- DropPointData – data about the drop point selected by the end-user/buyer.
- SelectedProduct contains the product name, delivery time, price, etc.
- OrderOutput – response from ShipAdvisor returning order_ID from ShipAdvisor on success or error message if something goes wrong.
- ProductWrapper – contains ProductInfoList of SuitedProductInfo returned from ShipAdvisor
Here are the business entities in details:
NOTE: for more accurate and up-to-date information please check the wsdl file
Receiver
- Name
- Name2
- Address
- Address2
- City
- CountryCode
- PostCode
- Phone
- Phone2 //Mobile
- Attention
- ReceiverRef
- MessageToCarrier
- MessageToDriver
- MessageToReceiver
- CODKID
- CODReference
WebShopShipment
- WebShopId //An unique id that identify the webshop (given by nShift)
- OrderNumber //This is generated in webshop as an Id and sent to ShipAdvisor
- ChODId //Identifies an order in ShipAdvisor system. Generated in ShipAdvisor
- InsuranceAmount
- CODAmount //The COD amount of the order if any
-
WebShopLine: List of WebShopLine, which contains:
- NumberOfPackages
- Description
- PackageWeight //Measured in G
- PackageHeight //In MM
- PackageLength //In MM
- PackageWidth //In MM
- PackageVolume //In MM3
- NullableDangerousGoods //Boolean or N/A
- UNNumber //A standard code for the dangerous good type (substance)
- PackagesContents
- CurrencyCode
- ExchangeRate //Not in use
-
Shopper //Contains location information about the receiver/buyer(type Receiver):
- Name
- City
- Phone
- CountryCode
- PostCode
- Address
- RequestDate //Not in use
- ShipLoadmeterMM
- DeliveryDate
- deliveryTypeOrder (E.g 10 = Home delivery, 20 = At Work, 30 = Pick Up)
DropPointData
- OriginalId
- Name1
- Name2
- Address1
- Address2
- PostalCode
- City
- CountryCode
SelectedProduct
- WebShopProductId
- Price
- CurrencyCode
- DropPoint //Type of DropPointData
ProductWrapper
- ProductInfoList = list of SuitedProductInfo
- ErrorMessage, if something goes wrong when filtering the products
OrderOutput
- long ChODId = used to identify an order during the whole flow
- byte ErrorCode -inform WebShop there was a problem when creating the order
- string ErrorMessage –same, description of error