Create a discount code
Create a discount code for a partner. The partner’s group must already have a discount assigned to it, and the discount code must be associated with a link that is not already linked with another discount code.
Authorizations
Default authentication mechanism
Body
The ID of the partner to create a discount code for.
The ID of the partner's referral link to associate this discount code with. Each link can only have one discount code.
The discount code to create. If omitted, a unique code will be generated automatically from the partner's name.
100^[a-zA-Z0-9\-_]+$Response
The created discount code.
The unique ID of the discount code.
"dcode_1JVR7XRCSR0EDBAF39FZ4PMYE"
The alphanumeric discount code that customers can apply at checkout.
"PARTNER10OFF"
The ID of the discount this code belongs to.
The ID of the partner this discount code is assigned to.
The ID of the partner's referral link this discount code is associated with.
When this discount code was disabled, which happens when a partner is banned or deactivated. We don't delete the discount code to avoid another partner claiming a banned/deactivated code (abuse vector).