Skip to main content
Solved

Coupon ‘Assigned Date’ in API

  • August 13, 2024
  • 2 replies
  • 30 views

Forum|alt.badge.img

How do I get the ‘Assigned Date’ from the ‘/api/coupon-codes’ endpoint? I can see it when I export codes, but not seeing it at all in the API. We need it for reporting.

Best answer by c2323r234

Thanks for sharing the feedback with your product team. I ended up finding a workaround using the get events API endpoint and filtering based on the coupon assigned metric ID.

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

chloe.strange
Community Manager
Forum|alt.badge.img+42
  • Community Manager
  • 435 replies
  • August 20, 2024

Hi @c2323r234

Thanks for being a part of our community! Looking into this, it looks like it's the updated field - we assume the last updated timestamp to be when the coupon code was assigned. When it comes to locating this information - we do not expose the updated field on the API. With that said, if you create a custom report using the Coupon Assigned event instead, that should help to meet your goal. I have shared your feedback with the product team on this. I hope this helps!

~Chloe


Forum|alt.badge.img
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • August 20, 2024

Thanks for sharing the feedback with your product team. I ended up finding a workaround using the get events API endpoint and filtering based on the coupon assigned metric ID.