Skip to main content
Contributor I
August 13, 2024
Solved

Coupon ‘Assigned Date’ in API

  • August 13, 2024
  • 2 replies
  • 117 views

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.

    This topic has been closed for replies.
    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.

    2 replies

    chloe.strange
    Community Manager
    Community Manager
    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

    c2323r234AuthorAnswer
    Contributor I
    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.