Clone Discount Code
Creates a duplicate of an existing discount code, copying all settings (type, amount, capacity, line item rules, and group constraints). Optionally provide a new code value via the code query parameter; if omitted, the original code is used with “(Clone)” appended. Alternate discount codes cannot be cloned and will return a 400 error.
Authorizations
OAuth 2.0 bearer token obtained from POST /oauth2/token. Tokens expire after 30 minutes. Include in the Authorization header as Bearer {access_token}.
Path Parameters
integer - required - The ID of the discount code you want to clone
1
Query Parameters
Choose a unique code for the cloned discount. If omitted, the system uses the original code with '(Clone)' appended.
"SPRINGSALE2024"
Response
Cloned
The discount payload returned by every read endpoint. Reflects Discount::fields() exactly —
every property is always present in the response (values may be null).
6095869
ID of the primary discount when this row is an alternate code; null (or 0) for primary codes.
null
261977
"SPRINGSALE2024"
percentage, absolute, specific "percentage"
Maximum number of times this discount can be used. 0 means unlimited.
10
0
0
null
15
0
["session", "package"]Returned as 0 or 1 (not a JSON boolean), even though the request accepts a boolean.
0, 1 1
Merged set of line-item-specific fees for specific discounts. Outer key is the line-item
type (reg_type, package, session), inner key is the line-item ID (numeric string), value
is the fee as a string. Populated by custom_fees_update on write.
{
"session": { "4147126": "315", "4147127": "337.5" }
}"Discount for early bird registrants."
Timestamp when the discount was created. Formatted as YYYY-MM-DD HH:MM:SS.
"2026-04-28 21:00:15"
Timestamp when the discount was last updated. Formatted as YYYY-MM-DD HH:MM:SS.
"2026-04-28 21:00:15"