Introduce a feature that automatically links promo codes to their respective affiliates for attribution. When a customer uses a specific promo code assigned to an affiliate (e.g., Affiliate A with code X), the system should automatically register that purchase as referred by that affiliate. This removes the need for separate tracking links and ensures accurate attribution, making it easier for affiliates to promote using simple codes while improving tracking reliability for merchants.

The intention is probably you have to figure out how to implement this in a roundabout way on the client side yourself