#peter - Destination Charge

1 messages · Page 1 of 1 (latest)

waxen idol
#

Hi 👋

#

The amount is stored in USD but the payment record includes CAD as the fx_currency and has an fx_amount that has the price in CAD.

desert galleon
#

How can I fetch the payment record?

waxen idol
#

However, I do not know whether you can access this via the API. The closest related resource is the Balance Transaction

desert galleon
#

Is there a Balance Transaction for the connected account?

waxen idol
#

Looking in a couple other places

desert galleon
#

I have seen a Balance Transaction for the platform account, but that has nothing since the amount didn't get converted.

#

My goal would be to somehow determine the converted value via the API

waxen idol
#

Can you try accessing the Balance Transaction. There is a property called exchange_rate that should include this information

#

For this payment the balance transaction ID is txn_1LdOUG2S8RzLSMJJk3UFIOjy

#

This exists on the account acct_1LcYHq2S8RzLSMJJ

desert galleon
#

Oh, this works, it has all the data.

#

Do you know here the ID is stored for this?

waxen idol
#

You can actually have the API return this data when you make the destination charge. You would just specify charges.data.transfer.balance_transaction in the expand parameter

#

You can also include charges.data.balance_transaction and charges.data.transfer.destination_payment in the expand parameter to get plenty of information up front

desert galleon
#

Oh, I didn't know know about the expand param. Cool, I'll give it a try. Big thanks for help!

#

I think I have it:D Muchas gracias!