API call to create create invoice in Zoho Inventory

API call to create create invoice in Zoho Inventory

I am trying to send the following json to create an invoice:
{
"customer_id": 1167451000000062085, // found by calling the get contact request
"invoice_number": "INV-00002",
"date": "2018-02-04",
"due_date": "2018-02-10",
"line_items": [
{
"item_id": 1167451000000062103, // found by calling the get items request
"quantity": 130
}
]
}

but the response is:
{
"code": 4,
"message": "Invalid value passed for JSONString"
}

the post request is being sent to :
https://inventory.zoho.com/api/v1/invoices?authtoken=<token>&organization_id=<org_id>
and content-type: application/json.
Is the request be of type "text" with the "JSONString" appended to the body? Any help will be highly beneficial to me.
    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 コンテンツ




                              ご検討中の方