"error": { "code": "parameter_unknown", "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown", "message": "Received unknown parameter: created.gte. Did you mean created?", "param": "created.gte", "type": "invalid_request_error" }
Asked
Active
Viewed 172 times
1
-
Which endpoint are you hitting? Can you share the code that made the API call? – Jonathan Steele Mar 04 '22 at 11:48
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Mar 05 '22 at 06:45
1 Answers
0
You have to split the created.gte
into an associative array. Here is a solution for native PHP Stripe library. It returns all invoices for the last week it does work in Laravel as well.
$stripeClient = new StripeClient( $this->stripeKey );
$stripeClient->invoices->all([[ 'created' => ['gte' => (time() - 604800)] ]])->data

ronline
- 2,211
- 1
- 20
- 27