florent
asked this on February 01, 2011 12:33 pm
Hello,
My application has 2 products, Perso and Pro, which cost
$0/month each.
Then, users can add quantity components, which cost, say, $5 if
user has Perso product and $10 if user has Pro product. So, I've
setup 2 quantity components.
Say a Perso user has (2 x $5) components. When he upgrades to
pro, I need to:
* update the subscription's product (1 PUT request) * set the $5
components' quantity to 0 (1 PUT request) * set the $10 components'
quantity to 2 (1 PUT request)
I wonder if there is a way to update all these information in 1
request.
I saw the component allocation at the subscription's creation
(http://docs.chargify.com/api-quantity-allocations),
which I implemented successfully, and tried to do the same thing
when updating the subscription, but I totally failed (I keep
getting 500 errors from Chargify).
I know what I'm trying to achieve isn't documented, but is
there, by chance, any way to do this? If not, is it something you
plan to do?
I'd like to do that not only to reduce the requests count, but also
in order to save user time AND to reduce the error/timeout/...
probability.
Thanks!
Florent.
Comments
Hello Florent,
Thank you for contacting Chargify.
I do not think that this is possible at the moment but am flagging your question to a developer for confirmation. I appreciate your patience as they review the issue.
Regards,
Am also wondering if this is possible yet? Ideally I would like to be able to update the component quantity_allocation for any/all components during a subscription update. Similar to how you can update the credit_card_attributes by passing parameters for component_attributes. It looks like you can add the components through a 'components' parameter during subscription creation, but it doesn't look like updating components this way is supported. Or is it?