#yldr
1 messages · Page 1 of 1 (latest)
What code exactly are you running that's not returning anything?
param unknown: received unknown parameter: customer
https://stripe.com/docs/search#query-fields-for-payment-intents
but this says it should work, no?
Can you please copy/paste the exact code you're running?
Raw response for the API
Status code 400
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: customer",
"param": "customer",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_1zdal8WFOLehdm?t=1690910435",
"type": "invalid_request_error"
}
Raw response for the API
Status code 400
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: customer",
"param": "customer",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_1zdal8WFOLehdm?t=1690910435",
"type": "invalid_request_error"
}
}
Again, that's literally not the code you're running. Please copy/paste the exact code you're running
brother what do you actually want
im calling this via a rest call
do you want my endpoint
my error code
im not using /code/
im using the internet to make a post/get request because its the 21st century and i can call stripe's api many many different ways
be more specific
think postman
What are you using to make the call? Are you actually using Postman?
I am using Bubble.io, which is effectively postman, wrapped in a different UI
https://api.stripe.com/v1/payment_intents?customer=[customer_id]
This works
versus the documentation:
https://api.stripe.com/v1/payment_intents/search
which appends /search to the end
Got it, okay. So you need to include a query string, rather than passing the customer as it's own parameter. So right now, you're passing customer: "cus_OMjwKSbJoUACe1", but you should be passing query: "customer:\'cus_OMjwKSbJoUACe1/'"