Fired whenever a subscriber is successfully renewed for another month

🚧

This Event Fires for All Channels Nightly at Approximately 12:00PM CST.

GameWisp renews all the subscribers for a particular day at the same time for each channel. Therefore, it is not uncommon to receive multiple subscriber-renewed events in succession for channels as they are renewed.

Using Socket.IO, this event can be listened to as follows:

socket.on('subscriber-renewed', function(data){
    //Do something
});

This event sends data that is very similar to the subscriber-new event but is included as its own unique event for convenience. Additionally, the subscriber-renewed event sends an extra field "resubscribe_alert_id" that holds the id of the anniversary alert associated with the renewal event. Applications can use the forthcoming Resubscriber Resource, to request the alert by its id. The subscriber-renewed event fires whenever a subscriber is successfully billed for another month on GameWisp.

{
   event: "subscriber-renewed",
   channel_id: "channel identifier ",
   channel: {
      names: {
         gamewisp: "GameWisp channel name",
         twitch: "twitch channel name",
         youtube: "youtube channel name"
      },
      ids: {
         gamewisp: "channel identifier",
         twitch: "12312312q",
         youtube: "UCiqp4J8asdkssssssssdfae"
      }  
   },
   data: {
      resubscribe_alert_id: 6,
      ids: {
         gamewisp: "26356",
         twitch: "46984772"
      },
      usernames: {
         gamewisp: "user_name",
         twitch: "user_name_twitch"
      },
      status: "active",
      amount: "3.99",
      subscribed_at: "2015-12-30 00:00:00",
      end_of_access: "2016-01-30 23:59:00",
      tier: {
         id: "111111",
         title: "Tier Title",
         level: "1",
         cost: "3.99",
         description: "Tier description",
         published: true
      }
   }
}

It is important to keep in mind that GameWisp processes renewals each day for all the channels that are flagged for renewal on that day at approximately 12:00PM CST. Therefore, if your application supports multiple GameWisp channels, it is not uncommon to receive multiple subscriber-renewed events in succession for channels as they are renewed.