#lliu_api

1 messages ¡ Page 1 of 1 (latest)

proper flameBOT
#

👋 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/1332039890279465171

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

azure umbra
limber sonnet
#

I have read both docs. But i do not seem to be able to get a list of "cencelled" subscription for a customer by using the following pattern (Python for example)

customer = client.customers.retrieve(cid, CustomerService.RetrieveParams(
expand=["subscriptions"]
))

#

I want to be able to

  1. retrieve a customer by id
  2. expand all subs (regardless of statud) of the given customer
#

without doing another "list subscription" by status

azure umbra
#

You're using the wrong approach. The code you shared is retreiving a Customer and attempting to expand the subscriptions property. That won't work. You need to switch to the Subscriptions list API I linked to.

limber sonnet
#

can you show me a serach query that can be used to search for a list of subscriptions given a customer id?

azure umbra
#

Oh, my fault, I thought you could search Subscriptions by Customer, but looks like you can't. Sorry about that. You'll need to use the list API I linked to originally.

limber sonnet
azure umbra
#

Yep, see my message above.

limber sonnet
azure umbra