Connected Accounts

About the API
Connected Accounts

If you use Stripe Connect, you can issue requests on behalf of your connected accounts. To act as a connected account, include a Stripe-Account header containing the connected account ID, which typically starts with the acct_ prefix.

The connected account ID is set per-request. Methods on the returned object reuse the same account ID.

Per-Request Account
import stripe
charge = stripe.Charge.retrieve(
"ch_3Lmjoz2eZvKYlo2C1rBER4Dk",
stripe_account="acct_1032D82eZvKYlo2C"
)
charge.capture() # Uses the same account.