#Idb-checkout-promo

1 messages ยท Page 1 of 1 (latest)

thorny zinc
#

Hello ๐Ÿ‘‹
You can find the amount_discount on Session object to see if a promo was applied to a checkout session

pure field
#

Thanks! Is there no way to attribute the actual promo code itself? e.g. we have a few different promo codes handed out to different influencers for marketing, and we want to be able to attribute codes to each specific influencer.

thorny zinc
#

Ah so it looks session object has an associated discount object that you can look at which has promotion_code on it

pure field
#

ooo ok i spent forever looking at docs, can u link?

#

oh awesome

thorny zinc
#

so you'd have basically dig deeper into total_details.breakdown

pure field
#

thanks a ton this looks like exactly what i needed

thorny zinc
#

Great! Happy to help ๐Ÿ™‚

pure field
#

can we leave this thread open? im going to make sure that i'm able to grab the value but sometimes I have follow up questions.