I don’t think you need to typecast the price but I guess it doesn’t hurt (technically a double on the server side). Otherwise it looks fine. So a couple of un-revealed questions. I’m assuming you’re using the api key method for auth? Unlike OAuth where you can login to your Mashery account and look at the log data, you’d have to ask support to check the server logs to run that down with the api key method. Do you keep a transaction log? If not I’d recommend doing that (for cases like this). If you know what the return message is then maybe share that?
Yes, this is using the older iSDK. The server I’m working with won’t let me run composer, so using the new PHP code isn’t an option w/o a lot of hassle, but correct me if I’m wrong.
Type casting was the last ditch effort to try and get a different result.
Regarding the Invoice Id, I pulled the Job ID from the UI, and it’s the same as the Invoice Id, reported by the API as well.