Cancelling A Credit Balance Adjustment

From API Documentation

Jump to: navigation, search

You may cancel a CreditBalanceAdjustment.

Note: Zuora does not support deleting CreditBalanceAdjustments.

To cancel a CreditBalanceAdjustment:

  1. Use the update() call on CreditBalanceAdjustment object
  2. Specify the Id of the CreditBalanceAdjustment you wish to cancel
  3. Set the Status to Canceled.

Sample SOAP for Canceling a CreditBalanceAdjustment

<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header>
     <ns1:SessionHeader xmlns:ns1="http://api.zuora.com/" soapenv:mustUnderstand="0">
     <ns1:session>y49XoDT6nkEB8tJI5yoW45FCMij2IBcbJhOi7SGVsqOLHliHxrAJA9aeJVHAAatCk8sGvSWU2LNCqWcIEYg168LdIW4bAvH93O-j7xRgmAqyXgvwCsnlbOASXyPh-JK2ntVBDGnCnXajdpAVcKUmXQ==</ns1:session>
  </ns1:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
   <ns1:update xmlns:ns1="http://api.zuora.com/">
     <ns1:zObjects xmlns:ns2="http://object.api.zuora.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:CreditBalanceAdjustment">
       <ns2:Id>402892df29b11b9f0129b11c75150008</ns2:Id>
       <ns2:Status>Canceled</ns2:Status>
     </ns1:zObjects>
   </ns1:update>
  </soapenv:Body>
</soapenv:Envelope>