This is the first time that I am trying to post payments to invoices in Wild Apricot using the generic API module.
I’m hitting a roadblock and cannot see what my issue is, I’m getting an error when attempting to post a payment. The message is: The operation failed with an error. Your request was invalid: . null
Here’s a look at the very basic setup used to test a post to an invoice. The first two modules work and return the appropriate data.
If you need further assistance, please provide the following:
Input bundle of your module
Please provide the input bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
A.
Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
After looking at the code in json formatter, it took just a few seconds to figure out what was going wrong with my code.
What I did to get to the bottom of it, after getting a clue from the formatter, I just hard coded all the values in the code for the post. When I did that, the payment was successfully posted. I then methodically went through each variable, adding one at a time, testing the method each time till one failed.
It turned out that the URL variable from the previous module, 4.Url below, needed to be surrounded in double quotes. Once I made this change, it worked.
Amazing to hear that you were able to get rid of your problem with assistance from @samliew! Thank you for posting here the final solution. We appreciate it.