---
schema_version: "1"
id: 42f48be776ff7a70729ed8bd07f49a60678cab7345537e41382095f083f4f61b
title: PostAuthorizationRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercepayments_PostAuthorizationRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_PostAuthorizationRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 53c3b06729df84d33ad184c6a0454b8e0b859ef2fb06354db34961915d1a2c56
description: Sends information about a postauthorization request to a gateway adapter during a service call.
---
# PostAuthorizationRequest Class

Sends information about a postauthorization request to a gateway adapter during a service call.

## Namespace

[CommercePayments](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_commercepayments.htm "Use the CommercePayments namespace to provide a safe and customizable platform for managing customer payments and refunds.")

## Usage

This class extends [BaseRequest](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_class_commercepayments_BaseRequest.htm) and contains information about a transaction postauthorization request. The gateway adapter reads fields from this class to validate the client-side transaction with the payment gateway. An object of this class is available by calling getPaymentRequest() in the [PaymentGatewayContext Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercepayments_PaymentGatewayContext.htm#apex_class_commerce_payments_PaymentGatewayContext "Wraps the information related to a payment request.")).

 ((commercepayments.PostAuthorizationRequest)gatewayContext.getPaymentRequest());

- **[PostAuthorizationRequest Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthorizationRequest_constructors.htm)**  
    Lists the constructors for postauthorization requests.
- **[PostAuthorizationRequest Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthorizationRequest_properties.htm)**  
    Lists properties for a postauthorizaiton request.