API Questions/Ignorance

Hi Guys,

First please excuse my ignorance with all of this, in the past I’ve manually written the PHP to work with API’s and sort of followed example code to get it working, however this time i’m completely lost. I don’t know whether to use an API action, datasource or what.

I’m trying to get a list of invoices from my accounting software, they provide documentation here:

I’m connecting locally, I’ve tried with API Data Source and seem to be able to “fetch data schema” without errors but I can’t get it to output any data and I don’t even know if I’m doing it right.

If possible could someone please walk me through a basic guide on how to just get the API to list all the invoices

Here says: https://accountrightapi.myob.cloud/?version=latest#c7ce000b-e441-468d-b4d3-4f2b27c34ee4

Company File URI/Company File GUID/Sale/Invoice is how I list all the invoices, where am I putting this information, do I put this in the Url of the API data source?

Sorry for all of the questions, I’m just confused and not sure where to start with it.

TIA,
Ben

Hi Ben,

Typically api’s require secret keys in order to work, so I do all api work on the server so as not to expose those keys. You might want to look at the server side API action. It can fetch your invoices and return them to the front end.

—Ken

Thanks Ken, turns out I was doing it right all along, I just wasn’t adding a header that was needed, now it’s outputting data :smiley: thanks!