Void Shipment Message Examples
Void Shipment request example:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:tracelink:soap"> <soapenv:Body> <urn:VoidShipment> <VoidShipmentRequest> <LocationId identifiertype="GLN" identifiervalue="8888882028655"/> <DeliveryNumber>D12345</DeliveryNumber> <DeliveryDirection>Sent</DeliveryDirection> <SenderInfo> <FromBusinessPartyInfo> <BusinessId type="GLN">6368866569756</BusinessId> </FromBusinessPartyInfo> <ShipFromLocationInfo> <FacilityId type="GLN">6368866569163</FacilityId> </ShipFromLocationInfo> </SenderInfo> <TransactionDate>2015-06-01</TransactionDate> <OrderCancelled>true</OrderCancelled> <ReasonCode>ORDER_CANCELLED</ReasonCode> <ReasonText>Order cancelled by customer.</ReasonText> </VoidShipmentRequest> </urn:VoidShipment> </soapenv:Body> </soapenv:Envelope>
Void Shipment response example:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:VoidShipmentResponse xmlns:ns2="urn:tracelink:soap" xmlns:ns3="http://tracelink.com/som"> <TLResponse> <Success>true</Success> </TLResponse> </ns2:VoidShipmentResponse> </S:Body> </S:Envelope>
Void Shipment error response example:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:VoidShipmentResponse xmlns:ns2="urn:tracelink:soap" xmlns:ns3="http://tracelink.com/som"> <TLResponse> <Success>false</Success> <ExceptionReturn> <CallException> <ExceptionCode>INVALIDDELIVERYNUMBER</ExceptionCode> <ExceptionMessage>Invalid delivery number. Delivery number not found.</ExceptionMessage> </CallException> </ExceptionReturn> </TLResponse> </ns2:VoidShipmentResponse> </S:Body> </S:Envelope>