Create a new promotional coupon for an affiliate. The coupon is created at the payment provider and linked to the affiliate.
Provider-specific rules:
percentage discount typeproduct_idduration_in_months required when duration is repeatingcurrency required when discount_type is fixedAPI key authentication. Prefix with 'sk_live_' for production or 'sk_dev_' for development.
ID of the affiliate to create the coupon for
Promotional code. Can only contain letters, numbers, and hyphens. Will be converted to uppercase.
1 - 50Type of discount. Note: DODO only supports 'percentage'
percentage, fixed Discount amount. For percentage: 0-100. For fixed: the amount in the specified currency.
0 <= x <= 100How long the discount applies. 'repeating' requires duration_in_months.
forever, once, repeating Required when duration is 'repeating'. Number of months the discount applies.
x >= 1Required when discount_type is 'fixed'. 3-letter ISO currency code (e.g., USD, EUR).
3List of product IDs to restrict the coupon to. Required for CREEM provider.