#.stevenp
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) of the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
going to need a minute for this
req_QL0Y8nEpECDKvK
whats the correct way to structure the discount array?
Thanks for sharing. discounts is an object. To set the promotion code, it should be:
discounts: [{
promotion_code: '20OFF',
}]
ok, ive tried this but now its saying there's no code of that ID
this code definitely exists in my coupons table
Can you share the request ID (req_xxx)?
req_rbCgwioP2uARzw
Ah I see! CRAM20 is a coupon instead of promotion code. Can you change to:
discounts: [{
coupon: 'CRAM20',
}]
fantastic ty