The deal gets created in the pending stage but after a few minutes it automatically gets moved to the Abandon stage. In the documentations ir reads Note: When using the Ecommerce Bridge API, deals that go into the pending state are automatically moved to abandoned 24 hours later.
How does it determine the 24 hours. or does our app have a different setting other than 24 hours
The 24 hour period appears to be calculated based on the "changeOccurredTimestamp" value.
You passed "changeOccurredTimestamp": 1552057447, which is 18 January 1970at 18:07 (UTC-5:00), since it is not a properly-formatted millisecond timestamp. Per this article, HubSpot uses UNIX millisecond timestamps. Since 18 January 1970 is more than 24 hours old, HubSpot immediately moved the deal tocheckout_abandoned.
To make1552057447 into a millsecond timestamp, add 000 to the end to make1552057447000. This timestamp refers to 8 March 2019 at 10:04 (UTC-5:00).
I would expect the 24 hours to be calculated from the object's createdate.
I'd like to investigate the deals exhibiting this behavior, though. Could you share some links to deals which moved to checkout_abandoned within minutes?
The 24 hour period appears to be calculated based on the "changeOccurredTimestamp" value.
You passed "changeOccurredTimestamp": 1552057447, which is 18 January 1970at 18:07 (UTC-5:00), since it is not a properly-formatted millisecond timestamp. Per this article, HubSpot uses UNIX millisecond timestamps. Since 18 January 1970 is more than 24 hours old, HubSpot immediately moved the deal tocheckout_abandoned.
To make1552057447 into a millsecond timestamp, add 000 to the end to make1552057447000. This timestamp refers to 8 March 2019 at 10:04 (UTC-5:00).