#ibgoldbergs
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) that returned this error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Can you try with expand[]=data.customer instead?
like this?
{{baseUrl}}api.stripe.com/v1/subscriptions/search?query=metadata["partnerName"]:"TEST1" OR metadata["partnerName"]:"TEST2"&expand[]='data.customer'
{
"error": {
"message": "Unrecognized request URL (GET: /api.stripe.com/v1/subscriptions/search). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
the issue is with query. query should be a string
query='metadata["partnerName"]:"TEST1" OR metadata["partnerName"]:"TEST2"'&expand[]='data.customer'
didnt work
{{baseUrl}}api.stripe.com/v1/subscriptions/search?query='metadata["partnerName"]:"TEST1" OR metadata["partnerName"]:"TEST2"'&expand[]='data.customer'
{
"error": {
"message": "Unrecognized request URL (GET: /api.stripe.com/v1/subscriptions/search). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
Stripe use form-encoded request body instead of using query parameters. Could you try using x-www-form-urlencoded request body instead?
Are you using Postman?
Yes, I'm using postman
"request_log_url": "https://dashboard.stripe.com/test/logs/req_fGAwTotb0RGhN1?t=1674104634",
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is the example request using x-www-form-urlencoded
expand[0], expand[1] in the keys with individual item as value
makes sense. The documentation is a bit ambiguous about what can be expanded for an entity