I finally managed to find a solution. In step 4, I did not pass the parameters correctly. When I carefully looked at all the parameters and made a call, it works. Thanks to everyone who looked into the question and gave their time and comments.
source share