Update a Promotional Code
Updates a promotional code identified by promotionalCodeId, and fires the promotional_code.updated webhook.
Set active to false to switch a code off without deleting it — this is the safe way to retire a code an affiliate has already shared. Changing code renames it, and the new string must be unique within the program.
Every field you send is applied directly to the code, so sending a field that is not listed below will fail the request.
Requires promotional-codes:write. This legacy endpoint uses the key’s original program and its existing response format.
Updating Promotional Codes
Update an existing promotional code’s properties. You can modify settings like activation status, expiration, and redemption limits.Common Updates
- Change the code string itself
- Activate or deactivate a code
- Update expiration dates
- Modify redemption limits
- Change affiliate assignment
Authorizations
Body
Fields to update
Response
The updated promotional code.
A code customers enter at checkout. Its discount comes from the coupon it belongs to.