stripe-history
v1.0.2
Published
Retrieve Stripe account history
Downloads
20
Readme
stripe-history
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,
}
*/
})