#deepumi_api
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.
- deepumi_api, 27 minutes ago, 60 messages
- deepumi_connect-refund, 3 hours ago, 40 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/1253528257287159859
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Welcome back.. you need to not use transfer_data: {destination: "acct_16HxfvHozpwNUrbx", },
You need to follow the script you shared with me earlier
in the script it has the destination a/c right sorry.
You need to take that away
curl https://api.stripe.com/v1/payment_intents
-u "sk_test_51HMgMoGHtciddFoAUi8dc6pmHxglUf4HKBVS6I02mpvmmX4Nk2nL4skNrcnZyRaL0Rj2TnKw1qes4v1cmFShnTjB00YT2D48jv:"
-H "Stripe-Account: {{CONNECTED_ACCOUNT_ID}}"
-d amount=1000
-d currency=usd
-d "automatic_payment_methods[enabled]"=true
-d application_fee_amount=123
but it does not have the payment method id too right?
this is what I sent right now.
{
"application_fee_amount": "630",
"transfer_data": {
"destination": "acct_16HxfvHozpwNUrbx"
},
"currency": "usd",
"payment_method": "pm_1PTwa4IcWSSPnlgrX8QkZ2Jx",
"confirm": "true",
"amount": "30000",
"payment_method_types": [
"card"
]
}
You can still the payment method id
You can just take the following offf: "transfer_data": {
"destination": "acct_16HxfvHozpwNUrbx"
},
so that means something like below.
{
"application_fee_amount": "630",
"currency": "usd",
"payment_method": "pm_1PTwa4IcWSSPnlgrX8QkZ2Jx",
"confirm": "true",
"amount": "30000",
"payment_method_types": [
"card"
]
}
Okay, please stay online, let me make the code change.. and try
I am trying now.. need 5 minutes please
Got a different error.
No such PaymentMethod: 'pm_1PTwoQIcWSSPnlgrLU2ibvbw'; OAuth key or Stripe-Account header was used but API request was provided with a platform-owned payment method ID. Please ensure that the provided payment method matches the specified account.
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such PaymentMethod: 'pm_1PTwtiIcWSSPnlgrbPg2Gl6Q'; OAuth key or Stripe-Account header was used but API request was provided with a platform-owned payment method ID. Please ensure that the provided payment method matches the specified account.",
"param": "payment_method",
"request_log_url": "https://dashboard.stripe.com/acct_16HxfvHozpwNUrbx/test/logs/req_1l2Ki0L3HbSMJQ?t=1718935702",
"type": "invalid_request_error"
}
}
Here is the request Id - req_1l2Ki0L3HbSMJQ
That is because you need to create the PaymentMethod using the Stripe Account Header as well: https://dashboard.stripe.com/test/logs/req_FLILPSJPfGTjCO
-H "Stripe-Account: {{CONNECTED_ACCOUNT_ID}}" \
okay, got it.. let me do that as well. Thank you
Sure!
please stay online..
We are here 24/5, no worries.
Thank you so much
This is the request ID = "req_mFegiSh6PS5ixK" and test connected account id = "acct_16HxfvHozpwNUrbx"
can you please verify this once, that the fee is actual taken from connected account and platform account is getting back the money.
Yes, that request looks right to me. You can also look at the fees here: https://support.stripe.com/questions/see-the-stripe-fee-applied-to-a-specific-charge
okay thank you. I just wanted to verify.
Or, you can use the API, https://docs.stripe.com/api/balance_transactions/retrieve to look at the fees.
yea good point.
I will try that as well. Thanks for your patience and trying to resolve the issue.
Sure!
One question: Once we go through this new approach, we no longer see the actual payments on platform account, payments section. Is it correct?
for ex: I made that $500.00, it does shows on connected account, but not on the platform a/c. Is it the default behaivour?
I mean the dashboard payments page.
Yes, now the objects belong on the connected accounts, and the fees are deducted there
okay got it.. make sense
๐ ๐
Thank you again. I think the fix looks good. Now, we want to know if we can transfer the transaction fees I paid on behalf of the connected account back to the platform account using the API."
Yes, you can create a Transfer Reversal: https://docs.stripe.com/api/transfer_reversals/create and adjust the amount to the fees charged.
However, if you just want to calculate the total and charge them once, you can create a time invoice, https://docs.stripe.com/api/invoices/create
Does stripe charge any extra fees when I initiate the transaction from connected accounts to platform accounts?
I mean the transfer?
I do not believe so, you can test this in test mode and confirm
okay thank you..
Sure
This is the CURL URL for reversal, wondering, How can I get the transfer ID (tr_1Mio2dLkdIwHu7ixsUuCxJpu) and How do I pass the connected account?
curl https://api.stripe.com/v1/transfers/tr_1Mio2dLkdIwHu7ixsUuCxJpu/reversals
-u "sk_test_u7EPXn2YDSrs1gUI29kaC67Z:"
-d amount=400
I have the charge Id.. on our database, is it possible to make an API call to get the other information
1/ You can list all Transfers on a specific destination: https://docs.stripe.com/api/transfers/list#list_transfers-destination to attain the tranfer ID
2/ You do not need to pass an account ID as the transfer only belongs to that specific account, and it knows which account that transfer was sent to.
Okay, good to know.
I highly recommend that you review the API references and test these things. It gets fun as you play with these
Sure, I will test first before anything on production. Thanks so much for the info.
so if the connected account has insufficient fund to reverse this amount. can we set some option so once the connected account has enough balance, we can get th money
There is not a setting like that, you just need to attempt it again at a later date.
It won't have any negative impact to both connected and platform account correct?
I'm unsure, you might need to write in to support and confirm, https://support.stripe.com/contact.
okay no worries..
thank you, can you please leave this chat open.
so in case I can continue the converstation, rather than not to start over
This channel is best for a live chat, and although we can leave this open for about 30 minutes we will have to eventually close the tread. You can always ask in dev-help and fill out the form again.