#kma-traser_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/1220669960423215164
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi
Hi, let me help you with this.
i am currently trying to filter for a specific customer with the customer api.
The code that used to work produced the following url :
'https://api.stripe.com/v1/customers/search?query=metadata['SubscriberID']:'6190165'&limit=1'
this now returns the following error:
message": "Received unknown parameters: limit, query",
This request updates metadata field on the Customer object.
Do you have a successuful GET /v1/customers/search request?
i cant find one atm. we infrequently check the customers because they rarely change anything
can you still check how else that search query would have to look ?
I see you send some requests with query in request body, instead of URL query and they seem to be successful. Are you sending those via a Stripe SDK? e.g. https://dashboard.stripe.com/logs/req_AlBccNzlprD29R
we are sending them without an sdk as naked http calls. just requesting the customers works fine. but trying to filter does not
ive also tried this as a fallback:
'https://api.stripe.com/v1/customers/6190165'
But those are 2 different methods, one is retrieving an individual Customer by ID, and another allows you to search for multiple Customers by various fields. Which one are you looking to use exactly?
well we were using both. the filtered one first and if that doesnt return a customer, then the second one as a fallback
when i try
'https://api.stripe.com/v1/customers/6190165'
via postman or locally on vscode with the rest extension i get the following error:
The connection was rejected. Either the requested service isn’t running on the requested server/port, the proxy settings in vscode are misconfigured, or a firewall is blocking requests. Details: RequestError: connect ECONNREFUSED 127.0.0.1:443.
This error doesn't look like something coming from Stripe. It seems your VSCode plugin is not configured correctly.
can you take a look at
req_y4uqVw1ZmCUrH3
Could you try adding Content-Type: "application/x-www-form-urlencoded" header?
that is already in
Sorry, it seems like it works if you don't provide the header. Could you try removing it?