- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Mass Regenerate of invoice
Hello,
I made a mistake on my data migration of invoices. The invoices are generated with the standard zuora template. I would like to use a specific one. One can I do a mass regenerate of invoice? Moreover, I made a mistake on the prefix of the invoices, I would like to use 2 prefix caracters but on my migration I configured the prefix with only one caracter. How can I manage it?
Thank you for your help.
www.Easyfront.fr
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Mass Regenerate of invoice
You can re-generate invoice with SOAP API Update() call.
Sample:
<ns1:update xmlns:ns1="http://api.zuora.com/"> <ns1:zObjects xsi:type="ns2:Invoice" xmlns:ns2="http://object.api.zuora.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns2:Id>8a8ae4b122561fc00122562fbc3d0002</ns2:Id> <ns2:RegenerateInvoicePDF>true</ns2:RegenerateInvoicePDF> </ns1:zObjects> </ns1:update>
8a8ae4b122561fc00122562fbc3d0002
is the invoice ID. Please note that you can pass 50 zObjects in one single Update() call.
Please find below the related KC article and let me know if this helps.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Mass Regenerate of invoice
Is there any equivalent REST call for this?
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Mass Regenerate of invoice
Hi,
You have to use the REST Actions
INPUT
POST https://rest.apisandbox.zuora.com/v1/action/update
{
"objects": [
{
"Id": "2c92c09a66ddd8e00166f68b5c432589",
"RegenerateInvoicePDF": true
}
],
"type": "Invoice"
}
OUTPUT:
[
{
"Success": true,
"Id": "2c92c09a66ddd8e00166f68b5c432589"
}
]
Cheers,
Kevin