#rico_api

1 messages ¡ Page 1 of 1 (latest)

vale rootBOT
#

👋 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/1341410880897810555

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

keen scaffold
#

Can you share the request id?

#

Where you got the error

white jetty
#

i think its because it is set as payout for my bank or something

#

wait i will send it

#

for example this would be one: req_DwGbJBz4suMFxh

keen scaffold
#

It's because you're not specifying source transaction

white jetty
#

what is source transaction?

#

or what do i have to add there

keen scaffold
#

Did you read the doc?

white jetty
#

yeah

#

i mean

#

i think i get it

#

but the thing is, currently i handle it like this: First all the payments of all the users are collected and the money is being split and send to the providers

#

I think when i use this attribute, i have to do for every user for each provider the user uses a transaction and then use this transaction to cover the transfer to the provider

keen scaffold
#

I guess I don't have the full context on your integration

#

Can you explain a little more? Not sure I understand what you mean

white jetty
#

okay i will give u the steps

#

first all the bookings are collected

#

then for every user in the bookings a big PaymentIndent is created

#

after that for every provider in the bookings a payout is send (Transfer)

#

with source transaction, i think, i would have to create a transaction for every booking

keen scaffold
#

So you'd just need to create transfers for each payment intent separately to use above flow

#

With source_transaction

white jetty
#

okay

#

the thing is per payment intent i have multiple providers to reduce the fee costs

keen scaffold
#

Yeah you can create multiple transfers per payment intent though with source_transaction

#

So you can transfer a portion to each provider

#

You'd just need to replicate this process for each individual payment intent

white jetty
#

ok i get it

#

and u dont think there is a easier solution?

keen scaffold
#

Not really an easier solution but there is an alternative solution

#

You'd need to switch your account to manual payouts and then wait for enough available balance in your account before making the transfers

#

Which is probably going to get more complicated honestly

#

I would stick to the source_transaction approach

white jetty
#

ok thank u

#

i will try it and if it doesnt work, i will open another chat

white jetty
#

i am getting this error: Request req_DG3cijyJO0dIzH: No such charge: 'pi_3Qts1nG9cv0SKMc51qYAeJCT'

keen scaffold
#

Ah you need to pass the ch_ id not the pi_ id

white jetty
#

have i done something wrong?

#

Request req_GgL8R1Oru68E0z: Cannot use a source_transaction that has a null balance_transaction (you might want to check py_3QtsMmG9cv0SKMc51u4ZShbD to see if it failed.

keen scaffold
#

Yeah you need to wait for the charge to succeed first

#

You attempted transfer 10 seconds before it succeeded