Happy Business Starts Here

Charge Adjustment Error for Discount: You can not adjust the invoice balance from a positive amount

Partner

Charge Adjustment Error for Discount: You can not adjust the invoice balance from a positive amount

Hi all,

we need know if it's possible use an api to create all the adjustments for the invoice in the same time, as we can do by GUI. If we create one by one we receive the error :

You can not adjust the invoice balance from a positive amount to a negative amount

For invoice with a discount.

At the end we want adjust the invoice balance to 0, but creating the Invoice ItemAdjustment 1 by 1 we receive this error. We tried to fix creating the adjustment in a correct order, but it's not enought.

Do you know if exists an API in order to create all the InvoiceItemAdjustmen in the same time?

2 REPLIES 2
Zuora Support

Re: Charge Adjustment Error for Discount: You can not adjust the invoice balance from a positive amo

Hi Rosy,

 

I'll check the same for you and keep you updated with the details.






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

Zuora Support

Re: Charge Adjustment Error for Discount: You can not adjust the invoice balance from a positive amo

@robystan: You can create IIAs for multiple InvocieItems of an invoice, sample code as below where I have created IIA for 2 InvoiceItems.

 

<soapenv:Body>
<ns1:create>
  <ns1:zObjects xsi:type="ns2:InvoiceItemAdjustment">
    <ns2:AdjustmentDate>2017-07-02</ns2:AdjustmentDate>
    <ns2:Amount>1.20</ns2:Amount>
    <ns2:Comment>test</ns2:Comment>
    <ns2:InvoiceNumber>INV00000101</ns2:InvoiceNumber>
    <ns2:SourceId>2c92c0f85b8fa30e015b92eb2d10577b</ns2:SourceId>
    <ns2:SourceType>InvoiceDetail</ns2:SourceType>
    <ns2:Type>Credit</ns2:Type>
  </ns1:zObjects>
  <ns1:zObjects xsi:type="ns2:InvoiceItemAdjustment">
    <ns2:AdjustmentDate>2017-07-02</ns2:AdjustmentDate>
    <ns2:Amount>1.20</ns2:Amount>
    <ns2:Comment>test</ns2:Comment>
    <ns2:InvoiceNumber>INV00000101</ns2:InvoiceNumber>
    <ns2:SourceId>2c92c0f85b8fa30e015b92eb2d10577c</ns2:SourceId>
    <ns2:SourceType>InvoiceDetail</ns2:SourceType>
    <ns2:Type>Credit</ns2:Type>
  </ns1:zObjects>
</ns1:create>
</soapenv:Body>

You can also check below articles for sample code and details on each field.

 

https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/E1_SOAP_API_Object_Reference/InvoiceItemA...

 

Please let me know if this helps or in case of any further concern.






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