API - Create A Credit Note -

API - Create A Credit Note -


I'm calling the following: https://www.zoho.com/subscriptions/api/v1/credit-notes/#create-a-credit-note but I receive the following error:  { code: 12020, message: 'Item name or description is mandatory' }

Here is my call
  1.  const data = {
          customer_id: '2497000000240373',
          date: '2023-05-18',
          creditnote_number: 'CN-00008',
          ignore_auto_number_generation: false,
          line_items: [
              description: 'prorated amount for items',
              code: 'au_currency',
              quantity: 1,
              price: 5
I can't see what I am doing wrong, 

                        Zoho Marketing Automation
                                • Sticky Posts

                                • Introducing Developer Space in Zoho Subscriptions

                                  Hello devs! At Zoho Subscriptions, we're constantly looking for ways to empower the developer community. Our goal is to provide you with the tools you need to integrate Zoho Subscriptions with your other platforms, and we also want to make it easy to

                                Manage your brands on social media

                                        Zoho TeamInbox Resources

                                          Zoho DataPrep Resources

                                            Zoho CRM Plus Resources

                                              Zoho Books Resources

                                                Zoho Subscriptions Resources

                                                  Zoho Desk Resources

                                                    Zoho Projects Resources

                                                      Zoho Sprints Resources

                                                        Qntrl Resources

                                                          Zoho Creator Resources

                                                            Zoho WorkDrive Resources

                                                              Zoho Campaigns Resources

                                                                Zoho CRM Resources

                                                                • CRM Community Learning Series

                                                                  CRM Community Learning Series

                                                                • Tips


                                                                • Functions


                                                                • Meetups


                                                                • Kbase


                                                                • Resources


                                                                • Digest


                                                                • CRM Marketplace

                                                                  CRM Marketplace

                                                                • MVP Corner

                                                                  MVP Corner

                                                                • Word of the Day

                                                                  Word of the Day

                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now