Charity

Events raised as a broadcaster's charity campaign starts, receives donations, progresses and stops.

View as markdown
Provide feedback for this page

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.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
  • 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

  • typeStringRequired
    The event you want to receive notifications about. Must be set to channel.charity_campaign.donate.
  • versionStringRequired
    The subscription type version: 1
  • conditionObjectRequired
    An object that contains subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The ID of the broadcaster that you want to receive notifications about when users donate to their campaign.
  • transportObjectRequired
    The transport details that you want Twitch to use when sending event notifications.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.

      Required if method is webhook. Don't specify it for other methods.

      NOTE: Redirects are not followed.

    • transport.secretString

      The 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.

      Required if method is webhook. Don't specify it for other methods.

    • transport.session_idString

      An 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.

      Required if method is websocket. Don't specify it for other methods.

    • transport.conduit_idString

      An ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.

      Required if method is conduit. Don't specify it for other methods.

Event Payload

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The ID of the broadcaster that you want to receive notifications about when users donate to their campaign.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.idString
      An ID that identifies the donation. The ID is unique across campaigns.
    • event.campaign_idString
      An ID that identifies the charity campaign.
    • event.broadcaster_user_idString
      An ID that identifies the broadcaster that's running the campaign.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.user_idString
      An ID that identifies the user that donated to the campaign.
    • event.user_loginString
      The user's login name.
    • event.user_nameString
      The user's display name.
    • event.charity_nameString
      The charity's name.
    • event.charity_descriptionString
      A description of the charity.
    • event.charity_logoString
      A URL to an image of the charity's logo. The image is typically a PNG that's 100px X 100px. If larger, it is recommended to squash the image and present as a square size.
    • event.charity_websiteString
      A URL to the charity's website. Is an empty string if the charity doesn't have a website.
    • event.amountObject
      An object that contains the amount of money that the user donated.
      Hide child attributesShow child attributes
      • event.amount.valueInteger
        The 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, value is set to 550.
      • event.amount.decimal_placesInteger

        The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor units to major units by using the formula:

        value / 10^decimal_places

      • event.amount.currencyString
        The ISO-4217 three-letter currency code that identifies the type of currency in value.
