Represents scheduling information that determines when purchases can qualify to earn points from a loyalty promotion.
LoyaltyPromotionAvailableTimeData
Name | Type | Tags | Description |
---|---|---|---|
startDate |
string | undefined |
Optional | The date that the promotion starts, in YYYY-MM-DD format. Square populates this fieldbased on the provided time_periods . |
endDate |
string | undefined |
Optional | The date that the promotion ends, in YYYY-MM-DD format. Square populates this fieldbased on the provided time_periods . If an end date is not specified, an ACTIVE promotionremains available until it is canceled. |
timePeriods |
string[] |
Required | A list of iCalendar (RFC 5545) events ( VEVENT ). Each event represents an available time period per day or days of the week.A day can have a maximum of one available time period. Only DTSTART , DURATION , and RRULE are supported. DTSTART and DURATION are required andtimestamps must be in local (unzoned) time format. Include RRULE to specify recurring promotions,an end date (using the UNTIL keyword), or both. For more information, seeAvailable time. Note that BEGIN:VEVENT and END:VEVENT are optional in a CreateLoyaltyPromotion requestbut are always included in the response. |
{
"time_periods": [
"time_periods1",
"time_periods2"
]
}