cancel
Showing results for 
Search instead for 
Did you mean: 

How to create shipment by API when order partially refunded?

How to create shipment by API when order partially refunded?

Situation:

  1. Client placed order, we processed partially refund before shipping (for example, refund some shipping fee to client), there would be a Credit Memo record under this order in Magento.

  2. Then the order shipped, however we could not create shipment for such order via Magento SOAP API: sales_order_shipment.create, an error occurred:

 

{"fault":{"faultcode":"102","faultstring":"Cannot do shipment for order."}}.

 

 

Research:

From this loop, we recognized that Magento couldn't ship the order when 'The order could have been refunded'.

 

Question:

How to programmatically add shipment to order that do have refund record by Magento SOAP API? And what neccessary processes should be involved to accomplish this goal?

 

Thank you so much for your kind helps, wish you everything goes well with Magento.