Get period for subscription charge

Is there a way to get the period an AppSubscriptionSale covers? It has a “createdAt” field, but that doesn’t necessarily correspond to the period the charge is for. For example, if a card was declined the createdAt date might fall outside of the period.

This is necessary for us to recognize revenue in the correct month in an external system we are syncing this data to.

Hi Seth,

There doesn’t look to be an easy way to achieve this - the AppSubscriptionSale object may not be reliable if a card was declined as you mentioned. Would the APP_SUBSCRIPTIONS_UPDATE webhook work for ths?