---
schema_version: "1"
id: 6a41eb08af2249da340e0ed518b6d01bece28ab05fef304c9674a2bf9ac260a7
title: PostAuthorizationRequest(amount)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_commercepayments_PostAuthorizationRequest_ctor.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthorizationRequest_ctor.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1c8f8ba73c2c8df025bf1d0f939af4d7be74874146a7ddd39d2361fb8fb10d42
description: Constructor for building the amount in a postauthorization request. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.
---
# PostAuthorizationRequest(amount)

Constructor for building the amount in a postauthorization request. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

## Signature

global PostAuthorizationRequest(Double amount)

## Parameters

- **amount**:
    
    Type: [Double](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_double.htm#apex_methods_system_double "Contains methods for the Double primitive data type.")
    
    The amount of the authorization.