Which subscription is active?

alex's Avatar

alex

08 Dec, 2010 11:17 PM

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

  1. Support Staff 1 Posted by Marc Guyer on 09 Dec, 2010 01:52 PM

    Marc Guyer's Avatar

    Hi Alex - The latest subscription record is the active one. It'll be the first one in the xml.

  2. 2 Posted by alex on 09 Dec, 2010 05:57 PM

    alex's Avatar

    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. Support Staff 3 Posted by Marc Guyer on 09 Dec, 2010 08:27 PM

    Marc Guyer's Avatar

    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. 4 Posted by alex on 09 Dec, 2010 08:39 PM

    alex's Avatar

    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. Support Staff 5 Posted by Marc Guyer on 09 Dec, 2010 09:08 PM

    Marc Guyer's Avatar

    Auto-cancellation occurs:

    • when a customer's bill becomes due but their card is expired
    • if the customer's card is declined after 5 retries over 10 days.
  6. 6 Posted by alex on 09 Dec, 2010 09:09 PM

    alex's Avatar

    Thanks.

  7. alex closed this discussion on 09 Dec, 2010 09:09 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM