#bvo_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/1333554219470426212
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
Can you share an Invoice ID (starts with in_) or a Customer ID (starts with cus_)?
req_pXQAeYYjPJ35dl
in_1QlzxZDqkihSaoJZeETivU32
Here is another example of a different customer with more invoices attempts:
cus_RfIDYLgKiWPbzw
Thanks!
The behavior you're seeing is due to this: https://docs.stripe.com/invoicing/overview#open
If its amount due is less than the minimum chargeable amount, it automatically transitions to paid status and Stripe debits the amount from the customer’s credit balance.
So, in the case of in_1QlzxZDqkihSaoJZeETivU32, this customer had an earlier Invoice where the total was 0.21 CAD: in_1QlzpTDqkihSaoJZKJKZLGIZ
Since this is below the minimum chargeable amount, this 0.21 CAD was treated as an amount that this customer still owes you
I see, so there's a minimum chargable amount of 0.50 CAD that's why it's doing that?
That's right!
Omg. So the behaviour is correct. And there's nothing wrong with my API permissions?
Yep, that's right
Can I ask you another question relating to my OAuth permissions where I'm getting this error code:
Unable to load payment form
This application does not have the required permissions for this endpoint on account 'acct_1JJhbEDqkihSaoJZ'. Having the 'read_only' scope would allow this request to continue.
This is a different connection that I'm using from the initial question above. I had to create a different API key to get the payout form to load properly
Hm, can you share what you're trying to do when you get that error? Also, is the key you're using a restricted key/one you created via the Dashboard? (don't share the key here)
Pay for the invoice. I believe its created via Dashboard
Can you share more? Like, are you trying to access a URL or something else?
@lyric cobalt let's disregard this question for now. Im not facing another obstacle when it comes to retrieving data. After a payment_intent is successful, I am having a hard time finding the Stripe fees data using the Payment Intent lookup or Stripe Invoice lookup
I see, okay
The PaymentIntent is more of a state machine for an actual Charge. Given a PI, you can retrieve the underlying Charge. The Charge will have a BalanceTransaction, which represents the movement of funds. The BalanceTransaction for the Charge should have a fee
You can use expansion to start with the PI and retrieve and expand the BalanceTransaction: https://docs.stripe.com/expand
Can you share where you're stuck?
When you retrieve a PaymentIntent, you can look at its latest_charge. Alternatively, you can opt to list all charges and filter by payment_intent: https://docs.stripe.com/api/charges/list