Skip to main content

Fields

discountTargets : JSONString
        A mapping from discount codes to lists of targets.
        Each target is represented as:
        {
            'target_type': {'domain': ..., 'type': ...},
            'identifier': ...,
            'displayed_on_bill': ...,
            'eligibility_window': {'window_type': ..., 'window_data': ...}
        }
        Eligibility_window is optional. Supported window_type values are:
        'FIXED_PERIOD'
        (window_data: {'period': {'start': <ISO datetime>, 'end': <ISO datetime>}})
        and
        'RELATIVE_DURATION'
        (window_data: {'calendar_unit': 'day'|'week'|'month'|'year', 'count': <int>}).
promotionCode : String

The promotion code for this schedule.

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Example

{ "discountTargets": {"key": "value"}, "promotionCode": "allow-prepare-left-blue-coach" }