如何列出 Stripe 通过 API 收取的所有费用以用于会计目的?
How to list all the fees charged by Stripe via API for accounting purpose?
很遗憾,Stripe 不会根据以下文件为美国账户开具自己的发票:
https://support.stripe.com/questions/download-vat-or-gst-invoices-for-stripe-fees
因此,在美国比在欧盟更难批量核对处理费用和支出。
一些会计师建议使用在“余额”>“支出”>“支出(项目)”下汇总的信息
通过付款方式收取费用确实很方便 object 但是 API 似乎不包括手续费:
https://stripe.com/docs/api/payouts
以下是我们在欧盟的月度税务发票包含的一些项目:
条纹加工费
退还费用
争议费用
已退还争议费用
拒付保护条纹费用
雷达条纹费用...
为了会计目的,如何列出 Stripe 通过 API 收取的所有费用?
关于balance transactions contains all the relevant information. Furthermore all balance types are listed here的部分。
php
中的代码示例
$stripe = new \Stripe\StripeClient(
'sk_................'
);
try{
$transactions = $stripe->balanceTransactions->all(array(
'limit' => 100,
//'type' => 'stripe_fee',
));
}
catch(Stripe\Error\Base $e) {
//echo $e->getMessage();
}
对象样本
{
"id": "txn_1AznDOBVdKJBvdqlJZmzAT6P",
"object": "balance_transaction",
"amount": 406,
"available_on": 1505433600,
"created": 1504879934,
"currency": "eur",
"description": null,
"exchange_rate": null,
"fee": 37,
"fee_details": [
{
"amount": 37,
"application": null,
"currency": "eur",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],
"net": 369,
"reporting_category": "charge",
"source": "ch_1AznDOBVdKJBvdqlKp5lunlU",
"status": "available",
"type": "charge"
}
备注
可以为所有相关数据点设置 Webhooks 以获取余额信息。
如果类型是“stripe_fee”,则直接从“金额”字段获取金额,否则从“费用”或“fee_details”
如果使用连接的帐户,该过程还需要使用连接的“account_ids”来获取数据。
参考资料
很遗憾,Stripe 不会根据以下文件为美国账户开具自己的发票:
https://support.stripe.com/questions/download-vat-or-gst-invoices-for-stripe-fees
因此,在美国比在欧盟更难批量核对处理费用和支出。
一些会计师建议使用在“余额”>“支出”>“支出(项目)”下汇总的信息
通过付款方式收取费用确实很方便 object 但是 API 似乎不包括手续费:
https://stripe.com/docs/api/payouts
以下是我们在欧盟的月度税务发票包含的一些项目:
条纹加工费
退还费用
争议费用
已退还争议费用
拒付保护条纹费用
雷达条纹费用...
为了会计目的,如何列出 Stripe 通过 API 收取的所有费用?
关于balance transactions contains all the relevant information. Furthermore all balance types are listed here的部分。
php
中的代码示例$stripe = new \Stripe\StripeClient(
'sk_................'
);
try{
$transactions = $stripe->balanceTransactions->all(array(
'limit' => 100,
//'type' => 'stripe_fee',
));
}
catch(Stripe\Error\Base $e) {
//echo $e->getMessage();
}
对象样本
{
"id": "txn_1AznDOBVdKJBvdqlJZmzAT6P",
"object": "balance_transaction",
"amount": 406,
"available_on": 1505433600,
"created": 1504879934,
"currency": "eur",
"description": null,
"exchange_rate": null,
"fee": 37,
"fee_details": [
{
"amount": 37,
"application": null,
"currency": "eur",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],
"net": 369,
"reporting_category": "charge",
"source": "ch_1AznDOBVdKJBvdqlKp5lunlU",
"status": "available",
"type": "charge"
}
备注
可以为所有相关数据点设置 Webhooks 以获取余额信息。
如果类型是“stripe_fee”,则直接从“金额”字段获取金额,否则从“费用”或“fee_details”
如果使用连接的帐户,该过程还需要使用连接的“account_ids”来获取数据。
参考资料