Connected Accounts 

About the API
Connected Accounts

To act as connected accounts, clients can issue requests using the Stripe-Account special header. Make sure that this header contains a Stripe account ID, which usually starts with the acct_ prefix.

The value is set per-request as shown in the adjacent code sample. Methods on the returned object reuse the same account ID.

Global API Key
require 'stripe'
charge = Stripe::Charge.retrieve(
'ch_3Lmjo22eZvKYlo2C1kuO4yZM',
{
stripe_account: 'acct_1032D82eZvKYlo2C',
}
)
charge.capture # Uses the same account.