API: Creating Sales Orders - "Invalid value passed for JSONString"

API: Creating Sales Orders - "Invalid value passed for JSONString"

Hello all,

I am trying to create a sales order from API in ZOHO inventory and I keep obtaining 
  1. {
        "code": 4,
        "message": "Invalid value passed for JSONString"
    }
I tried many combinations, but the same error appear.

Yes, I can obtain all sales orders  and all items.

For creating a sales order I use:
- the url:
- the JSON:
  1. {
        "customer_id": 235260000000310001,
        "salesorder_number": "SO-00009",
        "custom_fields": [
            {}
        ],
        "reference_number": "0905219",
        "line_items": [
             {
                "item_id": 235260000000476073,
                "quantity_invoiced": 2,
                "sub_total": 444,
                "tax_total": 29,
                "total": 550
             }
         ]
    }
Does anyone have any idea about what am I doing wrong?  Or am I missing something ?

Thank you for your help.

Best Regards,
Mihaela


    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      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 Campaigns 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 コンテンツ




                              ご検討中の方