The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Coupon Code in Datafeed

jaushmanjaushman Member
in Bugs & Feature Requests edited March 2011
I've noticed that discount codes are not being sent in the XMl from the API. Our client is implementing some new accounting software and needs those codes for reporting.

We are on store version 0.7.0. Doing some digging and it looks like those stopped coming when we upgraded our store version. That's a guess on my end but it all happened around that same time.

Here is a sample of the discounts XML returned by the API for a recent transaction that used a coupon. As you can see...the code parameter is empty when it should show the coupon code:
          <name><![CDATA[coupon testcode-123]]></name>
  • lukeluke FoxyCart Team
    Hey jaushman, thanks for posting. We'll take a look and let you know what we find.
  • lukeluke FoxyCart Team
    Yeah, sure enough, it was broken. All the way back, actually. We just rolled out a fix for versions 051, 060, 070 and 071 so it should be working correctly now.
  • Should this XML also be including the values for these two:

    Here's a sample of what the datafeed in FC2.0 returns:

    I assume those two should return what is seen on the admin section on the Foxycart website when creating coupons? Anything I should different to get those values?
  • I looked at XML I saved from a datafeed using a FC1.1 and coupon_discount_type and coupon_discount_details were being fed correctly.


    Am I doing something incorrect if I don't see it in my datafeeds now or was this broken in 2.0? If it's broken, any ETA on when this could be fixed?

  • fc_adamfc_adam FoxyCart Team

    It should definitely be displaying that information. We'll look into that on our side and get back to you as soon as we can.
Sign In or Register to comment.