Semantics of createdBeforeDate and createdAfterDate
Please explain the semantics of createdBeforeDate and
createdAfterDate as used in the API request:
https://cheddargetter.com/developers#all-customers
-
Do they only accept YYYY-MM-DD? Or are times allowed too (ISO8601?)?
-
Is the query interpreted as (>= createdAfterDate) and (<= createdBeforeDate)? If I provide the same date for each, it includes everything from that day, so that's what it seems like.
-
What TZ is being used?
-
If a user signed up on Monday and then changed plans on Friday, were they "created" Monday or Friday?
Thank you.
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
Support Staff 1 Posted by Marc Guyer on 08 Jun, 2010 02:03 PM
Oops. I could have sworn there was more detail in the docs. We've just added some (excerpt follows).
The API only accepts whole dates.
A customer's createdDatetime will never change. A customer's createdDatetime and the createdDatetime of the customer's first subscription will be the same moment. If the customer changes plans, there will be a new subscription record (with a new createdDatetime).
Marc Guyer closed this discussion on 08 Jun, 2010 02:03 PM.
Dan Kamins re-opened this discussion on 08 Jun, 2010 05:55 PM
2 Posted by Dan Kamins on 08 Jun, 2010 05:55 PM
Great, thank you for the clarification.
Related: Is there any way to query for customers who changed plans within a date range?
Support Staff 3 Posted by Marc Guyer on 08 Jun, 2010 06:02 PM
Hmm... No, there isn't.
Marc Guyer closed this discussion on 08 Jun, 2010 06:02 PM.