However, when I follow the same process in the UI ...
# suitetalkapi
c
However, when I follow the same process in the UI then payment (Payment Amount) is set automatically to the value of the sales order