/** * @example * { * pid: "pid", * rewardId: "rewardId" * } */ export interface CreateVoucherRequest { /** Loyalty Program ID */ pid: string; /** Code generated to attribute reward to a contact */ code?: string; /** Contact to attribute the reward */ contactId?: number; /** Reward expiration date */ expirationDate?: string; /** One of contactId or loyaltySubscriptionId is required */ loyaltySubscriptionId?: string; /** Offer meta information (key/value object) */ meta?: Record; /** Reward id */ rewardId: string; /** Value of the selected reward config */ value?: number; /** Date from which the voucher becomes valid. Accepts RFC 3339 or DD/MM/YYYY HH:MM AM/PM format. Converted to UTC using the organization's timezone. */ validFrom?: string; }