# cartUrl lifecycle

**URL:** <https://community.shopify.com/t/carturl-lifecycle/369592>\
**Category:** Shopify Apps\
**Tags:** shopify-apps\
**Created:** [October 28, 2024, 11:46am UTC](https://community.shopify.com/t/carturl-lifecycle/369592 "2024-10-28T11:46:55Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

Main issue: clarifying how long a Shopify cartUrl remains valid and how various expirations affect saving and later accessing a cart.

Key questions:
- How long until a cart becomes invalid? Is there a way to detect when a cartUrl is stale?
- Can the same cartUrl be refreshed, or must a new link be generated?
- What do these durations mean in practice: Checkout token expiration (1 hour), Abandoned checkout retention (up to 3 months), Cart expiration (10 days)?

Context: The poster is building a custom Shopify store flow centered on cartUrl creation and wants to store the link to revisit the cart later.

Concerns: Whether these expirations will affect cart functionality when returning via a saved cartUrl, and how to handle potential staleness.

Status: No answers or decisions yet; the thread is open with unresolved questions about lifecycle behavior, staleness checks, and refresh strategies.

<div class="post-metadata">

**Author:** ![madfcat](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@madfcat](https://community.shopify.com/u/madfcat)\
**Post date:** [October 28, 2024, 11:46am UTC](https://community.shopify.com/t/carturl-lifecycle/369592/1 "2024-10-28T11:46:55Z")

</div>

I am building a custom Shopify store based on the cartUrl creation. How long does it take for carti to to become invalid?

is there any way to check if cartUrl becomes stale? Can I refresh the same link?

Can you explain this:

Checkout token expiration 1 hour

Abandoned checkout retention Up to 3 months

Cart expiration 10 days

How can it affect my flow with cartUrl creation if I am saving a link to access the cart later. Will it somehow affect the cart functionality?
