#JohnM-AccountLink-Expiration
1 messages · Page 1 of 1 (latest)
Yes, see https://stripe.com/docs/api/account_links/object#account_link_object-expires_at, response object contains an expires_at field.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That tells me when it will expire... but is there a specific duration ? Obviously this is calculated as I am not asked it when I create the link. Or am I going to have to calculate this.
In practice it expires a few minutes after creation.
Quote from docs (https://stripe.com/docs/connect/connect-onboarding#refresh_url):
"The link is expired (a few minutes went by since the link was created)"
You will have to calculate it yourself, but in practice the AccountLinks are used in the following manner:
- Call the API and get the link
- Immediately redirect the user's browser to the link address
So expiring doesn't usually come into play.
hello! it is minutes, iirc 5 mins right now