Voucher

Represents the details of a voucher that’s issued to an advocate or to a referred friend. This object is available in API version 59.0 and later.

Referral Marketing automatically issues vouchers to advocates when their referrals sign up and issues vouchers to referrals when they complete their first purchase.

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

Type: reference

Properties: Create, Filter, Group, Nillable, Sort

Description: The ID of the business account associated with the advocate or referred party who is issued the voucher for a B2B referral program.

This field is a relationship field.

Relationship Name: Account

Refers To: Account

Type: reference

Properties: Create, Filter, Group, Nillable, Sort

Description: The ID of the contact associated with the advocate or referred friend who is issued the voucher for a B2C referral program.

This field is a relationship field.

Relationship Name: Contact

Relationship Type: Lookup

Refers To: Contact

Type: int

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The percentage of the discount that the voucher offers to the referred party it is issued to.

Type: date

Properties: Create, Filter, Group, Sort, Update

Description: Required. The date from which the referred party can redeem the voucher.

Type: date

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The date on which the voucher expires and is no longer available for redemption.

Type: currency

Properties: Create, Filter, Nillable, Sort, Update

Description: The discount amount that the voucher offers to the referred party it is issued to.

Type: dateTime

Properties: Filter, Nillable, Sort

Description: The most recent date on which a user referenced this record.

Type: dateTime

Properties: Filter, Nillable, Sort

Description: The most recent date on which a user viewed this record.

Type: reference

Properties: Create, Filter, Group, Nillable, Sort

Description: The ID of the loyalty program member associated with the advocate who is issued the voucher.

This field is a relationship field.

Relationship Name: LoyaltyProgramMember

Relationship Type: Lookup

Refers To: LoyaltyProgramMember

Type: string

Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort

Description: The unique number of the issued voucher.

Type: reference

Properties: Create, Defaulted on create, Filter, Group, Sort, Update

Description: The owner of the record.

This field is a polymorphic relationship field.

Relationship Name: Owner

Relationship Type: Lookup

Refers To: Group, User

Type: reference

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The ID of the referral promotion that issued to voucher.

This field is a relationship field.

Relationship Name: Promotion

Relationship Type: Lookup

Refers To: Promotion

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The reason why the voucher was issued.

Type: currency

Properties: Create, Filter, Nillable, Sort, Update

Description: The value that the advocate or referred party has already redeemed from the voucher. This field is only valid for vouchers that are issued using a FixedValue type voucher definition.

Type: currency

Properties: Filter, Nillable, Sort

Description: The value that the advocate or referred party is yet to redeem from the voucher. This field is only valid for vouchers that are issued using a FixedValue type voucher definition.

Type: picklist

Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update

Description: Required. Specifies the status of the voucher.

Possible values are:

  • Cancelled
  • Expired
  • Issued
  • Redeemed

The default value is Issued.

Type: reference

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The ID of the transaction journal that represents the advocate or referred party event for which the voucher was issued.

This field is a relationship field.

Relationship Name: TransactionJournal

Relationship Type: Lookup

Refers To: TransactionJournal

Type: date

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The date on which the advocate or the referred party used the voucher.

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The unique code of the voucher.

Type: reference

Properties: Create, Filter, Group, Nillable, Sort

Description: The ID of the voucher definition that was used to issue the voucher.

This field is a relationship field.

Relationship Name: VoucherDefinition

Relationship Type: Lookup

Refers To: VoucherDefinition

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

VoucherHistory: History is available for tracked fields of the object.

VoucherOwnerSharingRule: Sharing rules are available for the object.

VoucherShare: Sharing is available for the object.