#billinghamj-ad-hoc-prices
1 messages · Page 1 of 1 (latest)
Hello 👋
Give me a moment to catch up here and I'll respond as soon as I can 🙂 Thanks
Moving this here for the context
Context:
https://stripe.com/docs/products-prices/manage-prices#ad-hoc-prices
https://stripe.com/docs/api/prices/list?lang=curl#list_prices-active
Thank you
curl https://api.stripe.com/v1/prices/search -d query="active:'false'"
This does work, so I'm not sure why the regular listing API doesn't
The ad-hoc + API docs do seem to suggest, from stating "they’re marked as active=false" and providing the option to query with the active param, that listing with active=false should show them
There's no mention that they're a special case, or that there's some other difference in the object type etc
👋 stepping in here as hanzo had to step away.
ty
Can you provide a request ID for your retrieval?
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.
Sure - req_elwBg2D1VSu5Mo
That was:
curl -G https://api.stripe.com/v1/prices \
 -u sk_test_xxx: \
 -d active=false -v```
{
 "object": "list",
 "data": [
 ],
 "has_more": false,
 "url": "/v1/prices"
}
Check out req_ZMYtBmCzINuMRu - a search
Example non-active price ID price_1LG21jDAfGskkGiU6OdtMiHk
I'm assuming internally ad-hoc prices are stored a bit differently maybe? If so, that seems to be leaking into the API behaviour
Oh okay yeah that price is inactive
Huh okay I just tested on mine and the query is returning fine
Good question. Let me test again with creating a new one that way
Sorry, server is really busy.
np np 🙂
Okay so yeah as far as I can tell Search doesn't handle this scenario
So feels like a bug to me and I'll need to file a ticket
Thank you, that'd be helpful 🙂
The underlying reason I've flagged this is because Fivetran isn't syncing the prices, so I was going to coach them through how the API should be used
So I will prob leave that ticket on hold until it's resolved on the Stripe side
Go ahead and write into our Support team (https://support.stripe.com/contact/login) and mention bismarck in your ticket and let me know when you have sent the ticket. Then I can grab the ticket and keep you updated for when this is fixed.
Let me know when you have submitted the ticket so I can go grab it
Thanks, will do
Great I see it. I'll get back to you over email