I am trying to setup integration with an affiliate program. I'm sending an XHR to the affiliate on order confirmation (using the code-injection tool), but I can't figure out what the SquareSpace variable is to get the discount code. I need to include this in the JSON I'm sending. Does anyone know what that variable is called?
What I have already is below. I've tested it with hardcoded data to confirm that it does work correctly, but I need to know what that "coupon" variable is on the SquareSpace side.
let request = new XMLHttpRequest;
Thanks in advance for any help!