Convert Zoho Books SalesOrder - Invoice

Convert Zoho Books SalesOrder - Invoice

Converting a Zoho Books Sales Order into an Invoice Using the SalesOrder Convert API

Hello Zoho Developers,

Today, we are sharing a simple and effective solution to convert a Zoho Books Sales Order into a Zoho Books Invoice using the SalesOrder Convert API.
Please check the sample code below:

  1. salesorderID = salesorder.get("salesorder_id");
  2. salesorderdate = salesorder.get("date").toDate();
  3. organizationID = organization.get("organization_id");
  4. mp = Map();
  5. mp.put("organization_id", organizationID);
  6. ConverToInvoice = invokeurl
  7. [
  8. url: "
  9. https://www.zohoapis.com/books/v3/invoices/fromsalesorder?salesorder_id=2755065000036721160"
  10. type: POST
  11. parameters: mp
  12. connection: "zohobooks"
  13. ];

2755065000036721160 = Sales Order ID

Scope Required: ZohoBooks.salesorders.ALL

With this approach, you can easily convert a Sales Order into an Invoice in Zoho Books using a single API call.

We hope this helps you streamline your process.


Please share your feedback and suggestions to help make this community a more resourceful and solution-oriented platform.

Thanks & Regards
Piyush Goyal
Zoho Developer || Zoho CRM and Creator Certified
+91-8619164837