#Gautam

1 messages · Page 1 of 1 (latest)

jagged summitBOT
ruby quartz
#

Also the API doesn't have any parameter called Taxation ID
Can you elaborate on what information you're trying to fetch exactly?

autumn jetty
#

for USD currency org
const invoiceObj = await invoiceService.retrieveInvoice('in_1NXL86LYNIhg3g0eVGZQ5z9e');
const paymentIntentObj = await paymentIntentService.retrievePaymentIntent(invoiceObj.payment_intent);
const balanceTransaction = await balanceTransactionService.retrieveBalanceTranscation(
paymentIntentObj.charges.data[0].balance_transaction
);
this way we are getting the balance transcation
but for Canadian currency org paymentIntentObj.charges.data[0].balance_transaction ..is not avialble

ruby quartz
#

Can you share an example where you're not seeing the BalanceTransaction in cad currency?

#

Oh in_1NXL86LYNIhg3g0eVGZQ5z9e seems to be CAD currency

autumn jetty
#

yes

ruby quartz
#

Are you seeing any errors?
That invoice is linked to this payment intent pi_3NXL86LYNIhg3g0e0pjyPl0j and the underlying charge is ch_3NXL86LYNIhg3g0e0y3saI73 which then has txn_3NXL86LYNIhg3g0e0QVTJT3Y as the BalanceTransaction ID

autumn jetty
#

I can not see this txn_3NXL86LYNIhg3g0e0QVTJT3Y .. which object contains this .

ruby quartz
#

The charge object should list it

#

Oh are you working with a few different API versions?

autumn jetty
#

for usd paymentIntentObj object contains charges .. but cad it is not availble there .. what I should do for consistent

#

Oh are you working with a few different API versions? how to check this ..we are working with two different org (us and canada)

ruby quartz
autumn jetty
#

for canada --using latest
and for US --
2020-08-27

#

what we should do .. we should upgrad US to latest as well

ruby quartz
autumn jetty
#

ok .. great .. Thanks for your support