#TCURT15-quote-discounts
1 messages · Page 1 of 1 (latest)
How exactly do you attach a promo code to a quote? Can you provide an example to me?
I'm not exactly sure what an "array of hashes" means. I've tried an associative array e.g. 'discounts' => ['coupon' => 'promo_code...']
If you look at line_items it's the same datatype. So you can reference how that is structured in the code snippet to determine how to structure discounts. (Looks like you may need another set of square brackets around what you currently have)
Ah. Thanks for your help!