invalid DATA : error maximum decimal place

invalid DATA : error maximum decimal place

Hello,

When creating a Deal with associated products, I have a technical error with the Amount data, but I don't understand what the problem is. Any help would be appreciated.

  1. request : {"Deal_Name":"FC24-10","Stage":"A régler","Sub_Pipeline":"Echeancier Standard","Pipeline":{"id":"6028338000000475001"},"Account_Name":{"id":"6028338000000511066"},"Contact_Name":{"id":"6028338000000511071"},"Amount":"70.56","Associated_Products":[{"Product":{"id":"6028338000000513425"},"Quantity":3,"List_Price":19.6}]}
    response2 : {"data":[{"code":"INVALID_DATA","details":{"maximum_length":16,"api_name":"Amount","json_path":"$.data[0].Amount","maximum_decimal_place":2},"message":"invalid data","status":"error"}]}




Used Json with status error


Amount formating



What's surprising is that this error is not systematic. Here's another dataset where the status code is success :


  1. request : {"Deal_Name":"FC23-6","Stage":"A régler","Sub_Pipeline":"Echeancier Standard","Pipeline":{"id":"6028338000000475001"},"Account_Name":{"id":"6028338000000511066"},"Contact_Name":{"id":"6028338000000511071"},"Amount":"20.88","Associated_Products":[{"Product":{"id":"6028338000000513424"},"Quantity":2,"List_Price":17.4},{"Product":{"id":"6028338000000513672"},"Quantity":3,"List_Price":34.8}]}
    response2 : {"data":[{"code":"SUCCESS","details":{"Modified_Time":"2024-01-15T02:01:45+01:00","Modified_By":

Update
I made additionnal tests.
When I truncate the List_Price variable to remove decimals, error status code is solved.
But I still don't understand what's causing the problem


  1. request : {"Deal_Name":"FC24-10","Stage":"A régler","Sub_Pipeline":"Echeancier Standard","Pipeline":{"id":"6028338000000475001"},"Account_Name":{"id":"6028338000000511066"},"Contact_Name":{"id":"6028338000000511071"},"Amount":"70.56","Associated_Products":[{"Product":{"id":"6028338000000513425"},"Quantity":3,"List_Price":19}]}
    response2 : {"data":[{"code":"SUCCESS","details":{"Modified_Time":"2024-01-15T14:07:28+01:00","Modified_By":






      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ



                                ご検討中の方