#thekents

1 messages · Page 1 of 1 (latest)

sick muralBOT
#

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.

nova quartz
solid saddle
#

or how to udate <currency>.minimum_amount amount

solid saddle
#

Can I use Stripe Shell in live mode? using --live parameter gave me an error "Wrong number of arguments passed. Expected arguments: promotion_code"

nova quartz
#

stripe promotion_codes update promo_xxx -d restrictions[currency_options][eur][minimum_amount]=100
This is an example for updating a promo code

solid saddle
#

"No such promotion code: 'promo_1OEydtC8VwQdnO07tufzefDA'; a similar object exists in live mode, but a test mode key was used to make this request."

nova quartz
#

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

solid saddle
#

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"

nova quartz
#

What's your command? please exclude your private api key

solid saddle
#

stripe promotion_codes --api-key xxx update promo_xxx
-d "restrictions[minimum_amount]"=1900

solid saddle
#

I got the syntax from stripe api docs

nova quartz
solid saddle
#

or is currency minimum_amount different to this

nova quartz
#

it's different

#

you can update restrictions[currency_options][CURRENCY][minimum_amount], but not restrictions[currency_options][minimum_amount]

solid saddle
#

could i update this if it should up like that in dashboard

#

generated codes were ran with

nova quartz
#

So you want to set a minium amount for eur?

solid saddle
#

I only have EUR possible to pay with

nova quartz
#

Use -d restrictions[currency_options][eur][minimum_amount]=100

solid saddle
#

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

nova quartz
#

stripe promotion_codes --api-key sk_live_xxx update promo_xxx -d restrictions[currency_options][eur][minimum_amount]=100

solid saddle
#

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]

sick muralBOT
solid saddle
trim pebble
#

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.