#Carlos Bolicar - Hi
1 messages · Page 1 of 1 (latest)
Hello 👋
I have a question related to this header key name for a connected accounts on Stripe API, https://stripe.com/docs/api/connected_accounts. My question is: What is the difference between sending "Stripe-Account versus "stripeAccount" on the header key name?
Stripe-Account is the actual name of the HTTP header that is sent
stripeAccount is the parameter name for some of our API libraries
So for example in node.js your code would look like this stripe.charges.retrieve('ch_1JGSdIJmquaq3Lbpu9p62qk5', { stripeAccount: 'acct_123456789' });
And the stripe-node library would translate that in to the header
Stripe-Account: acct_123456789
before sending it off to our servers
Does that help clarify?
that means, if I use "stripeAccount" or "Stripe-Account" on the header key names, I should get the same results, shouldn't I?
I think @quick lotus means the header parameter is always Stripe-Account. Some library calls use stripeAccount as a parameter - but the library then uses that value to set the Stripe-Account in the actual header.
Thank you guys, I appreciate your help
Ah there we go. Thanks for the assist @sonic bramble