#ankurrokad
1 messages ยท Page 1 of 1 (latest)
Hi ๐ if you retrieve the current balance for your account, and look in the available list for an entry with currency set to cad, do you see a sufficient amount to cover the amount you're trying to transfer?
https://stripe.com/docs/api/balance/balance_retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alright, Let me try that.
{
"object": "balance",
"available": [
{
"amount": 405178,
"currency": "cad",
"source_types": {
"card": 405178
}
}
],
"connect_reserved": [
{
"amount": 0,
"currency": "cad"
}
],
"instant_available": [
{
"amount": 1200000,
"currency": "cad",
"source_types": {
"card": 1200000
}
}
],
"livemode": false,
"pending": [
{
"amount": 10147449,
"currency": "cad",
"source_types": {
"card": 10147449
}
}
]
}
"source_types": {
"card": 405178```
Looks like you currently don't have a sufficient available balance in that currency to cover the amount of the Transfer that you're trying to create.
If you're currently working in test mode, then you can use the test cards shown here to create and process payments and have the funds from those immediately move to your `available` balance rather than first going through `pending`:
https://stripe.com/docs/testing#available-balance
Alternatively, if you're creating this Transfer as part of a Separate Charges and Transfers flow, where these Transfers are associated with recently made payments, then you can use the source_transaction parameter to like the Transfer to the payment's Charge. Doing so will queue the creation of the Transfer so that it happens once the funds from the Charge become available.
https://stripe.com/docs/connect/charges-transfers#transfer-availability
Okay,
I actually added 100K using a payment link to test PAYOUT
I guess that could be a reason,
But What I will do it, just charge a test customer some amount and then try to run the Payout, I guess that will work.
This is probably why your pending balance is so much higher than your available balance, though it is also possible that you did add those funds and they have since been paid out.
{
"amount": 10147449,
"currency": "cad",```
When you do, make sure to use one of the test cards that I linked to, otherwise the funds will go into your pending balance and you'll have to wait for them to move to available.
Yes, That worked,
Thank you very much @vital smelt
I will go ahead and implement this as well,
Awesome, glad to hear that helped!
