Presumably, a customer can't have more than one currently active subscription. The API provides a list of subscriptions with the customer record. How do I know which is the active one?
Thanks!
Alex

Presumably, a customer can't have more than one currently active subscription. The API provides a list of subscriptions with the customer record. How do I know which is the active one?
Thanks!
Alex
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
#1 Posted by Marc Guyer Support staff on 09 Dec, 2010 01:52 PM
Hi Alex - The latest subscription record is the active one. It'll be the first one in the xml.
#2 Posted by alex on 09 Dec, 2010 05:57 PM
Thanks, Marc.
One small issue that made this confusing was that all the subscriptions have a null value for the "canceled_datetime" attribute. I expected all but the first subscription to have a value for that attribute, indicating the time that the plan was changed. Or maybe that attribute has a different meaning?
Thanks again.
Alex
#3 Posted by Marc Guyer Support staff on 09 Dec, 2010 08:27 PM
canceledDatetime is only relevant to the current subscription record. If you'd like to know when the plan was changed, you can reference the createdDatetime of the new subscription record.
#4 Posted by alex on 09 Dec, 2010 08:39 PM
I see. The canceledDatetime refers only to the explicit cancellation action. By the way, is there some documentation about how CheddarGetter handles automatic cancellation? What circumstances will cause a cancellation? For situations where a transaction errors occurs, how many retries will CheddarGetter make, over what time period before it decides the account needs to be cancelled?
Thanks.
#5 Posted by Marc Guyer Support staff on 09 Dec, 2010 09:08 PM
Auto-cancellation occurs:
#6 Posted by alex on 09 Dec, 2010 09:09 PM
Thanks.
alex closed this discussion on 09 Dec, 2010 09:09 PM.