views:

21

answers:

0

Anyone knows how to include return shipping when calling ship service api? Here's the code I used , yet it doesn't work:

request.RequestedShipment.SpecialServicesRequested = new ShipmentSpecialServicesRequested(); request.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes = new ShipmentSpecialServiceType[1]; request.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes[0] = ShipmentSpecialServiceType.RETURN_SHIPMENT; request.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail = new ReturnShipmentDetail(); request.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.ReturnType = ReturnType.PRINT_RETURN_LABEL;

This return me the error 8522 "Number of packages exceeds maximum". I don't understand that. I used the same exact code without the return shippment option, and it works perfectly. Why would return shipment make it worse? Anyways, here is the code, any ideas, tips,etc? any sample c# or php or xml/soap that can help?

Thanks, Elliott