Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get raw data (returned from API) for each models? #332

Closed
nesh-ua opened this issue Sep 26, 2023 · 3 comments
Closed

How can i get raw data (returned from API) for each models? #332

nesh-ua opened this issue Sep 26, 2023 · 3 comments

Comments

@nesh-ua
Copy link

nesh-ua commented Sep 26, 2023

SDK you're using (please complete the following information):

  • Version 2.23

Describe the solution you'd like
I need to keep copy of data which were returned from you API in my own database. Thats why i want to get raw data from each model (contact, invoice, etc.)

@nesh-ua nesh-ua changed the title How can i get raw data (frormat returned from API) for each models? How can i get raw data (format returned from API) for each models? Sep 26, 2023
@github-actions
Copy link

PETOSS-349

@github-actions
Copy link

Thanks for raising an issue, a ticket has been created to track your request

@nesh-ua nesh-ua changed the title How can i get raw data (format returned from API) for each models? How can i get raw data (returned from API) for each models? Sep 26, 2023
@Sallyhornet
Copy link

Every transaction created in Xero that effects the general ledger creates an accounting journal in the background. Typically you can only see these journals in the Journal report found in the Report Centre, however they are also available via the API.

If you pull all the journals from your organisation you'll be able to build your own reports as required. To do this you would need to perform an initial process to retrieve the complete set of journals. If these were then stored locally it would only need to be a one-time process. Subsequent updates would only need to retrieve any new journals.

Each journal that is related to a transaction will have a source id and source type. You can make calls to the relevant endpoints to get more details eg the contact, the account codes used in the line items etc

You can then store the data in a relational database.

If you need more information on this, please use this form to raise a case for Xero Support.

Xero Developer Centre:
Journals endpoint
Journal source types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants