Update Zoho Subscription Invoice
Hello All,
Problem Statement:- I am not able to update the Invoice which i have created inside the zoho subscription by the api call, can someone help me for the same, I am also sharing the Reference code and error
...........Update Code
- invoiceID = invoice.get("invoice_id");
- invoicedate = invoice.get("invoice_date").toDate();
- organizationID = organization.get("organization_id");
- resvp = zoho.subscriptions.retrieve("invoices",organizationID,invoiceID,"zohosubscrition");
- invoiceid = resvp.get("invoice").getJSON("invoice_id");
- mp = Map();
- mp.put("item_id",invoiceid);
- itemlist = List();
- itemdata = resvp.get("invoice").getJSON("invoice_items");
- for each rec in itemdata
- {
- itemdata = Map();
- itemdata.put("item_id",rec.get("item_id"));
- itemdata.put("product_id",rec.get("product_id"));
- itemdata.put("price",900);
- itemdata.put("quantity",1);
- itemdata.put("item_total",900);
- itemlist.add(itemdata);
- }
- mp.put("invoice_items",itemlist);
- mp.put("reason","we are testing this by the api call");
- resvp1 = zoho.subscriptions.update("invoices",organizationID,invoiceID,mp,"zohosubscrition");
- info resvp1;
Error:- {"code":102028,"message":"Items of this invoice cannot be modified."}
Please check the same and tell how can we update the invoice which we have created inside the zoho Subscription,
Apart from this is there anything information required please let me know.
Thank You
Piyush Goyal
Sticky Posts
Zoho Billing will discontinue support for older browser versions soon
Hello users, Starting from May 15, 2024, Zoho Billing will no longer support the following browser versions: Browsers Version Restrictions Firefox Browser Versions older than 100 Google Chrome Versions older than 100 Microsoft Edge Versions older than
Introducing Developer Space in Zoho Subscriptions
Hello devs! At Zoho Subscriptions, we're constantly looking for ways to empower the developer community. Our goal is to provide you with the tools you need to integrate Zoho Subscriptions with your other platforms, and we also want to make it easy to