#morepow - Roles
1 messages ยท Page 1 of 1 (latest)
It sounds like you're using a test mode key to make the Coupons.
Are you sure the live key you're using belongs to the account you're logged in to in the Dashboard?
let me double check
You can use the key to make a GET /v1/accounts request and see the account ID and other details for the account it belongs to.
yea, one sec
seems to be coming back fine
I'm not the account owner, I was just assigned a 'developer' role
You should be able to create a Coupon with the live secret key and view it in the Dashboard. Can you give me the request ID showing the coupon creation? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
#<Stripe::Coupon:0xbb8 id=MEiEnDmO> JSON: {
"id": "MEiEnDmO",
"object": "coupon",
"amount_off": null,
"created": 1634679659,
"currency": null,
"duration": "once",
"duration_in_months": null,
"livemode": false,
"max_redemptions": 100000,
"metadata": {},
"name": "NFTTaxGuideCouponLive",
"percent_off": 100,
"percent_off_precise": 100.0,
"redeem_by": null,
"times_redeemed": 0,
"valid": true
}
Sorry, I need the request ID, which starts with req_
hm is there a way to get that from the Ruby client?
Yep, see here: https://stripe.com/docs/api/request_ids?lang=ruby
Let me have a look...
ty
So this is a test mode request made with a test mode key, but I thought you were having issues with a live mode request?