#dan_kres
1 messages · Page 1 of 1 (latest)
Hi
What API are you looking for exactly ? :
https://stripe.com/docs/api
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 use the endpoint https://api.stripe.com//v1/radar/early_fraud_warnings?created.gt=1702374169&created.lt=1704879769, but it fails
ending_before and starting_after are used for pagination and they operate with transaction identifiers, but what I need - is a timeframe
Ah sorry I though you want to paginate the results
The params aren't query params
You need to pass them in x-www-form-urlencoded format
I got the following response:
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameters: created.lt, created.gt. Did you mean created?",
"param": "created.lt",
"request_log_url": "https://dashboard.stripe.com/acct_1NSeRSK7foQXzqLs/logs/req_VRvh88DzrXIOFc?t=1704975864",
"type": "invalid_request_error"
}
}
Request was in x-www-form-urlencoded format
With request:
created.lt: "1704879769"
created.gt: "1702374169"
Ok, let me do some tests...
Yes, please
What SDK are you using exactly between ? or you wan to use curl ?
curl
Try this request then:
curl -G https://api.stripe.com/v1/radar/early_fraud_warnings \
-u "YOU_STRIPE_SECRET_KEY:" \
-d limit=3 \
-d created[gt]=1702374169 \
-d created[lt]=1704879769
It worked out. Let me check if the warnings in response were truly filtered
It works, thank you! Ticket can be closed