#chukd_code
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- chukd_error, 2 days ago, 14 messages
- chukd_code, 3 days ago, 8 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1252294083448275027
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi ๐
Do you have an example Balance Transaction I could review?
hold on let me get one for you
here is the balance transaction: txn_1PQfzzQVvAsI0zFleLXWTZJg
and the payout id: po_1PQfzyQVvAsI0zFl1cS6dIPV
for that txn
This balance transaction is strickly for the actual payout. The stripe fees are included in BTs with a type of "stripe_fee"
To get them you will want to make a BT List API call and use both the Payout ID and the type filter to get just the stripe_fee balance transactions associated with that payout: https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-payout
ok let me take a look, thanks
ok, I just ran this code and there were 0 results taht came back.
var options = new BalanceTransactionListOptions { Payout = "po_1PO8f1QVvAsI0zFllfjvVbGc", Type = "stripe_fee" };
var service = new BalanceTransactionService();
StripeList<BalanceTransaction> balanceTransactions = service.List(options, requestOptions);
It looks like this payout belongs to a Custom account. What kind of charges are you using? Direct, Destination, Separate Charge & transfer?
Separate Charge & transfer
In that case the Stripe fees are not on this payout because they don't occur on this account. The fees are on the platform.
So then how would I fetch these fees? I'd like to do it after I receive a payout.created webhook, so that I can figure out what the fee was for the payout (2.00+ 0.25%)
The fees are not associated with the payout because this account does not pay stripe fees.
When you create the transfers, is this account the only Connect Account that receives funds from the originating charges?
no. why do you ask?
Because the fees are paid on the charge. So this Custom Account does not have any Stripe fees
but the fees are also taken on the payout (maybe not on the payout account), like you said they are taken from the platform, so I need to be able to programmatically fetch what those platform fees are to calculate into my costs. How can I fetch the fees Stripe takes from my platform from the payouts? What API call can I make and/or is there a webhook I'll receive when the fee is deducted?
When making the payout, the fees are not deducted from the connect payout. You would need to retrieve the Charges associated with this payout and get the Stripe fees from those
so how would I fetch those charges? In the API I see https://docs.stripe.com/api/charges/list but you can't fetch a list of charges on a payout. Do I fetch a payout and use AddExpand on some charge field or something like that?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You are using Separate Charge and Transfers. There is no direct link between the charges on your platform and the payouts
So you would first need to identify the transfers associated with the payout
then link those transfers to specific charges
ok I can do that (associate the transfers with the payout). Let me take a look at what happens when I fetch the transfers and expand on the objects to see what I get.
just for clarity. The specific charges associated with the transfers for a payout would be the charges under the Connected account correct? Here is a Stripe YT video you guys posted. https://youtu.be/Wn9YrnLnPz4?si=BfJR0psHzgQrCoqT The diagram would be at @3:35
In this episode, you'll learn all the objects involved when using the charge type separate charges and transfers with Stripe Connect and the payment flow between a platform and a connected account.
The platform we're building in this series allows creators to produce creative content (e.g., a newsletter), publish their content, and monetize the...
I'm not sure I understand the question. What do you want to know?
I need to fetch the fees Stripe charges my platform from payouts using seperate charges and transfers. Stripe charges a $2.00/month+0.25% per payout fee. That fee is taken from my platform(which I don't see under dev). How do I fetch that Stripe fee using the API? The previous staff in this thread said I need to fetch the transfers associated with a payout, done, and thenlink those transfers to a charge. Ok, so my question is confirming that the charge is the one on the Connected account side. https://youtu.be/Wn9YrnLnPz4?si=BfJR0psHzgQrCoqT @3:35
In this episode, you'll learn all the objects involved when using the charge type separate charges and transfers with Stripe Connect and the payment flow between a platform and a connected account.
The platform we're building in this series allows creators to produce creative content (e.g., a newsletter), publish their content, and monetize the...
When you create a Transfer, are you specifying a source_transaction as mentioned here?
no I don't use source_transaction
the transfers to connect accounts aren't all coming from one source. so I can't use source_transaction
Got it, okay. Do you have a one-to-one payment flow? Or a one-to-many? In other words, will each transfer_group you use on your Payment Intents only ever result in Transfers to one Connect account? Or is it possible that you have a transfer_group that might result in Transfers to multiple different Connect Accounts?
one-to-many.
Ahhh, okay. Hmmm...
Are there instances where one Payment Intent might be split into 2 Transfers to separate Connect accounts?
no, my payment intents will be completely disconnected from transfers.
Well, sort of. They each have a transfer_group, which will be attributed to at least 1 Transfer
not if a transfer_group isn't given, but that's irrelevant here. I'll ask the main question again, using the API how can I fetch Stripes platform fees ($2.00/month+0.25%/payout) that gets deducted from my platform?
The question isn't lost on me. Are you trying to attribute the fees to each Connect account? Or do you simply want to know what fees were deducted from your platform, and you don't care how/if they're associated with each Connect account?
I simply want to know what fees are deducted! I'd like to be able to use the API to fetch that amount Ex. $113.43 was deducted from my platform by Stripe for payouts. Now, if I can associate that fee per payout, that's even better! The problem I have now is I've had multiple payouts (dev environment) and I don't see any Stripe fees ($2.00/month+$0.25%/payout) anywhere in the dashboard. According to some other Stripe employee, that data isn't shown in dev, which is ok, but I still need a way to test these fees for my costs, before I go live to production environment. Understand?
I understand. I'm asking all these questions because the details are important. The workflow for finding fees and attributing them to Connect accounts is wildly different from the workflow for simply looking at fees taken from the platform in general. These aren't superfluous inquiries.
Alright, so you want to look at fees taken from the platform. You need to:
- List All Payment Intents to get the payments made to the platform: https://docs.stripe.com/api/payment_intents/list
- Grab the ID in
latest_chargefrom each Payment Intent to get the associated Charge: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-latest_charge - Retrieve each Charge object and
expandthebalance_transactionattribute: https://docs.stripe.com/api/charges/object#charge_object-balance_transaction - Inspect the
feeandfee_detailsof thebalance_transactionattribute on each Charge objecthttps://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee
NO! I don't need to find fees from payment intents(charges from credit cards)! I want find the fees from Stripe payouts! Are you a bot?
Let me start over with a simple question. If I have 6 transfers to a Connect account totaling $100.00, Stripe should deduct $2.25 from my platform, correct?
Please be respectful. You're allowed to be frustrated, but you don't need to be insulting.
my apologies.
A similar process as mentioned above will work for Transfers:
- List All Transfers (AKA payouts to connected accounts): https://docs.stripe.com/api/transfers/list
- Grab the ID in
balance_transactionfrom each Transfer: https://docs.stripe.com/api/transfers/object#transfer_object-balance_transaction - Retrieve each Balance Transaction (https://docs.stripe.com/api/balance_transactions/retrieve) and inspect the
feeandfee_detailsattribute on each object: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee
Maybe you're thinking of Payout fees? Which have nothing to do with Transfers.
You can try listing all Payouts on a Connect account using this method: https://docs.stripe.com/api/payouts/list
Make sure to specify the Stripe-Account header to tell Stripe you only want Payouts for that account: https://docs.stripe.com/connect/authentication
The same process works for Payouts. Get the associated Balance Transaction from the Payout and inspect fees
And once again, I'm not a bot.
really! ok, I'll ask my question again. I have 6 transfers to a Connect account totaling $100.00, based on Stripes pricing, Stripe should deduct $2.25 from my platform, correct?
Hello, two-shoes has to step out soon so I am taking over. Catching up on this thread
I am also not aware of any kind of fee that we put on top of simply sending money to a connected account. Can you tell me more about where you are seeing this fee? That may help me figure out where you can find it in the API
Ah okay, so to be clear that is what we call a Payout in stripe terminology. Transfers are when you send funds between accounts. I am not familiar with how to see those fees in our API. I will ask my colleagues and get back to you
thank you
Apologies this is taking a bit, we are still looking in to what fee info you can access in the API here. I agree with Snufkin earlier that this should be on the platform but I am not finding much on what the BTs will actually look like.
ok will wait further. thank you!
FYI - I don't have anything visible in the dashboard either. No Stripe fees or deductions seen anywhere and I've had payouts for a couple of months. FYI - still working in test mode on Strip, not production. Someone a while back said that fee won't show in test mode?
For seeing these fees in the dashboard, our support team can help you. We aren't as familiar with the dashboard.
https://support.stripe.com/?contact=true
This may be a test mode issue though we do usually simulate fees properly in test mode. I apologize that this is taking some time but we are still trying to figure out how to see these specific fees in the API.
Can you try listing your balance transactions on you platform and filter by stripe_fee to see if you see a fee that is $2 * your amount of connected accounts? That is my current theory for where they should be but I don't have a great account to test this on at the moment.
ok hold on
ok, I just fetched my balance transactions from my platform. ~10 and looked to see if any had any value other than $0 for the Fee property. I didn't see anything and all Fee_Details were empty arrays as well. I used the Type = "stripe_fee" in the options parameter. I didn't specify any request options as I assumed it fetches from the platform when no account id is specified in the field (requestOptions). Do you think it's possible this data doesn't get displayed in test mode or is this not the correct field to fetch this data from?
basically, no data was returned when using "stripe_fee"
maybe I can use AddExpand? maybe there's nested objects that have the stripe fee data?
I definitely think it is possible that this info is not available via this endpoint. I am still looking through the transactions on my test account to see if I can find any but I have not had much luck so far. This may have to be something you find via the dashboard
do you think you can escalate this up to someone on the dev team that would know? Otherwise, I'm left guessing what fees Stripe will take from me from Payouts. That doesn't sit well with me. Because now I'll have to go live with the website and run through different test cases in a live environment with real credit card and Bank account data to test, before I know how Stripe is deducting fees from me.
I don't think you need to do that but unfortunately it does look like this info is not available in the API at the moment. I will file feedback for this because it would definitely be very helpful for us to surface that way, but I can't promise when or if that would be added. If you reach out to our support team they should have better info on how to keep track of your connect related fees, unfortunately we are less familiar with how to do that on this server but the support team should have a solid idea. https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.