To create sales orders with zoho CRM

To create sales orders with zoho CRM

Hello, I am trying to create a sales order from Zoho CRM
 and that this is automatically created in Zoho Inventory,
I am using the following data:

data = "{\"salesorder_number\":\"SO-
00003\",\"date\":\"2015-05-28T00:00:00.000Z\",\"shipment_date\":\"2015-06-02T00:00:00.000Z\",\"custom_fields\":[{}],\"reference_number\":\"REF-S-00003\",\"line_items\":[{\"item_id\":4815000000044100,\"line_item_id\":4815000000044897,\"name\":\"Laptop-white\/15inch\/dell\",\"description\":\"Just a sample description.\",\"item_order\":0,\"bcy_rate\":122,\"customer_id\":582535000000092473,\"rate\":122,\"quantity_invoiced\":2,\"quantity_packed\":2,\"quantity_shipped\":2,\"unit\":\"qty\",\"tax_id\":4815000000044043,\"tax_name\":\"Sales Tax\",\"tax_type\":\"tax\",\"tax_percentage\":12,\"item_total\":244,\"is_invoiced\":true,\"image_id\":2077500000000002000,\"image_name\":\"dell.jpg\",\"image_type\":\"jpg\"}],\"notes\":\"Sample Note\",\"terms\":\"Terms and Conditions\",\"discount\":\"0%\",\"is_discount_before_tax\":true,\"discount_type\":\"entity_level\",\"shipping_charge\":7,\"delivery_method\":\"FedEx\",\"adjustment\":0,\"pricebook_id\":4815000000044054,\"salesperson_id\":4815000000044762,\"adjustment_description\":\"Just an example description.\",\"is_inclusive_tax\":false,\"exchange_rate\":1,\"template_id\":4815000000017003,\"documents\":[{}],\"billing_address_id\":4815000000017005,\"shipping_address_id\":4815000000017005}";


parameters=map();
parameters.put("JSONString",data);
parameters.put("authtoken","60148dd4ebe13b5236a609bd2b5a7674");
parameters.put("organization_id",643480296);
parameters.put("ignore_auto_number_generation",false);
parameters.put("scope","Zohoinvetory/inventoryapi");
resp_two = postUrl(" https://inventory.zoho.com/api/v1/salesorders",parameters);

And it generates the following error

{"code":4,"message":"Invalid value passed for customer_id"}

And the data variable is the customer_id.

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




                              ご検討中の方