The ShippingOptionsRequest API has been enhanced to support third-party shipments and pickup workflows by enabling custom sender information input. When MOL users are enabled for third-party shipments and pickup operations, this API accepts sender details to provide accurate shipping options and pricing for non-standard origin locations.
The SenderInfo container has the same structure of the DestinationInfo container, so, in order to obtain a proper response, it is necessary to insert at least the ZipCode and Country fields.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://www.onlinembe.it/ws/">
<soapenv:Header/>
<soapenv:Body>
<ws:ShippingOptionsRequest>
<RequestContainer>
<System>IT</System>
<InternalReferenceID>your_reference</InternalReferenceID>
<ShippingParameters>
<!-- Enhanced: Sender Information for Third-Party -->
<SenderInfo>
<ZipCode>20157</ZipCode>
<City>MILANO</City>
<State>MI</State>
<Country>IT</Country>
</SenderInfo>
<!-- Standard: Destination Information -->
<DestinationInfo>
<ZipCode>20157</ZipCode>
<City>Milano</City>
<Country>IT</Country>
</DestinationInfo>
<PackageType>GENERIC</PackageType>
<Items>
<Item>
<Weight>1</Weight>
<Dimensions>
<Lenght>1</Lenght>
<Height>1</Height>
<Width>1</Width>
</Dimensions>
</Item>
</Items>
</ShippingParameters>
</RequestContainer>
</ws:ShippingOptionsRequest>
</soapenv:Body>
</soapenv:Envelope>
The response will show as usual the possible shipping options, according to the MOL user’s courier service visibilites, rules and validations.
<ShippingOption>
<Service>SEE</Service>
<ServiceDesc>MBE Express</ServiceDesc>
<CourierAccount>W47834 - E826V2</CourierAccount>
<Courier>UPS</Courier>
<CourierDesc>UPS</CourierDesc>
<CourierService>USA</CourierService>
<CourierServiceDesc>Express Saver</CourierServiceDesc>
<NetShipmentPrice>44.00</NetShipmentPrice>
<NetShipmentTotalPrice>44.00</NetShipmentTotalPrice>
<CODAvailable>false</CODAvailable>
<InsuranceAvailable>false</InsuranceAvailable>
<IdSubzone>24</IdSubzone>
<CustomDuties>true</CustomDuties>
<SubzoneDesc>Milano</SubzoneDesc>
<MBESafeValueAvailable>false</MBESafeValueAvailable>
<GrossShipmentPrice>53.68</GrossShipmentPrice>
<GrossShipmentTotalPrice>53.68</GrossShipmentTotalPrice>
<MBESafeValue4BusinessAvailable>false</MBESafeValue4BusinessAvailable>
<isWW>false</isWW>
<TargetService>true</TargetService>
</ShippingOption>
</ShippingOptions>
<CanSeePrices>true</CanSeePrices>
</RequestContainer>
</ns3:ShippingOptionsRequestResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>