#khoi1644
1 messages · Page 1 of 1 (latest)
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)
Okie, how does your transfer object look like?
transfer is still on the presentle currency, but your connected account has a different settlement currency?
correct
transfer only has the presentment currency (usd)
where my connect settlment currency is cad
Okie, does the Balance Transaction corresponding to that Transfer, has any information?
Yeah the py_ is the genereated Charge on Connected Account!
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
First let's use Retrieve Charge API https://stripe.com/docs/api/charges/retrieve?lang=python on the py object, with the Stripe Account header point to your Connected Account
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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"
}
}
Did you specify the Stripe Account header?
ah ok i was able to get the py_ from that method
but it still doesn't have the cad settlement
Okie, then now can you find the Balance Transaction to that py object?
expand balance_transaction when you retrieve
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