How do I grab the Previous Plan's Item Included Qty in a Subscription Change Hook?
I'm fine grabbing it from the Subscription Billable hook BUT when a customer changes plans I'm able to grab the Item Quantity no problem but the Item Included Quantity is now for the New Plan. Is there a way to grab the Previous Plan's Item Included Quantity OR What the Previous Plan even was in a Subscription Change Hook?
Thanks!
Dana

#1 Posted by Marc Guyer Support staff on 18 Mar, 2013 12:43 PM
Hi Dana --
That information isn't in the hook data. You can use the hook information (customer code) to pull the full API response for the customer which contains the subscription history. We could (and probably should) add it to the hook data. That wouldn't be too difficult.
#2 Posted by Marc Guyer Support staff on 18 Mar, 2013 02:13 PM
Hi again --
We went ahead and added the previous subscription info to the subscriptionChanged hook. That's documented here:
http://support.cheddargetter.com/kb/operational-how-tos/web-hooks-s...
Please let us know how that works out for you.
#3 Posted by dana.mcdonald on 18 Mar, 2013 05:40 PM
Perfect... that should definitely do it.
I'll check it out and thanks for the quick response
Dana
#4 Posted by Marc Guyer Support staff on 18 Mar, 2013 06:24 PM
Ok, I'll go ahead and close this thread. Just comment to reopen it.
Jess Pendley closed this discussion on 21 Nov, 2013 07:36 PM.