#nemoai_api

1 messages ¡ Page 1 of 1 (latest)

paper glacierBOT
#

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

📝 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.

gritty vapor
#

You'd pass the price_xxx ID here, not the prod_xxx ID

frank charm
#

If I pass price_xxx I will get the coupon textbox too in the UI?

#

I'm getting:
{
"detail": "Request req_zkOE6oAiuL49kn: No such price: 'price_1QUU1QE79D92Qyhe6LJllPr1'; a similar object exists in live mode, but a test mode key was used to make this request."
}

gritty vapor
#

The error seems self explanatory right?

frank charm
#

Not exactly, I'm reading it few times..

#

I want to run it in testmode, before moving it too production.

gritty vapor
#

Your API request used your test keys, but the object (price_1QUU1QE79D92Qyhe6LJllPr1) exists in live mode

#

You need to create the products/prices in test mode

frank charm
#

how in the api I control switch from test mode to live mode and viceversa?

gritty vapor
#

It's determined by the API keys used to make the request (sk_live_abc, sk_test_xyz) in your code

frank charm
#

Got it!