changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "description": "The signed-in user's store alerts.",
+ "properties": {
+ "alerts": {
+ "description": "The user's alerts, newest first. Empty when they have none.",
+ "items": {
+ "description": "An alert the user has set on a store: it notifies them by email when the store's cashback rate or gift card discount reaches the threshold.",
+ "properties": {
+ "active": {
+ "description": "True while the alert is armed. Inactive alerts no longer notify and do not count against the 10-alert limit.",
+ "type": "boolean"
+ },
+ "alert_id": {
+ "description": "GotCashback's numeric identifier for this alert subscription. Informational — remove_store_alert takes store_id and alert_type, not this id.",
+ "type": "integer"
+ },
+ "alert_type": {
+ "description": "What the alert watches: 'cashback' (the store's best cashback rate) or 'gift_card' (the store's best gift card discount). Pass this value unchanged to set_store_alert or remove_store_alert.",
+ "enum": [
+ "gift_card",
+ "cashback"
+ ],
+ "type": "string"
+ },
+ "country_code": {
+ "description": "Lowercase ISO 3166-1 alpha-2 code of the country this alert's store entry belongs to (e.g. 'us', 'ca', 'gb').",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "country_name": {
+ "description": "Country name in English, e.g. 'United States'.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_on": {
+ "description": "UTC timestamp when the user created the alert.",
+ "format": "date-time",
+ "type": "string"
+ },
+ "last_notified_on": {
+ "description": "UTC timestamp of the last notification sent for this alert. Null/absent when it has never fired.",
+ "format": "date-time",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "last_notified_value": {
+ "description": "The rate or discount percent that triggered the last notification. Null/absent when the alert has never fired.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "store_id": {
+ "description": "GotCashback's numeric store identifier. Pass it as store_id to set_store_alert, remove_store_alert and the *_by_store_id tools.",
+ "type": "integer"
+ },
+ "store_name": {
+ "description": "Store (retailer) name as shown on GotCashback.",
+ "type": "string"
+ },
+ "threshold_percent": {
+ "description": "The alert fires when the rate or discount reaches this percent or higher (10 means 10%).",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+}