#marcosmercuri
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the request ID req_xxx when you try to fetch it?
If I try to fetch it individually, I get it:
$> curl https://api.stripe.com/v1/products/prod_NV3EROnOSfpoha -i \
-u "sk_test..."
...
request-id: req_XnPe3OSJMYQmUe
stripe-version: 2020-08-27
{
"id": "prod_NV3EROnOSfpoha",
"object": "product",
"active": false,
"attributes": [],
"created": 1678443906,
"default_price": null,
"description": null,
"images": [],
"livemode": false,
"metadata": {},
"name": "one time p",
...
}%
But if I try to get it as part of a list of ids, I don't get it:
$> curl https://api.stripe.com/v1/products -i \
-u "sk_test..." \
-d "expand[]"="data.default_price" \
-d "ids[]"="prod_NV3EROnOSfpoha" \
-d "active"="false" \
-G
...
request-id: req_LCbRb0JB94oHlQ
stripe-version: 2020-08-27
{
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/products"
}%
I see, let me check
What if you remove the ids?
Okay, I believe it is not possible to search for products created this way.
What if you remove the ids?
Ifactive=falseI get an empty list (with it set to true I do get the active ones)
Okay, I believe it is not possible to search for products created this way.
And how can I get the information for this product (to have all the information for my invoice)?
ah, you mean I'd need to make a one-by-one request per product?
Yes
ok. Thanks for the help.