Accept-Encoding | string Include the If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a |
Content-Encoding | string Include the |
Authorization required | string The value is in the |
Zuora-Entity-Ids | string An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header. |
Zuora-Org-Ids | string Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header. The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. If the header is not set, the operation is performed in scope of the user's accessible orgs. |
Zuora-Track-Id | string <= 64 characters A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue. The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ( |
active | boolean Indicate whether the scheduled event is active or inactive |
condition | string <= 65535 characters The filter rule conditions, written in JEXL. The scheduled event is triggered only if the condition is evaluated as true. The rule might contain event context merge fields and data source merge fields. Data source merge fields must be from the base object of the event or from the joined objects of the base object. Scheduled events with invalid merge fields will fail to evaluate, thus will not be triggered. For example, to trigger an invoice due date scheduled event to only invoices with an amount over 1000, you would define the following condition:
|
description | string <= 1000 characters The description of the scheduled event. |
displayName | string [ 1 .. 500 ] characters The display name of the scheduled event. |
hours | integer [ 0 .. 23 ] The scheduled time (hour) that the scheduled event notifications are sent. This time is based on the localized timezone of your tenant. |
minutes | integer [ 0 .. 59 ] The scheduled time (minute) that the scheduled event notifications are sent. This time is based on the localized timezone of your tenant. |
object The parameters of the filter rule. The names of the parameters must match with the filter rule and can't be duplicated. |
OK
Bad Request
Server Error
{- "active": true,
- "condition": "Subscription.Status == _SUBSCRIPTION_STATUS",
- "description": "Trigger a scheduled event at 10:30 AM based on TermEndDate of subscription objects.",
- "displayName": "Term End Date Scheduled Event",
- "hours": 10,
- "minutes": 30,
- "parameters": {
- "_SUBSCRIPTION_STATUS": {
- "description": "The status of the subscription",
- "displayName": "Subscription Status",
- "options": [
- "Draft",
- "Active",
- "Pending",
- "Expired",
- "Cancelled"
], - "valueType": "STRING"
}
}
}
{- "active": true,
- "apiField": "TermEndDate",
- "apiObject": "Subscription",
- "condition": "Subscription.Status == _SUBSCRIPTION_STATUS",
- "cronExpression": "0 30 10 ? * *",
- "description": "Trigger a scheduled event at 10:30 AM based on TermEndDate of subscription objects.",
- "displayName": "Term End Date Scheduled Event",
- "id": "d306545b74e445e4bffcf1c7609804be",
- "name": "TermEndDateScheduledEvent",
- "namespace": "user.notification",
- "parameters": {
- "_SUBSCRIPTION_STATUS": {
- "description": "The status of the subscription",
- "displayName": "Subscription Status",
- "options": [
- "Draft",
- "Active",
- "Pending",
- "Expired",
- "Cancelled"
], - "valueType": "STRING"
}
}
}