Skip to main content

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?

optional bonusCredits: number | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:257


campaign?

optional campaign: string | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:256


code?

optional code: string | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:254


description?

optional description: string | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:255


expiresAfterDays?

optional expiresAfterDays: number | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:260


isActive?

optional isActive: boolean | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:262


maxRedemptions?

optional maxRedemptions: number | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:261


orgProductId?

optional orgProductId: 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?

optional validFrom: string | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:263


validUntil?

optional validUntil: string | null

Defined in: packages/sdk/src/types/generated/promo_code.ts:264