#ttt999_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/1317117417012596807
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi
[
{
"qs": [
{
"key": "name",
"value": "jane"
}
],
"url": "/v1/customers/search",
"body": null,
"method": "GET",
"headers": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
]
}
]
I'm sending this and getting an error:
DataError
[parameter_unknown]
Parameter: name
Received unknown parameter: name
Reference: https://stripe.com/docs/error-codes/parameter-unknown
hi! is there a request ID req_xxx in the error message/exception?
not that I can see. Nothing on the dashboard in events / logs either
what software or platform are you using to make this request?
maybe it doesn't support this API?
it does, I have other API calls working with it
your parameters are not how this API works though.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it takes one parameter, query , as a string
how should I be sending the query string? as json?
not sure where this key/value structure you're using comes from
in the format in the docs and examples : https://docs.stripe.com/search#search-query-language
seems more correct yes, worth trying it out!
ok but I am not sure how / where in the http request this goes
as a query parameter, using URL-encoding like /v1/customers/search?query=name%3A%27Jane%20Doe%27%20AND%20metadata%5B%27foo%27%5D%3A%27bar%27
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!