#alexv3689_code
1 messages · Page 1 of 1 (latest)
👋 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/1275798859918082108
📝 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.
- alexv3689_code, 3 minutes ago, 5 messages
- alexv3689_code, 1 hour ago, 7 messages
hi there!
I asked you a question earlier but you never replied.
you shared some code. is it working? do you get an error? if so what's the error?
this is a real time chat, so after some inactivity we close threads.
you shared some code. is it working? do you get an error? if so what's the error?
the error is: Received unknown parameter: meter
well a Price object doesn't have a meter property as you can see here: https://docs.stripe.com/api/prices/update so that's expected
it does have under recurring
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
❯ stripe get price_1PqCtGRqWxoSBLrN
{
"id": "price_1PqCtGRqWxoSBLrN",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1724240390,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": "growth_plan_metered_monthly",
"metadata": {},
"nickname": null,
"product": "prod_Qhbk35ZB",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"meter": "mtr_test_61QzZB23opvB7cDNS41RqWx",
"trial_period_days": 30,
"usage_type": "metered"
},
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 240,
"unit_amount_decimal": "240"
}%
we are talking about different things.
here you can see all parameters you can update on the price object: https://docs.stripe.com/api/prices/update
and there's no recurring or meter there.
this means you just can't update these properties. instead you would need to create a new Price object