#.stevenp

1 messages · Page 1 of 1 (latest)

round slateBOT
warm elk
barren berry
#

going to need a minute for this

#

req_QL0Y8nEpECDKvK

#

whats the correct way to structure the discount array?

warm elk
#

Thanks for sharing. discounts is an object. To set the promotion code, it should be:

discounts: [{
  promotion_code: '20OFF',
}]
barren berry
#

ok, ive tried this but now its saying there's no code of that ID

#

this code definitely exists in my coupons table

warm elk
#

Can you share the request ID (req_xxx)?

barren berry
#

req_rbCgwioP2uARzw

warm elk
#

Ah I see! CRAM20 is a coupon instead of promotion code. Can you change to:

discounts: [{
  coupon: 'CRAM20',
}]
barren berry
#

fantastic ty