#khoi1644

1 messages · Page 1 of 1 (latest)

gaunt quiverBOT
woven olive
#

for example: i want to initiate a transfer and a manual payout form my backend. and i want to be able to track this payout callback. hence i want to payout the exact amount of the transfer

#

(to avoid other transfers happenning in between)

vestal dagger
#

Okie, how does your transfer object look like?

#

transfer is still on the presentle currency, but your connected account has a different settlement currency?

woven olive
#

correct

#

transfer only has the presentment currency (usd)

#

where my connect settlment currency is cad

vestal dagger
#

Okie, does the Balance Transaction corresponding to that Transfer, has any information?

woven olive
#

looks like the py_* object has that information

vestal dagger
#

Yeah the py_ is the genereated Charge on Connected Account!

woven olive
#

i should use that then to find out the final settlement value?

#

what's the api (and python sdk equivalent) for this?

#

i cant find anything for Payments on the reference docs. Using Charges doesn't work either

vestal dagger
woven olive
#

i am running curl against that charges/py_****

#

but getting resource missing

#

{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such charge: 'py_1Ni9Rx2e33YNR1RYpKMcATHv'",
"param": "id",
"request_log_url": "https://dashboard.stripe.com/logs/req_DQA98AkEzMpp8d?t=1692774051",
"type": "invalid_request_error"
}
}

Learn more about error codes and how to resolve them.

vestal dagger
#

Did you specify the Stripe Account header?

woven olive
#

ah ok i was able to get the py_ from that method

#

but it still doesn't have the cad settlement

gaunt quiverBOT
vestal dagger
#

Okie, then now can you find the Balance Transaction to that py object?

#

expand balance_transaction when you retrieve

woven olive
#

oooo ya ok i get this

#

i got it

#

is there a way to chain these or get it in one round trip?

#

otherwise i would have to go through 3 round trips to get this information: transfer -> payment -> connected_account's balance tranaction

vestal dagger
#

Transfer is on your Platform ,so cannot chain

#

But payment to balance transaction can be done via 1 API, using expand

woven olive
#

ah nice

#

this is super helpful. thank you so much