Get records from zoho CRM (Invalid Request)

Get records from zoho CRM (Invalid Request)

Hello guys, I have got the following response error when I try to post a request to the
https://www.zohoapis.eu/crm/v2/Subscriptions 400 (Bad Request)

  1. {
        "code": "INVALID_REQUEST",
        "details": {},
        "message": "unable to process your request. please verify whether you have entered proper method name, parameter and parameter values.",
        "status": "error"
    }
    Error fetching data from Zoho CRM: Error: HTTP error! Status: 400 at fetchCRMData (widget.html?serviceOrigin=https%3A%2F%2Fdesk.zoho.eu&isDevMode=true&frameorigin=https%3A%2F%2Fdesk.zoho.eu:89:19)
    async function fetchCRMData() {
            const authToken =
              "1000.cf978fbc6002fa5c8b83477b0049ff13.b27c21736a57b74eabffa479acbb28e3"; // Replace with your Zoho OAuth token

            const headers = {
                Authorization: 'Zoho-oauthtoken ' + authToken,
            };

            try {
              console.log("Fetching CRM data...");
              const response = await fetch(apiUrl, {
                method: "GET",
                headers: headers,
                throwHttpErrors : false,
                'contentType': 'application/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