Preview and create delivery adjustments using the API
Learn how to preview and create delivery adjustments using the API by verifying eligible adjustments, determining necessary variables, and executing the creation of adjustments for specified dates.
To preview and create delivery adjustments using the API, complete the following steps:
After your operations, Zuora proceeds with the following steps:
-
Creates two delivery adjustments. Each is a one-day adjustment, and the first adjustment amount is 2 USD and the second adjustment amount is 5 USD.
-
Creates two credit memos, each for a delivery adjustment, then posts the credit memos.
The result of a delivery adjustment depends on whether the credit memo generation succeeds, as follows:
-
If succeeded, the credit memo status changes to
Postedand the delivery adjustment status changes toBilled. The applied amount of the credit memo equals the delivery adjustment amount, and the service period of the credit memo equals the adjustment period. -
If failed, the failure is returned in the response, and no delivery adjustment is created.