#Sato
1 messages · Page 1 of 1 (latest)
I'm trying to use paymentIntents.search({query: ......
I'm using around 15 filters
filter1 AND filter2 AND
So on
It says that I'm exceeded. How many filters can I use?
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I need the request ID so that I can see what attributes stripe receives from your code.
Do you see a request ID from your Dashboard log?
It does not appear in the log dashboard
The last one was that appears is about 6 hours ago. I don't know why
Hmm, can you copy and paste your code here?
const paymentIntent = await stripe.paymentIntents.search({
query: status:'requires_capture' AND metadata['order_id']:'${orderId}' AND metadata['total']:'${total}' AND metadata['tax']:'${tax}' AND metadata['shipping_price']:'${shipping}' AND metadata['amount']:'${priceInfoAmount}' AND metadata['currency']:'${currencyCode}' AND metadata['commerce_items_codes']:'${orderedCommerceItems}' AND metadata['number_of_items']:'${numberOfItems}' AND metadata['payment_method']:'${paymentMethod}' AND metadata['shipping_group_id']:'${shippingGroupsId}' AND metadata['city']:'${city}' AND metadata['postal_code']:'${postalCode}' AND metadata['address']:'${address1}' AND metadata['profile_id']:'${profileId}' AND metadata['email']:'${profileEmail}' ,
});
I'm using like 15 filters. So I'm exceeded. But I'd like to know how many I'm allow to use
"Error: Max filters exceeded. Got 15"
The max number of filters is 10, is there a way to optimize your query with less filters?