I am currently working on integrating the Authorize.Net payment gateway, and I have a question regarding pre-authorized transactions. Specifically, I would like to understand how to retrieve the expiry date for a pre-authorized transaction.
I am aware that authorization holds are typically valid for a set period, but I would like to confirm the following:
Does Authorize.Net provide a specific expiration date for pre-authorized transactions via the API? If not, how can I determine when a pre-authorization will expire or is no longer valid? Is there an API endpoint or field that provides information about the authorization hold period or expiration for a pre-authorized transaction?
Is there any workaround for this?
No, there is no API endpoint for this as that information is not provided to Authorize.NET for them to pass through to you. Additionally, pre-authorizations can expire at different times depending on the issuer and situation:
Unless you are in the hotel booking for car rental industries, you should assume a pre-auth has expired after 5 days. If you don't mind incurring a small transaction fee, you can always attempt to use that pre-auth for a purchase. But if it is declined you'll need to get a new form of payment to complete the transaction.