| AutogeneratedCodeLength |
- Type
- int
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The length of the auto-generated voucher code. If no value is specified, the
default is eight digits. This field is available in API version 57.0 and
later.
|
| CodePrefix |
- Type
- string
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The prefix of the auto-generated voucher code. This field is available in
API version 57.0 and later.
|
| CodeSuffix |
- Type
- string
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The suffix of the auto-generated voucher code. This field is available in
API version 57.0 and later.
|
| CostPerVoucher |
- Type
- currency
- Properties
- Create, Filter, Nillable, Sort, Update
- Description
- The liability incurred for each voucher that's issued. This field is
available in API version 52.0 and later.
|
| Description |
- Type
- textarea
- Properties
- Create, Filter, Nillable, Sort, Update
- Description
- The description of the voucher.
|
| DiscountPercent |
- Type
- int
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The discount percentage associated with the voucher.
|
| EffectiveDate |
- Type
- date
- Properties
- Create, Filter, Group, Sort, Update
- Description
- Required. The date on which the voucher becomes valid.
|
| ExpirationDate |
- Type
- date
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The date the voucher expires. The expiration date is only valid for the
fixed date model.
|
| ExpirationPeriod |
- Type
- int
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The number of days or months in the expiration period.
|
| ExpirationPeriodUnit |
- Type
- picklist
- Properties
- Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Description
- The unit for the expiration period.
- Possible values are:
|
| ExpirationType |
- Type
- picklist
- Properties
- Create, Filter, Group, Restricted picklist, Sort, Update
- Description
- Required. The type of expiration for the voucher.
- Possible values are:
|
| FaceValue |
- Type
- currency
- Properties
- Create, Filter, Nillable, Sort, Update
- Description
- The value of the voucher.
|
| ImageUrl |
- Type
- url
- Properties
- Create, Filter, Nillable, Sort, Update
- Description
- The URL for the voucher definition image. This field is available in API
version 57.0 and later.
|
| IsActive |
- Type
- boolean
- Properties
- Create, Defaulted on create, Filter, Group, Sort, Update
- Description
- Required. Indicates whether the voucher is active (true) or not (false).
- The default value is false.
|
| IsPartialRedeemable |
- Type
- boolean
- Properties
- Create, Defaulted on create, Filter, Group, Sort, Update
- Description
- Indicates whether the voucher can be partially redeemed (true) or not (false). This field is available in API version 53.0 and
later.
- The default value is false.
|
| LastReferencedDate |
- Type
- dateTime
- Properties
- Filter, Nillable, Sort
- Description
- The most recent date on which a user referenced this record.
|
| LastViewedDate |
- Type
- dateTime
- Properties
- Filter, Nillable, Sort
- Description
- The most recent date on which a user viewed this record.
|
| LoyaltyProgramId |
- Type
- reference
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The ID of the loyalty program.
- This is a relationship field.
- Relationship Name
- LoyaltyProgram
- Relationship Type
- Lookup
- Refers To
- LoyaltyProgram
|
| Name |
- Type
- string
- Properties
- Create, Filter, Group, idLookup, Sort, Update
- Description
- The name of the voucher.
|
| OwnerId |
- Type
- reference
- Properties
- Create, Defaulted on create, Filter, Group, Sort, Update
- Description
- The ID of the user who owns this record.
- This is a polymorphic relationship field.
- Relationship Name
- Owner
- Relationship Type
- Lookup
- Refers To
- Group, User
|
| PartnerAccountId |
- Type
- reference
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The partner associated with the voucher.
- This is a relationship field.
- Relationship Name
- PartnerAccount
- Relationship Type
- Lookup
- Refers To
- Account
|
| ProductCategoryDerivedFieldId |
- Type
- reference
- Properties
- Filter, Group, Nillable, Sort
- Description
- A look up to show product category in voucher definition.
- This is a relationship field.
- Relationship Name
- ProductCategoryDerivedField
- Relationship Type
- Lookup
- Refers To
- ProductCategory
|
| ProductDerivedFieldId |
- Type
- reference
- Properties
- Filter, Group, Nillable, Sort
- Description
- A look up to show product in voucher definition.
- This is a relationship field.
- Relationship Name
- ProductDerivedField
- Relationship Type
- Lookup
- Refers To
- Product2
|
| ProductId |
- Type
- reference
- Properties
- Create, Filter, Group, Nillable, Sort, Update
- Description
- The product associated with the voucher.
- This is a polymorphic relationship field.
- Relationship Name
- Product
- Relationship Type
- Lookup
- Refers To
- Product2, ProductCategory
|
| Type |
- Type
- picklist
- Properties
- Create, Filter, Group, Restricted picklist, Sort, Update
- Description
- Required. The type of voucher.
- Possible values are:
-
DiscountPercentage—Discount
Percentage
-
FixedValue—Fixed Value
-
ProductOrService—Product or
Service
|