# Payment ID as card source - 'source has expired'

**URL:** <https://developer.squareup.com/forums/t/payment-id-as-card-source-source-has-expired/23403>\
**Category:** Questions\
**Tags:** cards-api\
**Created:** [July 28, 2025, 7:30pm UTC](https://developer.squareup.com/forums/t/payment-id-as-card-source-source-has-expired/23403 "2025-07-28T19:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NemoNoman](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@NemoNoman](https://developer.squareup.com/forums/u/NemoNoman)\
**Post date:** [July 28, 2025, 7:30pm UTC](https://developer.squareup.com/forums/t/payment-id-as-card-source-source-has-expired/23403/1 "2025-07-28T19:30:52Z")

</div>

Tried to create a card using a payment\_id as a source. Errow said ‘source had expired’ – NO PROBLEM – payment was several days old and I trying to do this manually.

BUT how long before a payment id expires?

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [July 28, 2025, 7:31pm UTC](https://developer.squareup.com/forums/t/payment-id-as-card-source-source-has-expired/23403/2 "2025-07-28T19:31:02Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Create a Card on File from a Payment ID](https://developer.squareup.com/docs/cards-api/walkthrough/card-from-payment-id)**
>
> Learn how to create a new card on file in a Square account using a payment ID as a source.

> **[Charge a Card on File](https://developer.squareup.com/docs/reader-sdk/cookbook/charge-cards-on-file)**
>
> Create a seamless purchase experience for returning customers and enable recurring payments.

> **Additional Documentation**
>
> [Use a Gift Card (Orders and Payments Integration)](https://developer.squareup.com/docs/gift-cards/walkthrough-2-orders-and-payments-integration)  
> [Cards API Guide: Manage Card on File Declines | Square](https://developer.squareup.com/docs/cards-api/manage-card-on-file-declines)  
> [Card Payments](https://developer.squareup.com/docs/payments-api/take-payments/card-payments)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [July 28, 2025, 8:06pm UTC](https://developer.squareup.com/forums/t/payment-id-as-card-source-source-has-expired/23403/3 "2025-07-28T20:06:20Z")

</div>

I believe that a `payment_id` is valid for saving a card on file for 24 hours from the time of the payment. 🙂
