Defect HC-12517

Sending e-mail from OrderPaymentSynchronize fails


Customer case Applies to Corrected in
CS0231943 V9.1.5.0

Observed behavior

While sending an e-mail from OrderPaymentSynchronize job, a REST API call is failed by policies due to switching the user from -1000 to -1002 (Generic user).

Expected behavior

There should be no failure in the API calls due to policy failures.


The user id and store id (against the saved order) were not passed correctly to the command context object, preventing the email jsp for the OrderPaymentSynchronize job from being called correctly. When the command context is incorrect, the right activity tokens for the order cannot be fetched. This error has been corrected.