Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
Hi there @AdamSales,
Most commonly I find a null response is returned from code rather than the API. For example, if a json_decode function wasn't able to decode JSON the wrapping function could return null.
For that reason, I'd recommend starting with a cURL trace of the API response and then debugging the API call rather than the code.
In the case of access tokens, the most common error is invalid_request and usually boils down to either a) the parameter encoding (make sure you don't accidentally double encode the access code or redirect uri) or b) badly formatted HTTP requests.
If you continue to have issues, could you send an HTTP trace of your API call through to email@example.com where we can help out in more detail.
I have the same issue as this post
I am using the same codes and get the null return for access token.
That post has been archieved.
So can anyone help me sort out this issue now?