#TCURT15-quote-discounts

1 messages · Page 1 of 1 (latest)

wary flare
#

Hi there 👋 can you clarify what your question is?

robust coyote
#

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...']

wary flare
#

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)

robust coyote
#

Ah. Thanks for your help!