Learn to code
Somewhere in your code you are trying to add a String to an integer, I haven’t looked where it is but I was just trying to point out your original problem that you weren’t sending a value to the API.
Post your revised code when you have fixed it.