Happy Business Starts Here

Mass Regenerate of invoice

Highlighted
Guru

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.

Schiadmi@Easyfront.fr
www.Easyfront.fr
3 REPLIES 3
Highlighted
Support SME

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.

https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/E1_SOAP_API_Object_Reference/Invoice/Gene...






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Highlighted

Re: Mass Regenerate of invoice

Is there any equivalent REST call for this?

Highlighted
Zuora Alumni

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"
  }
]

 

image.png

 

Cheers,

Kevin