How to Attach Promotion Codes to Discounts
You can attach a promotion code to a Discount object through the PromoCodeDefinitionId property. For a complete example that includes how to use the property, see How to Create a Discount.
You can attach a promotion code to a Discount object through the PromoCodeDefinitionId property. For a complete example that includes how to use the property, see How to Create a Discount.