#marcus_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/1384490075861028995
📝 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.
- marcus_webhooks, 4 days ago, 135 messages
- marcus_webhooks, 4 days ago, 43 messages
How can I retrieve the exact conversion rate (from USD to EURO in my case) for a CreditNote?
- I assume that the conversion rate of a CreditNote is not the same as the conversion rate of the attached Invoice?
- I asume like this - is it correct?
creditNote.getRefundObject().getPaymentIntentObject().getLatestChargeObject().getBalanceTransactionObject().getExchangeRate(); - What if the creditNote is a credit - then we don't have refund at all and will just result in an internal balance for the customer, right? I guess then I don't need to necessarily send a credit note pdf to my tax office?
hi there!
can you share a concrete example so I can look into it? Like a specific Credit Note ID (cn_xxx)
Maybe try pi_3RSu6LAfQ68zM8an1sHSe1df
Connections
Latest charge
ch_3RSu6LAfQ68zM8an1QfqYIza
Invoice
in_1RSu6LAfQ68zM8anmSGicRVl
Payout
po_1RTu6nAfQ68zM8anPmVU2mKG
Payout for refund
po_1RTu6nAfQ68zM8anPmVU2mKG
thanks, having a look.
here's the related Credit Note: cn_1RTgIwAfQ68zM8anlt2kslfT ($34), linked to this Refund: re_3RSu6LAfQ68zM8an1yFGe8uH ($34). And the Refund has a Blance Transaction: txn_3RSu6LAfQ68zM8an1uqCMiyL that's for €30.
tying to find the exchange rate...
- What if the creditNote is a credit - then we don't have refund at all and will just result in an internal balance for the customer, right?
correct
I guess then I don't need to necessarily send a credit note pdf to my tax office?
that, I have no idea, since this is not a technical question about the Stripe API.
so what about the first part
how to reliablyg et the correct exchange rate for a credit-note-refund
if you retrive tha Balance Transaction with the API, do you see the exhcnage rate? txn_3RSu6LAfQ68zM8an1uqCMiyL
I can't perform a test right now
just asking if creditNote.getRefundObject().getPaymentIntentObject().getLatestChargeObject().getBalanceTransactionObject().getExchangeRate();
is the way to go or if there is a better / more correct / easier way
I think it should work yes, but ideally you should test this in test mode.
why not directly check the BalanceTransaction of the Refund object? https://docs.stripe.com/api/refunds/object?api-version=2025-05-28.basil&lang=php#refund_object-balance_transaction