Cancel a delivery adjustment using the API
Learn how to cancel a delivery adjustment using the API, ensuring the credit memo is posted and unapplied if necessary.
You can cancel a delivery adjustment only if the credit memo is posted and the entire credit memo amount has not been applied. Otherwise, you need to unapply the entire credit memo amount and ensure the credit memo status is still posted. For more information, see Unapply credit memos from invoices and debit memos .
To cancel a delivery adjustment, perform the following steps:
After your operation, Zuora creates a debit memo whose amount equals the credit memo amount to write off the credit memo, and the result of the cancellation of the delivery adjustment depends on whether the debit memo generation succeeds, as follows:
-
If succeeded, the debit memo status changes to
Posted. The entire amount of the credit memo is applied to the debit memo, and the credit memo balance changes to 0. Meanwhile, the delivery adjustment status changes toCancelled. -
If failed, the failure is returned in the response, and the delivery adjustment status remains unchanged, still as
Billed.