

# Capture

A capture of funds for a payment intent. `CapturePaymentIntent` creates a capture, and so does `AuthorizePaymentIntent` for the `INSTANT` capture strategy.

## Contents
<a name="API_Capture_Contents"></a>

 ** captureAmount **   <a name="BedrockAgentCore-Type-Capture-captureAmount"></a>
The amount captured.  
Type: [PaymentIntentAmount](API_PaymentIntentAmount.md) object  
Required: Yes

 ** captureId **   <a name="BedrockAgentCore-Type-Capture-captureId"></a>
The ID of the capture.  
Type: String  
Length Constraints: Fixed length of 23.  
Pattern: `capture-[0-9a-zA-Z-]{15}`   
Required: Yes

 ** createdAt **   <a name="BedrockAgentCore-Type-Capture-createdAt"></a>
The time when the capture was created.  
Type: Timestamp  
Required: Yes

 ** status **   <a name="BedrockAgentCore-Type-Capture-status"></a>
The status of the capture. Valid values:  
+  `CAPTURE_PENDING` - The payment provider accepted the capture but hasn't confirmed it yet, for example a PayPal capture with the status `PENDING` or an Amazon Pay capture with the status `Pending`. A pending capture isn't counted in the payment intent's `capturedAmount` until it settles.
+  `CAPTURED` - The funds were captured.
+  `FAILED` - The capture failed.
Type: String  
Valid Values: `CAPTURE_PENDING | CAPTURED | FAILED`   
Required: Yes

 ** updatedAt **   <a name="BedrockAgentCore-Type-Capture-updatedAt"></a>
The time when the capture was last updated.  
Type: Timestamp  
Required: Yes

 ** partnerCaptureReference **   <a name="BedrockAgentCore-Type-Capture-partnerCaptureReference"></a>
The payment provider's reference for the capture, such as the Stripe PaymentIntent or charge ID, or the PayPal or Amazon Pay capture ID.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 512.  
Required: No

## See Also
<a name="API_Capture_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-2024-02-28/Capture) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-2024-02-28/Capture) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-2024-02-28/Capture) 