Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 3.41 KB

LoyaltiesEarningRulesDisableResponseBody.md

File metadata and controls

53 lines (37 loc) · 3.41 KB

LoyaltiesEarningRulesDisableResponseBody

Response body schema for POST v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/disable

Properties

Name Type Description
id String Assigned by the Voucherify API, identifies the earning rule object.
createdAt OffsetDateTime Timestamp representing the date and time when the earning rule was created. The value is shown in the ISO 8601 format.
loyalty LoyaltiesEarningRulesDisableResponseBodyLoyalty
event String
customEvent LoyaltiesEarningRulesDisableResponseBodyCustomEvent
segment LoyaltiesEarningRulesDisableResponseBodySegment
loyaltyTier LoyaltiesEarningRulesDisableResponseBodyLoyaltyTier
source LoyaltiesEarningRulesDisableResponseBodySource
_object ObjectEnum The type of the object represented by JSON. Default is earning_rule.
automationId String For internal use by Voucherify.
startDate String Start date defines when the earning rule starts to be active. Activation timestamp is presented in the ISO 8601 format. The earning rule is inactive before this date. If you do not define the start date for an earning rule, it will inherit the campaign start date by default.
expirationDate String Expiration date defines when the earning rule expires. Expiration timestamp is presented in the ISO 8601 format. The earning rule is inactive after this date. If you do not define the expiration date for an earning rule, it will inherit the campaign expiration date by default.
validityTimeframe ValidityTimeframe
validityDayOfWeek List<ValidityDayOfWeekEnum> Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday
validityHours ValidityHours
metadata Object The metadata object stores all custom attributes assigned to the earning rule. A set of key/value pairs that you can attach to an earning rule object. It can be useful for storing additional information about the earning rule in a structured format.
updatedAt OffsetDateTime Timestamp representing the date and time when the earning rule was last updated in ISO 8601 format.
active Boolean A flag to toggle the earning rule on or off. You can disable an earning rule even though it's within the active period defined by the start_date and expiration_date of the campaign or the earning rule's own start_date and expiration_date.

Enum: ObjectEnum

Name Value
EARNING_RULE "earning_rule"

Enum: List<ValidityDayOfWeekEnum>

Name Value
NUMBER_0 0
NUMBER_1 1
NUMBER_2 2
NUMBER_3 3
NUMBER_4 4
NUMBER_5 5
NUMBER_6 6