FIELD |
TYPE |
DESCRIPTION |
Shipment |
WebShopShipment |
Required. |
deliveryTypeOrder |
int |
Required. |
The method returns a list of suited products for the shipment data input by the web shop. It depends on measurement, requested COD and so on. Based on the input from the web shop, the products which pass the validations (web shop product specific and carrier / price calculation) will be returned from ShipAdvisor. This ensures that only the valid freight method is displayed as freight alternatives for the end user (customer) to choose from for the shipment.
Products that gets price=0 from Shipadvisor will be removed from the returned list, expect if a product is configured with a fixed price set to 0. This enables the possibility to return a product configured to have free shipping.
deliveryTypeOrder:
10 = Home Alternatives
20 = At Work Alternatives
30 = Pick Up Alternatives (at chosen drop point)
40 = Return Alternatives
This is a way to group products if it is desired. Otherwise just one group could be used for all products. It is configured for each ShipAdvisor account.
It is also possible to create custom groups, in this case it configured at the ShipAdvisor account.
Request:
<soapenv:Header>
<soap:ServiceAuthenticationHeader>
<soap:Username>Flexerman21073</soap:Username>
<soap:Password>Gm15/46exRF</soap:Password>
<soap:IsEncrypted>false</soap:IsEncrypted>
</soap:ServiceAuthenticationHeader>
</soapenv:Header>
<soapenv:Body>
<ship:GetFreightProductsForShipment>
<ship:Shipment>
<ship:WebShopId>104</ship:WebShopId>
<ship:CODAmount>0</ship:CODAmount>
<ship:Lines>
<ship:WebShopLine>
<ship:NumberOfPackages>1</ship:NumberOfPackages>
<ship:PackageWeight>5000</ship:PackageWeight>
</ship:WebShopLine>
</ship:Lines>
<ship:Shopper>
<ship:PostCode>3023</ship:PostCode>
<ship:CountryCode>NO</ship:CountryCode>
</ship:Shopper>
</ship:Shipment>
<ship:deliveryTypeOrder>20</ship:deliveryTypeOrder>
</ship:GetFreightProductsForShipment>
</soapenv:Body>
Response:
<ProductInfoList>
<SuitedProductInfo>
<WebShopProductId>1040006</WebShopProductId>
<ConceptId>1032</ConceptId>
<CustomProductDBId xsi:nil="true"/>
<ServiceIds/>
<ProductName>Bedriftspakke Dør-Dør</ProductName>
<DeliveryTime>2-5 days</DeliveryTime>
<Price>138</Price>
<CurrencyCode>NOK</CurrencyCode>
<SupportsPickDropPoint>false</SupportsPickDropPoint>
</SuitedProductInfo>
<SuitedProductInfo>
<WebShopProductId>1040005</WebShopProductId>
<ConceptId>61</ConceptId>
<CustomProductDBId xsi:nil="true"/>
<ServiceIds/>
<ProductName>DPD Standard</ProductName>
<DeliveryTime>2-5 days</DeliveryTime>
<Price>185</Price>
<CurrencyCode>NOK</CurrencyCode>
<SupportsPickDropPoint>false</SupportsPickDropPoint>
</SuitedProductInfo>
<SuitedProductInfo>
<WebShopProductId>1040007</WebShopProductId>
<ConceptId>1034</ConceptId>
<CustomProductDBId xsi:nil="true"/>
<ServiceIds/>
<ProductName>Bedriftspakke Ekspress over natt 0900</ProductName>
<Description>Delivered to work before 0900 in the morning</Description>
<DeliveryTime>0900 next morning</DeliveryTime>
<Price>289</Price>
<CurrencyCode>NOK</CurrencyCode>
<SupportsPickDropPoint>false</SupportsPickDropPoint>
</SuitedProductInfo>
</ProductInfoList>
<ErrorMessage/>
Kommentarer
0 kommentarer
Artikeln är stängd för kommentarer.