#thekents
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- thekents, 12 hours ago, 26 messages
You can use https://stripe.com/docs/cli/post command to update the field.
or how to udate <currency>.minimum_amount amount
okay, ill try
Can I use Stripe Shell in live mode? using --live parameter gave me an error "Wrong number of arguments passed. Expected arguments: promotion_code"
stripe promotion_codes update promo_xxx -d restrictions[currency_options][eur][minimum_amount]=100
This is an example for updating a promo code
"No such promotion code: 'promo_1OEydtC8VwQdnO07tufzefDA'; a similar object exists in live mode, but a test mode key was used to make this request."
You need to use your live key
stripe promotion_codes --api-key sk_live_xxx update promo_xxx -d restrictions[currency_options][eur][minimum_amount]=100
You are specifying a currency option that matches the top-level currency for this promotion code. Please remove this currency option and it will be added automatically on creation.
I edited the command
I cant paste it because discord blocks it
but i got this now "stripe promotion_codes update requires exactly 1 positional argument. See stripe promotion_codes update --help for supported flags and usage"
What's your command? please exclude your private api key
stripe promotion_codes --api-key xxx update promo_xxx
-d "restrictions[minimum_amount]"=1900
using this gives ""You are specifying a currency option that matches the top-level currency for this promotion code. Please remove this currency option and it will be added automatically on creation.""
I got the syntax from stripe api docs
No, you can't update the minimum_account, see https://stripe.com/docs/api/promotion_codes/update?lang=php#update_promotion_code-restrictions for the list of params for update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it's different
you can update restrictions[currency_options][CURRENCY][minimum_amount], but not restrictions[currency_options][minimum_amount]
could i update this if it should up like that in dashboard
generated codes were ran with
So you want to set a minium amount for eur?
I only have EUR possible to pay with
Use -d restrictions[currency_options][eur][minimum_amount]=100
stripe promotion_codes update requires exactly 1 positional argument. See stripe promotion_codes update --help for supported flags and usage
stripe.exe promotion_codes update promo_xxx --api-key xxx
-d "restrictions[currency_options][eur][minimum_amount]"=1900
stripe promotion_codes --api-key sk_live_xxx update promo_xxx -d restrictions[currency_options][eur][minimum_amount]=100
stripe promotion_codes --api-key xxx update promo_xxx
-d restrictions[currency_options][eur][minimum_amount]=1900
You are specifying a currency option that matches the top-level currency for this promotion code. Please remove this currency option and it will be added automatically on creation.
So does this mean minimum_amount is not under currency_options
but top level restrictions[minimum_amount]
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
hmm, what a strange API. I guess it's not possible to update this top level minimum_amount and you're intended to create a new PromoCode object instead, basically. Don't see how else it would work.