#yur_api

1 messages ยท Page 1 of 1 (latest)

scarlet muralBOT
#

๐Ÿ‘‹ 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/1240620675711111208

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tall island
#

hi! do you have an example of a product ID prod_xxx that you expect to find, and the code for the API call you're making?

thorn mango
#

products with red x created in dashboard not appear in api call to retrieve all products

tall island
#

do you have an example of a product ID prod_xxx that you expect to find

#

and the code for the API call you're making?

thorn mango
#

prod_Q4IaKW3RVjTqgP

#

import stripe from 'stripe'; // node.js
let Stripe = new stripe(STRIPE.secretKey, {});
const { data: products } = await Stripe.products.list({
limit: 100,
active: true,
});

tall island
#

I'm looking at your API calls and I don't see you ever calling the product list endpoint API in livemode on that account that owns that product. Maybe you have the API keys mixed up?

thorn mango
tall island
#

yeah that is a different Stripe account.

#

you have two different Stripe accounts, prod_Q4IaKW3RVjTqgP is on one of them, but that API call you're making with the API keys of the other account, so it's not returned, naturally.