How to POST data via API to Invoice Item Custom Field

How to POST data via API to Invoice Item Custom Field

I would like to use the API to POST hundreds of Sales Order Items to 1 invoice. 
It seems there is no built-in way to convert 100s of Sales Orders to 1  invoice, so I thought that I could just use API to post all of the items from all of the sales orders to 1 invoice. This seems easy enough, but I need a custom field on the items to record the sales order ID #. 
so, my invoice would have hundreds of lines like:

SO ID   |    Item    |  Quantity   | Rate  |  Total 
G1234  |   shirt     |       5          |   10    |   50


I can see how to set up a custom field on the Items. 
1) I would like to know if I can POST any data to the custom field for the item when creating an Invoice. 
2)  If I can post dynamically to the SO ID custom field, how do I refer to it in the JSON?

    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