#riptired
1 messages · Page 1 of 1 (latest)
Is this the thread you're referring to? https://discord.com/channels/841573134531821608/1101313161694552084
Can you share your latest request ID and curl command?
req_W6VWFdZgWI7v15
data = {
'coupon': 'couponcode,
'customer' : 'cus_id',
'max_redemptions': '1',
'restrictions': {
"minimum_amount": 10000,
"minimum_amount_currency": 'USD',
},
}
response = requests.post(
'https://api.stripe.com/v1/promotion_codes',
data = data,
auth=('TESTKEY"', "''),
)
Checking it now
thanks
The curl command should look like this:
curl https://api.stripe.com/v1/promotion_codes \
-u sk_test_xxx: \
-d coupon=dxzwIjmy \
-d customer="cus_xxx" \
-d max_redemptions=1 \
-d "restrictions[minimum_amount]"=10000 \
-d "restrictions[minimum_amount_currency]"="USD"