---
schema_version: "1"
id: c1f0bb91e650d728c1b030694001ea5688276803c5966c4c2bdbdb8db3cd5152
title: setAuthorizationExpirationDate(authExpDate)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_commercepay_PostAuthResp_setAuthExpirationDate.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepay_PostAuthResp_setAuthExpirationDate.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bdea3a77923b77493c5ddb937dd0ec4f1bae39c29bfe02cc02b2387a657f316d
description: Sets the expiration date of the authorization request.
---
# setAuthorizationExpirationDate(authExpDate)

Sets the expiration date of the authorization request.

## Signature

global void setAuthorizationExpirationDate(Datetime authExpDate)

## Parameters

- **authExpDate**:
    
    Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")

## Return Value

Type: void