#Victor Vorobiov-ltv
1 messages · Page 1 of 1 (latest)
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
This is technical questions or not?
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
I need to get this value using api. But I can't find where it is kept and if it even exists.
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Correct
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
i have one more question
these statuses are also not provided by api
so how can i get them?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can also look at payouts_enabled and charges_enabled if you want to just know if the account has any restrictions
the subsequent action depends on these indicators. Therefore, I definitely need to know from which fields the account becomes restricted or restricted soon
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