API Data Types

The documentation for the fields in the templates found here doesn't include the data types. Does anyone know where to get them?
I ran into an issue where I assumed that the "transactionID" could be type int, but had to change to a long. Now I am worried about other assumptions I may have made.
Also, Policy List Getter documented here doesn't give data types either. The example on the right shows the field "id" as being alphanumeric or more likely hexadecimal. Does anyone know where the data type documentation is for this?
All help is appreciated. Thanks
Answers
-
Sheena Trepanier Expensify Team, Approved! Accountant, Expensify Student Ambassador Posts: 1,362 Expensify Team
Hi @Nick_Tornese, thanks for posting. At this time we do not show the data types in the API documentation, sorry about that.
However, in the Policy List Getter documentation here, you can see the data types in the sample along the right side of the screen.
While we do not show the data types in the documentation, you should find that JSON respects the expected data types.
-
Thanks for the response. As a work around, I just treated all data as text. For my project, as it stands today, it works.