Charity Donation
Sends a notification when a user donates to the broadcaster's charity campaign.
Subscription
- Type
channel.charity_campaign.donate- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:charity scope.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:charity scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe event you want to receive notifications about. Must be set to channel.charity_campaign.donate.versionStringRequiredThe subscription type version:1conditionObjectRequiredAn object that contains subscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe ID of the broadcaster that you want to receive notifications about when users donate to their campaign.
transportObjectRequiredThe transport details that you want Twitch to use when sending event notifications.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe ID of the broadcaster that you want to receive notifications about when users donate to their campaign.
subscription.created_atStringThe time the notification was created.subscription.transportObjectTransport-specific parameters.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method for EventSub.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
subscription.transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
subscription.transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
subscription.transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.idStringAn ID that identifies the donation. The ID is unique across campaigns.event.campaign_idStringAn ID that identifies the charity campaign.event.broadcaster_user_idStringAn ID that identifies the broadcaster that's running the campaign.event.broadcaster_user_loginStringThe broadcaster's login name.event.broadcaster_user_nameStringThe broadcaster's display name.event.user_idStringAn ID that identifies the user that donated to the campaign.event.user_loginStringThe user's login name.event.user_nameStringThe user's display name.event.charity_nameStringThe charity's name.event.charity_descriptionStringA description of the charity.event.charity_logoStringA URL to an image of the charity's logo. The image's type is PNG and its size is 100px X 100px.event.charity_websiteStringA URL to the charity's website.event.amountObjectAn object that contains the amount of money that the user donated.Hide child attributesShow child attributes
event.amount.valueIntegerThe monetary amount. The amount is specified in the currency's minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD,valueis set to 550.event.amount.decimal_placesIntegerThe number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate
valuefrom minor units to major units by using the formula:value / 10^decimal_placesevent.amount.currencyStringThe ISO-4217 three-letter currency code that identifies the type of currency invalue.
{
"type": "channel.charity_campaign.donate",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.charity_campaign.donate",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.charity_campaign.donate",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.charity_campaign.donate",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2022-07-25T10:11:12.123Z"
},
"event": {
"id": "a1b2c3-aabb-4455-d1e2f3",
"campaign_id": "123-abc-456-def",
"broadcaster_user_id": "123456",
"broadcaster_user_name": "SunnySideUp",
"broadcaster_user_login": "sunnysideup",
"user_id": "654321",
"user_login": "generoususer1",
"user_name": "GenerousUser1",
"charity_name": "Example name",
"charity_description": "Example description",
"charity_logo": "https://abc.cloudfront.net/ppgf/1000/100.png",
"charity_website": "https://www.example.com",
"amount": {
"value": 10000,
"decimal_places": 2,
"currency": "USD"
}
}
}Charity Campaign Progress
Sends notifications when progress is made towards the campaign's goal or when the broadcaster changes the fundraising goal. It's possible to receive this event before the Start event. To get donation information, subscribe to the channel.charity_campaign.donate event.
Subscription
- Type
channel.charity_campaign.progress- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:charity scope.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:charity scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe event you want to receive notifications about. Must be set to channel.charity_campaign.progress.versionStringRequiredThe definition of the subscription request to use. Must be set to 1.conditionObjectRequiredAn object that contains subscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe ID of the broadcaster that you want to receive notifications about when their campaign makes progress or is updated.
transportObjectRequiredThe transport details that you want Twitch to use when sending event notifications.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe ID of the broadcaster that you want to receive notifications about when their campaign makes progress or is updated.
subscription.created_atStringThe time the notification was created.subscription.transportObjectTransport-specific parameters.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method for EventSub.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
subscription.transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
subscription.transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
subscription.transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.idStringAn ID that identifies the charity campaign.event.broadcaster_idStringAn ID that identifies the broadcaster that's running the campaign.event.broadcaster_loginStringThe broadcaster's login name.event.broadcaster_nameStringThe broadcaster's display name.event.charity_nameStringThe charity's name.event.charity_descriptionStringA description of the charity.event.charity_logoStringA URL to an image of the charity's logo. The image's type is PNG and its size is 100px X 100px.event.charity_websiteStringA URL to the charity's website.event.current_amountObjectAn object that contains the current amount of donations that the campaign has received.Hide child attributesShow child attributes
event.current_amount.valueIntegerThe monetary amount. The amount is specified in the currency's minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD,valueis set to 550.event.current_amount.decimal_placesIntegerThe number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate
valuefrom minor units to major units by using the formula:value / 10^decimal_placesevent.current_amount.currencyStringThe ISO-4217 three-letter currency code that identifies the type of currency invalue.
event.target_amountObjectAn object that contains the campaign's target fundraising goal.Hide child attributesShow child attributes
event.target_amount.valueIntegerThe monetary amount. The amount is specified in the currency's minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD,valueis set to 550.event.target_amount.decimal_placesIntegerThe number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate
valuefrom minor units to major units by using the formula:value / 10^decimal_placesevent.target_amount.currencyStringThe ISO-4217 three-letter currency code that identifies the type of currency invalue.
{
"type": "channel.charity_campaign.progress",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.charity_campaign.progress",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.charity_campaign.progress",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.charity_campaign.progress",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2022-07-25T10:11:12.12339824Z"
},
"event": {
"id": "123-abc-456-def",
"broadcaster_id": "123456",
"broadcaster_name": "SunnySideUp",
"broadcaster_login": "sunnysideup",
"charity_name": "Example name",
"charity_description": "Example description",
"charity_logo": "https://abc.cloudfront.net/ppgf/1000/100.png",
"charity_website": "https://www.example.com",
"current_amount": {
"value": 260000,
"decimal_places": 2,
"currency": "USD"
},
"target_amount": {
"value": 1500000,
"decimal_places": 2,
"currency": "USD"
}
}
}Charity Campaign Start
Sends a notification when the broadcaster starts a charity campaign. It's possible to receive this event after the Progress event.
Subscription
- Type
channel.charity_campaign.start- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:charity scope.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:charity scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe event you want to receive notifications about. Must be set to channel.charity_campaign.start.versionStringRequiredThe definition of the subscription request to use. Must be set to 1.conditionObjectRequiredAn object that contains subscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe ID of the broadcaster that you want to receive notifications about when they start a charity campaign.
transportObjectRequiredThe transport details that you want Twitch to use when sending event notifications.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe ID of the broadcaster that you want to receive notifications about when they start a charity campaign.
subscription.created_atStringThe time the notification was created.subscription.transportObjectTransport-specific parameters.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method for EventSub.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
subscription.transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
subscription.transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
subscription.transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.idStringAn ID that identifies the charity campaign.event.broadcaster_idStringAn ID that identifies the broadcaster that's running the campaign.event.broadcaster_loginStringThe broadcaster's login name.event.broadcaster_nameStringThe broadcaster's display name.event.charity_nameStringThe charity's name.event.charity_descriptionStringA description of the charity.event.charity_logoStringA URL to an image of the charity's logo. The image's type is PNG and its size is 100px X 100px.event.charity_websiteStringA URL to the charity's website.event.current_amountObjectAn object that contains the current amount of donations that the campaign has received.Hide child attributesShow child attributes
event.current_amount.valueIntegerThe monetary amount. The amount is specified in the currency's minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD,valueis set to 550.event.current_amount.decimal_placesIntegerThe number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate
valuefrom minor units to major units by using the formula:value / 10^decimal_placesevent.current_amount.currencyStringThe ISO-4217 three-letter currency code that identifies the type of currency invalue.
event.target_amountObjectAn object that contains the campaign's target fundraising goal.Hide child attributesShow child attributes
event.target_amount.valueIntegerThe monetary amount. The amount is specified in the currency's minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD,valueis set to 550.event.target_amount.decimal_placesIntegerThe number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate
valuefrom minor units to major units by using the formula:value / 10^decimal_placesevent.target_amount.currencyStringThe ISO-4217 three-letter currency code that identifies the type of currency invalue.
event.started_atStringThe UTC timestamp (in RFC3339 format) of when the broadcaster started the campaign.
{
"type": "channel.charity_campaign.start",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.charity_campaign.start",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.charity_campaign.start",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.charity_campaign.start",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2022-07-25T10:11:12.12339824Z"
},
"event": {
"id": "123-abc-456-def",
"broadcaster_id": "123456",
"broadcaster_name": "SunnySideUp",
"broadcaster_login": "sunnysideup",
"charity_name": "Example name",
"charity_description": "Example description",
"charity_logo": "https://abc.cloudfront.net/ppgf/1000/100.png",
"charity_website": "https://www.example.com",
"current_amount": {
"value": 0,
"decimal_places": 2,
"currency": "USD"
},
"target_amount": {
"value": 1500000,
"decimal_places": 2,
"currency": "USD"
},
"started_at": "2022-07-26T17:00:03.17106713Z"
}
}Charity Campaign Stop
Sends a notification when the broadcaster stops a charity campaign.
Subscription
- Type
channel.charity_campaign.stop- Version
1
Authorization
Requires one of the following:
- A user access token that includes the channel:read:charity scope.
- An app access token.The application, through prior authorization, must have been granted:
- The channel:read:charity scope for the user represented by the broadcaster_user_id event condition.
Subscription Request Body
typeStringRequiredThe event you want to receive notifications about. Must be set to channel.charity_campaign.stop.versionStringRequiredThe definition of the subscription request to use. Must be set to 1.conditionObjectRequiredAn object that contains subscription-specific parameters.Hide child attributesShow child attributes
condition.broadcaster_user_idStringRequiredThe ID of the broadcaster that you want to receive notifications about when they stop a charity campaign.
transportObjectRequiredThe transport details that you want Twitch to use when sending event notifications.Hide child attributesShow child attributes
transport.methodStringRequiredThe transport method for EventSub.Possible values
webhookwebsocketconduit
transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
Event Payload
subscriptionObjectMetadata about the subscription.Hide child attributesShow child attributes
subscription.idStringThe Subscription ID of the subscription.subscription.typeStringThe notification's subscription type.subscription.versionStringThe version of the subscription.subscription.statusStringThe status of the subscription.subscription.costIntegerHow much the subscription counts against your limit. See Subscription Limits for more information.subscription.conditionObjectSubscription-specific parameters.Hide child attributesShow child attributes
subscription.condition.broadcaster_user_idStringThe ID of the broadcaster that you want to receive notifications about when they stop a charity campaign.
subscription.created_atStringThe time the notification was created.subscription.transportObjectTransport-specific parameters.Hide child attributesShow child attributes
subscription.transport.methodStringThe transport method for EventSub.Possible values
webhookwebsocketconduit
subscription.transport.callbackStringThe callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443. See Processing an Event.
Specify this field only if method is set to webhook.
NOTE: Redirects are not followed.
subscription.transport.secretStringThe secret used to verify the signature. The secret must be an ASCII string that's a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.
Specify this field only if the method is set to webhook.
subscription.transport.session_idStringAn ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.
Specify this field only if the method is set to websocket.
subscription.transport.conduit_idStringAn ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.
Specify this field only if the method is set to conduit.
eventObjectThe event information.Hide child attributesShow child attributes
event.idStringAn ID that identifies the charity campaign.event.broadcaster_idStringAn ID that identifies the broadcaster that ran the campaign.event.broadcaster_loginStringThe broadcaster's login name.event.broadcaster_nameStringThe broadcaster's display name.event.charity_nameStringThe charity's name.event.charity_descriptionStringA description of the charity.event.charity_logoStringA URL to an image of the charity's logo. The image's type is PNG and its size is 100px X 100px.event.charity_websiteStringA URL to the charity's website.event.current_amountObjectAn object that contains the final amount of donations that the campaign received.Hide child attributesShow child attributes
event.current_amount.valueIntegerThe monetary amount. The amount is specified in the currency's minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD,valueis set to 550.event.current_amount.decimal_placesIntegerThe number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate
valuefrom minor units to major units by using the formula:value / 10^decimal_placesevent.current_amount.currencyStringThe ISO-4217 three-letter currency code that identifies the type of currency invalue.
event.target_amountObjectAn object that contains the campaign's target fundraising goal.Hide child attributesShow child attributes
event.target_amount.valueIntegerThe monetary amount. The amount is specified in the currency's minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD,valueis set to 550.event.target_amount.decimal_placesIntegerThe number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate
valuefrom minor units to major units by using the formula:value / 10^decimal_placesevent.target_amount.currencyStringThe ISO-4217 three-letter currency code that identifies the type of currency invalue.
event.stopped_atStringThe UTC timestamp (in RFC3339 format) of when the broadcaster stopped the campaign.
{
"type": "channel.charity_campaign.stop",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback",
"secret": "s3cRe7"
}
}{
"type": "channel.charity_campaign.stop",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "websocket",
"session_id": "AQoQexAWVYKSTIu4ec_2VAxyuhAB"
}
}{
"type": "channel.charity_campaign.stop",
"version": "1",
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "conduit",
"conduit_id": "bfcfc993-26b1-b876-44d9-afe75a379dac"
}
}{
"subscription": {
"id": "f1c2a387-161a-49f9-a165-0f21d7a4e1c4",
"type": "channel.charity_campaign.stop",
"version": "1",
"status": "enabled",
"cost": 0,
"condition": {
"broadcaster_user_id": "123456"
},
"transport": {
"method": "webhook",
"callback": "https://example.com/webhooks/callback"
},
"created_at": "2022-07-25T10:11:12.12339824Z"
},
"event": {
"id": "123-abc-456-def",
"broadcaster_id": "123456",
"broadcaster_name": "SunnySideUp",
"broadcaster_login": "sunnysideup",
"charity_name": "Example name",
"charity_description": "Example description",
"charity_logo": "https://abc.cloudfront.net/ppgf/1000/100.png",
"charity_website": "https://www.example.com",
"current_amount": {
"value": 1450000,
"decimal_places": 2,
"currency": "USD"
},
"target_amount": {
"value": 1500000,
"decimal_places": 2,
"currency": "USD"
},
"stopped_at": "2022-07-26T22:00:03.17106713Z"
}
}