You are here: API Foundations > Use Cases > Making Changes: Amendment Use Cases > Adding a Product

Adding a Product

Use the Amendment object to add a product to a subscription.

To add a product to a subscription,

  1. Create a new Amendment.
  2. Set the Type to NewProduct.
  3. Specify the subscription's ID.
  4. Set the Type to Draft. Setting it to Draft is important because the amendment then won't go through until you insert the final part of the code.
  5. Insert the new amendment.
  6. Now create a new RatePlan.
  7. Set the new RatePlan.setAmendment to the new amendment you've created.
  8. Set the Type to NewProduct.
  9. Insert the new RatePlan.
  10. RatePlanCharges will be created in the background; for more information, see RatePlanCharge.
  11. Set the following fields:
  12. Update the new amendment.

Copyright © 2008-2009 Zuora, Inc.