LoyaltyReward
Reward within a loyalty program that can be added to a member for points.
When updating, already existing fields omitted from the payload will generally not be deleted unless otherwise specified.
Changing the reward type (or Offer ID for Sparkfly Offer Rewards) is not supported, at least with an Update request.
- displayType: string
_name requiredAn identifier for a Reward.
- nameType: stringrequired
An identifier for a Reward.
- pointType: integer
_value requiredHow many points are required to purchase this reward. This should be 0 for Variable Point Offer Rewards.
- typeType: stringenumrequired
What type of Reward this is. Used to distinguish a Reward that is a Sparkfly Offer from Rewards external to Sparkfly Offers (such as a T-Shirt).
values- non
_offer - fixed
_point _offer - variable
_point _offer
- createdType: stringFormat: date-time
_at read-onlythe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- descriptionType: string
More details about a Reward.
- eligibleType: integer
_channel _id If this is an Offer Reward type, the ID of the Sparkfly Campaign.
- idType: integerread-only
Integer numbers.
- mobileType: string
_image _thumb _url - mobileType: string
_image _url - offerType: integer
_id If this is an Offer Reward type, the ID of the Sparkfly Offer.
- offerType: number
_value _multiplier Required for “variable_point_offer” rewards. The transaction discount (cents for USD) per point spent on the reward. For a discount of 1 dollar off per 5 points spent, this would be set to 20.
- rewardType: integer
_catalog _id read-onlyInteger numbers.
- statusType: stringenumread-onlyvalues
- pending
- active
- suspended
- archived
- termsType: string
_and _conditions More details about a Reward.
- updatedType: stringFormat: date-time
_at read-onlythe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- webType: string
_image _thumb _url - webType: string
_image _url
{
"id": 0,
"loyalty_reward_catalog_id": 0,
"name": "string",
"display_name": "string",
"description": "string",
"terms_and_conditions": "string",
"point_value": 0,
"type": "fixed_point_offer",
"offer_id": 0,
"eligible_channel_id": 0,
"web_image_url": "string",
"web_image_thumb_url": "string",
"mobile_image_url": "string",
"mobile_image_thumb_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}