Skip to main content
Authorize.Net · Transaction Response Reason Code

Authorize.Net Transaction Response Reason Code 7: Invalid Expiration Date

The credit card expiration date is invalid or formatted incorrectly.

What it means

Authorize.Net Transaction Response Reason Code 7 indicates that the credit card expiration date submitted with the transaction is either invalid or formatted incorrectly. This is a gateway-level data validation failure, rather than a decline from the card issuer. It means the gateway rejected the request before attempting authorization because the expiry data did not match the expected structure.

Classification & retryability

hardtechnicalRetryable: no

Common causes

  • The expiration date was submitted in the wrong format, such as including slashes or other separators.
  • The month value was sent as a single digit (e.g., '7') instead of a zero-padded string (e.g., '07').
  • The expiration year was submitted with the wrong character length.
  • The customer entered an inherently invalid month or year on the checkout form.

How to resolve it

To resolve Reason Code 7, the application must intercept the error and prevent automated retries using the same malformed payload. Inspect the payment request payload to ensure the expiration date string exactly matches Authorize.Net's expected format. Reformat the submitted value to the gateway's expected structure (typically MMYY or MMYYYY without spaces or separators) before generating a new transaction request.

For merchants

Implement strict front-end validation on your checkout forms to enforce zero-padded months and correct year lengths. Strip out any separators (like slashes or dashes) from the expiration date string before submitting the payload to the API. Do not configure automated retry logic for this code, as it will continue to fail until the data format is corrected.

For customers

Review the expiration date entered on the checkout form, ensuring a valid two-digit month and correct year are provided, and attempt the payment again.

Sources