#0xpete_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1275452733998239787
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
That's a charge id
Charges either start with ch_ or py_
So you can use this endpoint https://docs.stripe.com/api/charges/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
๐คฆ i didn't specify the connectedAccountID
so it was looking at my main account
i'm sorry for the absolutly idiot q
can you at least validate this flow:
- I check to see if i've added metadata on the charge of the correction, IF not, i issue a transfer FROM the connected account back to the main account and update the charge w/ the audit information
Sorry what part do you need me to validate?
Does what I'm proposing make sense and seem reasonable?
Yeah that makes sense to me
hmm, is there a way for me to reflect the transfer back in the Payment Breakdown?
What do you mean
On the custom connect account, for the paymetn I see this:
with a fee on there then the net amount.
with the reversal of some of the net amount, is there a way this can be updated?
so it's super clear what is happening
Hi there ๐ jumping in as my teammate needs to step away.
hi Toby ๐ Thank you!
Can you tell me where you're seeing that? My teammates and I in this forum specialize in helping developers work with our APIs, so I'm not as familiar with the UI you're showing and can't place it offhand. It being so heavily cropped makes it harder for me to guess about what you're showing there.
ahh i'm sorry.
It's on a custom account page, on the charge that is associated with that custom account.
I see the entire payment there, with the breakdown showing the existing fee, the charge amount and then the net amount going to the custom connect account.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
maybe the better way would be updating the application_fee on the charge object vs doing this transfer.
i'm just trying to make sure I am doing things in a way for audit purposes
You can't update the application fee after the payment has been processed, I'm pretty sure.
That page is a page that only you will be able to view, and unfortunately I'm not sure how the Payment breakdown section is populated. I'm seeing it include a payment amount and a stripe fee on one of my test payments.
If you populate the metadata parameter on the Charge object, that should be visible in the Metadata section further down on that page.
perfect, that's what my initial route was, just wanted to make sure there wasn't a better path to go.
Thank you so much again for all the help, I truly appreciate it!
Any time! Happy to help
I'm sorry one more thing..
Can i create a transfer FROM a custom connected account back to the main account this way?
const transfer = await stripe.transfers.create(
{
amount: amount,
currency: 'usd',
description: 'Fee adjustment transfer from connected account to main account',
metadata
},
{
stripeAccount: connectedAccountId
}
);
or should this be a reversal off the initial transfer into that account?
hmm nope i don't think it should be a reversal.. just need to look at the syntax for transfering back.
Debiting from a Connected Account in that fashion has some restrictions and limitations to be mindful of, discussed here:
https://docs.stripe.com/connect/account-debits#transferring-from-a-connected-account
A transfer reversal may be easier/better depending on the outcome you're after. You can use testmode to test both approaches out and see which better fits your needs.
yep perfect, i caught the error prior to any of the funds transfering off.