#Victor Vorobiov-ltv

1 messages · Page 1 of 1 (latest)

woven adder
#

I wish I could help, but this chat is focused on developers and technical questions. Our support team will be able to assist you better than I can: https://support.stripe.com/contact/email

light horizon
#

This is technical questions or not?

woven adder
#

Not in that way. This chat is developer-focused, so we're here to answer questions about the API and integration specifics. We don't have a lot of context on reporting in the dashboard or acquiring sales figures

light horizon
#

I need to get this value using api. But I can't find where it is kept and if it even exists.

woven adder
#

Ah, okay. The value doesn't exist in the API. You would have to retrieve all the charges on the account and sum the amount captured

#

List all API method here: https://stripe.com/docs/api/charges/list

Field for gathering total amount that was actually captured here: https://stripe.com/docs/api/charges/object#charge_object-amount_captured

light horizon
#

But what if the currency is different? or it can't be?

#

So, if i want to get value from screenshot, i just have to sum amount captured. Yes?

woven adder
# light horizon But what if the currency is different? or it can't be?

That depends on which currencies you accept. I would recommend checking the value of the charge's currency and adding up separately. Keep in mind that the conversion value between 2 currencies changes throughout the day, so you may get numbers that are slightly different than the one in the dashboard

light horizon
#

i have one more question

#

these statuses are also not provided by api

#

so how can i get them?

woven adder
#

This one's a little confusing, because the verbiage is different. So you won't find the terms "restricted" or "restricted soon" in the API.

You want to look at the Accounts API. Specifically at the requirements hash which will tell you what is needed to get the account into a "completed/approved" state: https://stripe.com/docs/api/accounts/object#account_object-requirements

#

You can also look at payouts_enabled and charges_enabled if you want to just know if the account has any restrictions

light horizon
#

the subsequent action depends on these indicators. Therefore, I definitely need to know from which fields the account becomes restricted or restricted soon

woven adder
#

Then you'll need to look at requirements.currently_due and requirements.eventually_due to get an idea of what they need to include now, versus what they will need to include later