Pending_expires_at limited to 3 days?

Hi Shopify Team,

I recently noticed an error when setting pending a payment session:

Error on field/s: [id] with message: ‘Argument pending_expires_at can’t be a time more than 3 days in the future.’

In the past, I was able to set pending_expires_at further in the future, but now it seems to be restricted to a maximum of 3 days.

  • Has this behavior changed recently?

  • Is this a new limitation in the Payments Apps API?

  • Is there any way to extend pending_expires_at beyond 3 days?

Thanks in advance for any clarification. :raising_hands:

1 Like

Hey @tamara_cc - thanks for flagging this. I don’t see any announcements or changelogs on our end for this behaviour changing. I do know that in our docs, we reccommend no more than 3 days for the pending state, but I do believe we had allowed expiry dates further in the future than that as well:

Would you be open to sharing an x-request-id from the API Response headers we send out for an example response where you say this error pop up? Using that I can pull the call in our logs and dig into this further for you :slight_smile:

1 Like

Hi Alan,

Thanks for your response. Here’s the x-request-id:

  • x-request-id: 6abfbd1a-3bad-462d-91dd-6854f7be7f87-1756904131

Just to give more context:

  • Until recently, we were able to set pending_expires_at values further than 3 days in the future without any issue.

  • I couldn’t find any changelog or announcement mentioning that this behavior was changed.

Thanks a lot for your support :folded_hands:

Hey @tamara_cc - thanks for sending this my way. I was able to pull some logs on my end here, confirming the error message you’re seeing. I’ve reached out to some folks internally to investigate further and I’ll loop back with you here once I have more info to share.

1 Like

Thanks a lot for confirming and for checking the logs on your side. Really appreciate you reaching out internally — I’ll wait for your update.:raising_hands:

Hey @tamara_cc , just following up here. I spoke with our payment platform team on your behalf and they let me know that the session pending limit is intended to have always been three days and nothing on our end has recently changed regarding the pending_expires_at input. Just wanted to confirm that.

That said, since you mentioned it did seem possible to set this for longer than 3 days (and I had thought it was too), I’m definitely happy to continue looking into this with you for sure. If you have a payment session GID on had where it was able to be set for pending longer than 3 days, if you can share that, I can see if we’re able to take a closer look into this.

Hope this helps, just wanted to reach back out and confirm expected behaviour on our end, let me know if I can clarify anything! :slight_smile:

1 Like

Thank you very much!:raising_hands: I’ve been looking for an ID to work with, but I couldn’t find any recent one to share.

Still, I think it would be helpful if the documentation could also mention the maximum of 3 days, not just the recommended value :folded_hands:

No worries, hope I was able to help a little bit @tamara_cc ! I definitely agree with you that it would be useful to confirm that completely in the docs. I’ll go ahead and forward this up to our documentation team to see if we can get those changes done and loop back with you once they are made

Hey @tamara_cc, I ran into the same issue, and Shopify Support was able to increase the expiry limit to 10 days for me. This adjustment needs to be made individually for each app on their end, and the maximum limit you can request is 30 days.

Hope this helps. :slight_smile: