How can I add the item ID to the sales orders API request responses?

How can I add the item ID to the sales orders API request responses?

I am writing an application that requires determining the rate of sales of each item over a custom time period for my clients business using the REST API. To do so I intend on querying the sales orders and calculating item specific sale rates according. In the Zoho GUI I can see the quantity AND item that was sold for the sales order, but when I query the same order via the API I only get the quantity, but not the items actually sold. I see in the documentation there is a "line_items" array that contains the "item_id" I am looking for, but that field is absent when I do a GET request to the salesorders endpoint. Is there a setting my client needs to enable to include this field in the API request? If not via the salesorder endpoint is there any way to determine what items were sold solely via the REST API?

Attached is an example of the data I receive from a sales order query (all customer info redacted of course).

Please advice, thank you.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now