不幸的是,Stripe并没有按照下列文件为美国帐户开具发票:
https://support.stripe.com/questions/download-vat-or-gst-invoices-for-stripe-fees
因此,与欧盟相比,更难对美国的加工费和支出进行大宗调节。
一些会计师建议使用余额>支出>支出(项目)下的汇总信息。

通过payout对象收取费用确实很方便,但是API似乎不包括以下内容中的处理费用:
https://stripe.com/docs/api/payouts
以下是我们在欧盟的月度税务发票中的一些项目:
如何通过API列出所有用于会计目的的费用?
发布于 2021-10-21 14:06:42
有关余额交易的部分包含所有相关信息。此外,所有的平衡类型都列出了这里。
代码在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"
}Note
可以为所有相关数据点设置Webhooks,以便获取平衡信息。
如果类型为"stripe_fee“,则直接从字段获取金额,否则从”费用“或"fee_details”获取金额。
如果使用连接的帐户,则进程还需要使用连接的"account_ids“来获取数据。
参考资料
https://stackoverflow.com/questions/69660338
复制相似问题