1.0.2 • Published 8 years ago

stripe-history v1.0.2

Weekly downloads
18
License
MIT
Repository
github
Last release
8 years ago

stripe-history

npm version Build Status js-standard-style

Retrieve Stripe account history

API

var stripeHistory = require('stripe-history')

stripeHistory({
  secretKey: 'stripe-secret',   // required
  account: 'stripe-account',    // optional, useful for Stripe Connect
  from: new Date(2015, 11, 01), // optional
  to: new Date(2015, 11, 30),   // optional
  available: false              // optional, query available_on instead of created_at
}, function (err, history) {
  /*
    history: {
      data: [{
        'object': 'balance_transaction'
      }, ...],
      charge_count: 0,
      charge_amount: 0,
      refund_count: 0,
      refund_amount: 0,
      adjustment_count: 0,
      adjustment_amount: 0,
      stripe_fee: 0,
      application_fee: 0,
      application_fee_count: 0,
      application_fee_amount: 0,
      application_fee_refund_count: 0,
      application_fee_refund_amount: 0,
      net_amount: 0,
      transfer_count: 0,
      transfer_amount: 0,
      transfer_failure_count: 0,
      transfer_failure_amount: 0,
    }
  */
})

License

MIT

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.2.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago