Troubleshooting
Problem
Attempts to run ChangeOrder API with ProcessPaymentOnReturnOrde=Y on return order leads to the error YFS:Order cannot be modified in current status
Symptom
Steps to reproduce:
- Create Return Order from CCUI or Application Console.
- Once the Return Order is created, Move the Return Order to Return Received Status.
- Call ChangeOrder API with ProcessPaymentOnReturnOrder="Y" attribute
Cause
Return orders is in status other than draft order created status.
Resolving The Problem
As per the product design, the modification rules only has Draft Created status for the Modification Type - Return by gift recipient Modifications.
.
Also with reference to the flag -ProcessPaymentOnReturnOrder
Indicates that payment methods should be copied onto the return order and that refunds should be processed there, as opposed to the original sales order. This is only valid for return orders.
Return order in created or any other status (other than draft created status) has the payment already processed on the sales order. This disallows the usage of flag ProcessPaymentOnReturnOrder when the payment is in process on the sales order.
Was this topic helpful?
Document Information
Modified date:
11 February 2020
UID
swg21883542