#harsh_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1319596290828664884
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐
I invite you to walk through this guide in order to check all available reports via Stripe APIs:
https://docs.stripe.com/reports
okay i will try it.
i did not get report as my expectetion
Great! Happy to help!
yes
I want to create same as stripe balance sammary report using api
https://dashboard.stripe.com/test/reports/balance?startDate=2024-12-16&endDate=2024-12-17¤cy=usd&templateType=merchant&timezone=Etc%2FUTC
with all details and also i want metadata in this list
above as you given link working "stripe/stripe-php": "^10.0",
I want to create same as stripe balance sammary report using api
https://dashboard.stripe.com/test/reports/balance?startDate=2024-12-16&endDate=2024-12-17¤cy=usd&templateType=merchant&timezone=Etc%2FUTC
i have use this api $response = \Stripe\BalanceTransaction::all($params);
but i get differense in balance sammary report and api report , few amount count is missing.
i thing, is there any bug in stripe balance sammary report or in API \Stripe\BalanceTransaction::all($params);
$response = \Stripe\BalanceTransaction::all($params);
$all_transactions = array_merge($all_transactions, $response->data);
$has_more = $response->has_more;
if ($has_more) {
$starting_after = end($response->data)->id;
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I want to create same as stripe balance sammary report
why not directly use the balance summary report?
base on mata-data i need to my project platform wise separate data.
in my stripe account, i do get transactions for my multiple platforms.
from that based on meta-data I need to create platform wise separate balance summary report.
I don't really understand your use case. but if you need to retrieve all balance transaction, then you have to use this endpoint: https://docs.stripe.com/api/balance_transactions/list
yes, already I use that endpoint. but i did not get right data.
its miss match with stripe balance summary report.
can you clarify exactly what is the issue with this endpoint? which data is "not right"?
yes
in stripe
https://dashboard.stripe.com/test/reports/balance?startDate=2024-12-16&endDate=2024-12-17¤cy=usd&templateType=merchant&timezone=Etc%2FUTC
base on filter bellow data get.
Charges:309 (count 7 )
Fees:11.07
Refunds:-2300 (count 8 )
transfer:-660.19 (count 17 )
Total:-2655.19
use this endpoint: https://docs.stripe.com/api/balance_transactions/list
bellow data I get with same date.
\Stripe\BalanceTransaction::all($params);
Charges:304 (count 5 )
Fees:10.32
Refunds:-2299 (count 7 )
transfer:-660.19 (count 17)
Total:-2655.19
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
in stripe
https://dashboard.stripe.com/test/reports/balance?startDate=2024-12-16&endDate=2024-12-17¤cy=usd&templateType=merchant&timezone=Etc%2FUTC
base on filter bellow data get.
Charges:309 (count 7 )
Fees:11.07
Refunds:-2300 (count 8 )
transfer:-660.19 (count 17 )
Total:-2655.19
use this endpoint: https://docs.stripe.com/api/balance_transactions/list
bellow data I get with same date.
\Stripe\BalanceTransaction::all($params);
Charges:304 (count 5 )
Fees:10.32
Refunds:-2299 (count 7 )
transfer:-660.19 (count 17)
Total:-2655.19
I want to create same as stripe balance sammary report using api
https://dashboard.stripe.com/test/reports/balance?startDate=2024-12-16&endDate=2024-12-17¤cy=usd&templateType=merchant&timezone=Etc%2FUTC
i have use this api $response = \Stripe\BalanceTransaction::all($params);
but i get differense in balance sammary report and api report , few amount count is missing.
i thing, is there any bug in stripe balance sammary report or in API \Stripe\BalanceTransaction::all($params);
$response = \Stripe\BalanceTransaction::all($params);
$all_transactions = array_merge($all_transactions, $response->data);
$has_more = $response->has_more;
if ($has_more) {
$starting_after = end($response->data)->id;
}
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
i use $response = \Stripe\BalanceTransaction::all($params);
date wide data
so how to get Request ID req_xxx?
Due to timezone issues the timeframe in the Dashboard and the API request might be slightly different, which results in more Charges in the Dashboard. But I don't think the data is incorrect in any case.
Feel free to compare the IDs you get from each result.
in stripe
https://dashboard.stripe.com/test/reports/balance?startDate=2024-12-16&endDate=2024-12-17¤cy=usd&templateType=merchant&timezone=Etc%2FUTC
base on filter bellow data get.
Charges:309 (count 7 )
Fees:11.07
Refunds:-2300 (count 8 )
transfer:-660.19 (count 17 )
Total:-2655.19
use this endpoint: https://docs.stripe.com/api/balance_transactions/list
bellow data I get with same date.
\Stripe\BalanceTransaction::all($params);
Charges:304 (count 5 )
Fees:10.32
Refunds:-2299 (count 7 )
transfer:-660.19 (count 17)
Total:-2655.19
ALSO i use UTC timezone.
created: {
gte: "1734310800",
lte: "1734440399",
},
gte is 2024-12-16 01:00:00 not 00:00
And lte is 12:59:59, while in the Dashboard it's probably 23:59
can we get metadata in this use this endpoint: https://docs.stripe.com/api/balance_transactions/list \Stripe\BalanceTransaction::all($params);
It must include metadata already, is it not the case?
i did not get it
Sorry, Balance Transactions actually don't have metadata: https://docs.stripe.com/api/balance_transactions/object
Are you looking for metadata on Charges? Or PaymentIntents?
Charges, refund and transfer