The paystubs endpoint allows you to query for payouts to an end user. Each paystub contains broken out and aggregated earnings information, as well as relevant dates. Paystubs are returned in reverse chronological order by
pay_date. This is a paginated endpoint; see how Pinwheel implements pagination here.