Interface: UpdatePromoCodeRequest
Defined in: packages/sdk/src/types/generated/promo_code.ts:253
Patch an existing campaign code.
Every field is optional and model_fields_set decides what to write, so
omitting maxRedemptions leaves the cap untouched while sending
null lifts it. A model that could not tell those apart would silently
uncap a campaign on any partial edit.
code is accepted but the service refuses it once the campaign has
redemptions — renaming a code that is already in adverts and already
attributed would break the attribution the code exists to provide.
Properties
bonusCredits?
optionalbonusCredits:number|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:257
campaign?
optionalcampaign:string|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:256
code?
optionalcode:string|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:254
description?
optionaldescription:string|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:255
expiresAfterDays?
optionalexpiresAfterDays:number|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:260
isActive?
optionalisActive:boolean|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:262
maxRedemptions?
optionalmaxRedemptions:number|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:261
orgProductId?
optionalorgProductId:number|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:259
Self-service Organization product granted for one month by direct billing; null clears the plan benefit.
validFrom?
optionalvalidFrom:string|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:263
validUntil?
optionalvalidUntil:string|null
Defined in: packages/sdk/src/types/generated/promo_code.ts:264