#Dooing
1 messages ยท Page 1 of 1 (latest)
Hi ๐ service vs good type Products is an old concept within our API 0 that is no longer leveraged in newer API versions, so it is expected that this information won't be reflected in the dashboard.
What API version are you using for your account/integration?
latest and greatest
2022 -08 or so
ok so that wont work, I see.. .but again - HOW to filter - ONLY for one time products?
I mean technically, from what I see, they are not "one time" products.. but at least in our case, we want to configure products with the sole purpose of having one time prices attached
I could now search for the one time prices and then expand for their products.. but I was told that this is not recommended as it MAY be limited to 10 prices only / can return a large amount of data
search - I meant the list query, not the search specifically
That isn't a concept that is built into the API, so you would need to add custom logic to accomplish that.
You can use metadata to add tags to the Product objects that you create, and can then search for those products using the Search API:
https://stripe.com/docs/api/metadata
https://stripe.com/docs/api/products/search
yeah I was thinking about meta data.
so you are suggesting, adding for example a meta data key "ONE_TIME_PRODUCT" TRUE - and then retreive alll products (not so many) and then filter out the ones that are / are not having that flag
Yup, either list all Products and loop through them, or use the Search API to search for ones containing that metadata.
trying to avoid the search api still. because I would have to find out... how to use it ๐
Haha, fair
and a price without a product is not possible, I assume?
Correct, a Price must be attached to a Product
damnit ๐