Delete Amendment using SOAP api returns CANNOT_DELETE (invalid id) message with a valid id.
I have a valid amendment id. I would like to delete the amendment using the soap api. However, i get the error code "CANNOT_DELETE" and message "invalid id". I am certain the id exists because this is the id the REST api returns when i get the amendment by subscription key.
My request is as follows:
<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.zuora.com/" xmlns:ns2="http://object.api.zuora.com/"> <x:Header> <ns1:SessionHeader> <ns1:session> <!-- my session id goes here -->
</ns1:session> </ns1:SessionHeader> </x:Header> <x:Body> <ns1:delete> <ns1:type>usage</ns1:type> <ns1:ids><!--my valid id goes here --></ns1:ids> </ns1:delete> </x:Body> </x:Envelope>
Does anyone know why this fails?
Re: Delete Amendment using SOAP api returns CANNOT_DELETE (invalid id) message with a valid id.
@riyanat - is this amendment the latest amendment you have? For example, if you have four amendments, you will only be able to delete the fourth one. Another caveat is you can only delete the amendment if invoicing has not occurred.
If both those cases are not true for your scenario, send me a PM and I'll see if I can work with you on this off the main thread.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √