#riptired

1 messages · Page 1 of 1 (latest)

timid crowBOT
echo plover
thin wolf
#

req_ppKkYNDSgYcdud

#

Yeah this is an example

#

i can share an example curl

echo plover
#

OK, your request should be something like

restrictions: {
minimum_amount: 1000,
minimum_amount_currency: "USD"
}

thin wolf
#
data = {
    'coupon': 'TkIoaBXX',
    'customer' : 'CUSTOMERCODE',
    'max_redemptions': '1',
    'restrictions': {
        "minimum_amount": 10000,
        "minimum_amount_currency": "USD",
    },
}

response = requests.post(
    'https://api.stripe.com/v1/promotion_codes',
    data=data,
    auth=('APIKEY', ''),
)
#

still doesn't work

#

this is my cURL

echo plover
#

Request ID?

thin wolf
#

req_05WZl7L3yxEX13

echo plover
#

It's the same request, did you save the file?

thin wolf
#

I changed the params

#

hmm I am running this in a notebook so maybe the same request is being sent? not sure why that would be the case

#

but the snippet I showed above is correct right?