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
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Sticky Posts
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
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Desk Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.