Forums/Community/Community Support

Answered

Transaction API : Product ID

Jon
asked this on May 03, 2011 02:51 am

I'm working with the transaction API, and it appears as though the Product ID field is always the same (current product) regardless of what it was at the time that the transaction occurred. Is this intended functionality? If so, how can I look back at the different products my customers have been subscribed to over time?

 

Comments

User photo
Jay G
Chargify Support

Hello Jon,

Thanks for contacting Chargify.

I am forwarding your question to our technical sales team for their review.

Regards,

Jay G.

May 03, 2011 12:02 pm
User photo
Lance Walley
Chargify

Hi Jon,

I think it is as you say... always current product ID, no history of past products (assuming there were changes, like upgrades, along the way).

But I'll tag this for Level 2 support to see if they have any comment.

Thanks.

--- Lance

May 06, 2011 01:26 pm
User photo
Kori Francis
Chargify
Ajax_loader_small Answer

Jon,

I believe Lance is right, transactions are associated to a subscription and that subscription is subscribed to a product. When you call the transaction API method, it's just returning the current subscription details.

If you want historical record, you'll likely have to track it yourself (you could use webhooks payment_success event, and check if the product is the same as the last recorded one. If not, then it's been changed - and record the new value)

-- Kori

May 08, 2011 09:40 am
User photo
Joel Meador

Passing the buck on recording historic data kind of sucks for API consumers.

 

Everything else that is part of the transaction payload is recorded as it existed at the time of the transaction, so it makes no sense for the product_id to be live. You should change the way product_id works, or add a new field that actually records the historic product_id information.

September 15, 2011 04:07 pm
User photo
Michael Klett
Chargify Support

Joel - your timing is great.  We will be doing this, starting very soon.  This will include a reconstruction of product history in the account transactions, as best we can given the data we have (which should be accurate going back over a year)

September 19, 2011 09:40 am
User photo
Joel Meador

Thanks for the update, Michael.

September 21, 2011 03:46 pm
User photo
Matt Gordon

Hey Michael,

Any bump on this?

November 16, 2011 12:47 pm