#riptired

1 messages · Page 1 of 1 (latest)

heavy ridgeBOT
pallid escarp
#

Can you share your latest request ID and curl command?

hard spear
#

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"', "''),
)
pallid escarp
#

Checking it now

hard spear
#

thanks

pallid escarp
#

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"
hard spear
#

trying this

#

perfect

#

this works, thanks river!