公司要求获取到stripe账户connect中的lifetime total volume,有什么办法能够获取吗
可以使用Stripe API来获取连接帐户的生命周期总交易量。使用Stripe的API库来访问这些数据,例如Stripe Python库。
以下是使用Stripe Python库获取连接帐户的生命周期总交易量的示例代码:
import stripe
stripe.api_key = "YOUR_API_KEY"
# Replace 'acct_1234567890' with the ID of the connected account
account = stripe.Account.retrieve("acct_1234567890")
# Get the lifetime total volume of the connected account
lifetime_volume = account["payouts_enabled"]["lifetime_volume"]
print("Lifetime total volume: " + str(lifetime_volume))
将“YOUR_API_KEY”替换为你的Stripe API密钥。
将“acct_1234567890”替换为你要检索生命周期总交易量的连接帐户的ID。