Subscription Request Body Example
{
  "type": "channel.charity_campaign.donate",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "123456"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
  "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": "2DQ5PyjPHh28hVu4jvFq8gIsPqL-654321-2022-07-25T10:11:12Z",
    "campaign_id": "2DQ5PyjPHh28hVu4jvFq8gIsPqL",
    "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.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
  • 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

  • typeStringRequired
    The event you want to receive notifications about. Must be set to channel.charity_campaign.progress.
  • versionStringRequired
    The definition of the subscription request to use. Must be set to 1.
  • conditionObjectRequired
    An object that contains subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The ID of the broadcaster that you want to receive notifications about when their campaign makes progress or is updated.
  • transportObjectRequired
    The transport details that you want Twitch to use when sending event notifications.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.

      Required if method is webhook. Don't specify it for other methods.

      NOTE: Redirects are not followed.

    • transport.secretString

      The 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.

      Required if method is webhook. Don't specify it for other methods.

    • transport.session_idString

      An 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.

      Required if method is websocket. Don't specify it for other methods.

    • transport.conduit_idString

      An ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.

      Required if method is conduit. Don't specify it for other methods.

Event Payload

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The ID of the broadcaster that you want to receive notifications about when their campaign makes progress or is updated.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.idString
      An ID that identifies the charity campaign.
    • event.broadcaster_user_idString
      An ID that identifies the broadcaster that's running the campaign.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.charity_nameString
      The charity's name.
    • event.charity_descriptionString
      A description of the charity.
    • event.charity_logoString
      A URL to an image of the charity's logo. The image is typically a PNG that's 100px X 100px. If larger, it is recommended to squash the image and present as a square size.
    • event.charity_websiteString
      A URL to the charity's website. Is an empty string if the charity doesn't have a website.
    • event.current_amountObject
      An object that contains the current amount of donations that the campaign has received.
      Hide child attributesShow child attributes
      • event.current_amount.valueInteger
        The 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, value is set to 550.
      • event.current_amount.decimal_placesInteger

        The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor units to major units by using the formula:

        value / 10^decimal_places

      • event.current_amount.currencyString
        The ISO-4217 three-letter currency code that identifies the type of currency in value.
    • event.target_amountObject
      An object that contains the campaign's target fundraising goal. If the broadcaster didn't set a goal, value is 0.
      Hide child attributesShow child attributes
      • event.target_amount.valueInteger
        The 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, value is set to 550.
      • event.target_amount.decimal_placesInteger

        The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor units to major units by using the formula:

        value / 10^decimal_places

      • event.target_amount.currencyString
        The ISO-4217 three-letter currency code that identifies the type of currency in value.
Subscription Request Body Example
{
  "type": "channel.charity_campaign.progress",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "123456"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
  "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": "2DQ5PyjPHh28hVu4jvFq8gIsPqL",
    "broadcaster_user_id": "123456",
    "broadcaster_user_name": "SunnySideUp",
    "broadcaster_user_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, or resumes a charity campaign that they stopped. A resumed campaign keeps its id, and its current_amount includes the donations it received before it was stopped. 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.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
  • 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

  • typeStringRequired
    The event you want to receive notifications about. Must be set to channel.charity_campaign.start.
  • versionStringRequired
    The definition of the subscription request to use. Must be set to 1.
  • conditionObjectRequired
    An object that contains subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The ID of the broadcaster that you want to receive notifications about when they start a charity campaign.
  • transportObjectRequired
    The transport details that you want Twitch to use when sending event notifications.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.

      Required if method is webhook. Don't specify it for other methods.

      NOTE: Redirects are not followed.

    • transport.secretString

      The 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.

      Required if method is webhook. Don't specify it for other methods.

    • transport.session_idString

      An 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.

      Required if method is websocket. Don't specify it for other methods.

    • transport.conduit_idString

      An ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.

      Required if method is conduit. Don't specify it for other methods.

Event Payload

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The ID of the broadcaster that you want to receive notifications about when they start a charity campaign.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.idString
      An ID that identifies the charity campaign.
    • event.broadcaster_user_idString
      An ID that identifies the broadcaster that's running the campaign.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.charity_nameString
      The charity's name.
    • event.charity_descriptionString
      A description of the charity.
    • event.charity_logoString
      A URL to an image of the charity's logo. The image is typically a PNG that's 100px X 100px. If larger, it is recommended to squash the image and present as a square size.
    • event.charity_websiteString
      A URL to the charity's website. Is an empty string if the charity doesn't have a website.
    • event.current_amountObject
      An object that contains the current amount of donations that the campaign has received.
      Hide child attributesShow child attributes
      • event.current_amount.valueInteger
        The 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, value is set to 550.
      • event.current_amount.decimal_placesInteger

        The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor units to major units by using the formula:

        value / 10^decimal_places

      • event.current_amount.currencyString
        The ISO-4217 three-letter currency code that identifies the type of currency in value.
    • event.target_amountObject
      An object that contains the campaign's target fundraising goal. If the broadcaster didn't set a goal, value is 0.
      Hide child attributesShow child attributes
      • event.target_amount.valueInteger
        The 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, value is set to 550.
      • event.target_amount.decimal_placesInteger

        The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor units to major units by using the formula:

        value / 10^decimal_places

      • event.target_amount.currencyString
        The ISO-4217 three-letter currency code that identifies the type of currency in value.
    • event.started_atString
      The UTC date and time (in RFC3339 format) of when the broadcaster started the campaign, or most recently resumed it.
Subscription Request Body Example
{
  "type": "channel.charity_campaign.start",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "123456"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
  "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_user_id": "123456",
    "broadcaster_user_name": "SunnySideUp",
    "broadcaster_user_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 a charity campaign stops, either because the broadcaster stops the campaign (or deletes it while it's running) or because Twitch ends it after the charity is no longer eligible.

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.The User ID associated with the token must match the broadcaster_user_id in the event's condition.
  • 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

  • typeStringRequired
    The event you want to receive notifications about. Must be set to channel.charity_campaign.stop.
  • versionStringRequired
    The definition of the subscription request to use. Must be set to 1.
  • conditionObjectRequired
    An object that contains subscription-specific parameters.
    Hide child attributesShow child attributes
    • condition.broadcaster_user_idStringRequired
      The ID of the broadcaster that you want to receive notifications about when their charity campaign stops.
  • transportObjectRequired
    The transport details that you want Twitch to use when sending event notifications.
    Hide child attributesShow child attributes
    • transport.methodStringRequired
      The transport method for EventSub.

      Possible values

      • webhook
      • websocket
      • conduit
    • transport.callbackString

      The callback URL where notifications are sent. The URL must use the HTTPS protocol and port 443, and its host must resolve to a public IPv4 address. Hosts that resolve only to IPv6 addresses aren't supported. See Processing an Event.

      Required if method is webhook. Don't specify it for other methods.

      NOTE: Redirects are not followed.

    • transport.secretString

      The 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.

      Required if method is webhook. Don't specify it for other methods.

    • transport.session_idString

      An 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.

      Required if method is websocket. Don't specify it for other methods.

    • transport.conduit_idString

      An ID that identifies the conduit to send this notification to. When you create a conduit, the server returns the ID in the API response.

      Required if method is conduit. Don't specify it for other methods.

Event Payload

  • subscriptionObject
    Metadata about the subscription.
    Hide child attributesShow child attributes
    • subscription.idString
      The Subscription ID of the subscription.
    • subscription.typeString
      The notification's subscription type.
    • subscription.versionString
      The version of the subscription.
    • subscription.statusString
      The status of the subscription.
    • subscription.costInteger
      How much the subscription counts against your limit. See Subscription Limits for more information.
    • subscription.conditionObject
      Subscription-specific parameters.
      Hide child attributesShow child attributes
      • subscription.condition.broadcaster_user_idString
        The ID of the broadcaster that you want to receive notifications about when their charity campaign stops.
    • subscription.created_atString
      The UTC date and time (in RFC3339 format) of when the subscription was created.
    • subscription.transportObject
      The transport that the notification was sent over.
      Hide child attributesShow child attributes
      • subscription.transport.methodString
        The transport method.

        Possible values

        • webhook
        • websocket
        • conduit
      • subscription.transport.callbackString
        The callback URL where notifications are sent. Included only if method is webhook.
      • subscription.transport.session_idString
        The ID of the WebSocket session that notifications are sent to. Included only if method is websocket.
      • subscription.transport.conduit_idString
        The ID of the conduit that notifications are sent to. Included only if method is conduit.
  • eventObject
    The event information.
    Hide child attributesShow child attributes
    • event.idString
      An ID that identifies the charity campaign.
    • event.broadcaster_user_idString
      An ID that identifies the broadcaster that ran the campaign.
    • event.broadcaster_user_loginString
      The broadcaster's login name.
    • event.broadcaster_user_nameString
      The broadcaster's display name.
    • event.charity_nameString
      The charity's name.
    • event.charity_descriptionString
      A description of the charity.
    • event.charity_logoString
      A URL to an image of the charity's logo. The image is typically a PNG that's 100px X 100px. If larger, it is recommended to squash the image and present as a square size.
    • event.charity_websiteString
      A URL to the charity's website. Is an empty string if the charity doesn't have a website.
    • event.current_amountObject
      An object that contains the amount of donations that the campaign received as of when it stopped.
      Hide child attributesShow child attributes
      • event.current_amount.valueInteger
        The 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, value is set to 550.
      • event.current_amount.decimal_placesInteger

        The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor units to major units by using the formula:

        value / 10^decimal_places

      • event.current_amount.currencyString
        The ISO-4217 three-letter currency code that identifies the type of currency in value.
    • event.target_amountObject
      An object that contains the campaign's target fundraising goal. If the broadcaster didn't set a goal, value is 0.
      Hide child attributesShow child attributes
      • event.target_amount.valueInteger
        The 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, value is set to 550.
      • event.target_amount.decimal_placesInteger

        The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate value from minor units to major units by using the formula:

        value / 10^decimal_places

      • event.target_amount.currencyString
        The ISO-4217 three-letter currency code that identifies the type of currency in value.
    • event.stopped_atString
      The UTC date and time (in RFC3339 format) of when the campaign stopped.
Subscription Request Body Example
{
  "type": "channel.charity_campaign.stop",
  "version": "1",
  "condition": {
    "broadcaster_user_id": "123456"
  },
  "transport": {
    "method": "webhook",
    "callback": "https://example.com/webhooks/callback",
    "secret": "s3cRe7"
  }
}
Event Payload Example
{
  "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": "2DQ5PyjPHh28hVu4jvFq8gIsPqL",
    "broadcaster_user_id": "123456",
    "broadcaster_user_name": "SunnySideUp",
    "broadcaster_user_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"
  }
}