#marcus_api

1 messages · Page 1 of 1 (latest)

fluid isleBOT
#

👋 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.

rich crane
#

How can I retrieve the exact conversion rate (from USD to EURO in my case) for a CreditNote?

  1. I assume that the conversion rate of a CreditNote is not the same as the conversion rate of the attached Invoice?
  2. I asume like this - is it correct?
    creditNote.getRefundObject().getPaymentIntentObject().getLatestChargeObject().getBalanceTransactionObject().getExchangeRate();
  3. 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?
rustic spruce
#

hi there!

#

can you share a concrete example so I can look into it? Like a specific Credit Note ID (cn_xxx)

rich crane
#

Maybe try pi_3RSu6LAfQ68zM8an1sHSe1df

#

Connections
Latest charge
ch_3RSu6LAfQ68zM8an1QfqYIza
Invoice
in_1RSu6LAfQ68zM8anmSGicRVl
Payout
po_1RTu6nAfQ68zM8anPmVU2mKG
Payout for refund
po_1RTu6nAfQ68zM8anPmVU2mKG

rustic spruce
#

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...

#
  1. 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.
rich crane
#

so what about the first part

#

how to reliablyg et the correct exchange rate for a credit-note-refund

rustic spruce
#

if you retrive tha Balance Transaction with the API, do you see the exhcnage rate? txn_3RSu6LAfQ68zM8an1uqCMiyL

rich crane
#

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

rustic spruce
#

I think it should work yes, but ideally you should test this in test mode.

rich crane
#

is there a better way also?

#

since this is a long route..

rustic spruce
rich crane
#

ah.. I was hoping for that.. earlier I hadn't found it.. not it seems to be there

#

thansk