#diesel_checkout-product

1 messages ¡ Page 1 of 1 (latest)

wide lichenBOT
#

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

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

trim juniper
#

I used 21 expand=[ 22 'data.payment_intent', 23 'data.line_items', 24 'data.invoice', 25 'data.payment_intent.latest_charge.balance_transaction', 26 'data.payment_intent.latest_charge.refunds', 27 'data.line_items.data.discounts', 28 ]

#

then

#

183 for li in s['line_items']['data']:

#

To find people who bought the product and what price was paid.

viscid otter
#

Hello! Iterating over Checkout Sessions is the easiest in the API yes

#

Alternatively you can use Sigma for this if this is an ad-hoc analysis

trim juniper
#

I've never used sigma.

viscid otter
#

diesel_checkout-product

trim juniper
#

Do you know if there's any allowance for a non-profit, or if we can turn it on and off?

#

I'll go and read the docs, thanks.

viscid otter
#

you can turn it on to try it and then off before the end of the trial I think but otherwise there's cost to it

But if you can write the code, using the API like you found is the fastest

trim juniper
#

kthanks

viscid otter
#

sure thing, let me know if you're still stuck!