Captures authorized funds. The session must have a positive capturable balance and the captureExpiresAt deadline must not have passed.
This is an asynchronous operation. The capture is returned in pending status and transitions to succeeded or failed.
Multiple partial captures are allowed. If amount is omitted, the full remaining capturable amount is captured.
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.
1 - 128The unique identifier of the payment session.
The ID of the payment session, a UUID prefixed by paymentSession_.
^paymentSession_[a-f0-9\-]{36}$"paymentSession_82c879c1-84e1-44ed-a8c2-1ac239cf09ad"
A request to create a capture for a payment session.
A decimal representation of the amount to capture, denominated in the session's asset. If omitted, the full remaining capturable amount is captured.
"1.00"
Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
{
"customer_id": "cust_12345",
"order_reference": "order-67890"
}Successfully created capture.
A collection of authorized funds. Multiple partial captures are allowed up to the authorized amount. Each capture settles funds to the merchant's target.
The unique identifier of the capture.
^capture_[a-f0-9\-]{36}$"capture_82c879c1-84e1-44ed-a8c2-1ac239cf09ad"
The ID of the payment session this capture belongs to.
^paymentSession_[a-f0-9\-]{36}$"paymentSession_82c879c1-84e1-44ed-a8c2-1ac239cf09ad"
The current status of the capture.
pending, succeeded, failed "pending"
A decimal representation of the captured amount, denominated in the session's asset.
"1.00"
An error that occurred during a payment operation.
{
"code": "insufficient_funds",
"message": "The payer does not have sufficient funds.",
"occurredAt": "2025-06-15T12:00:00.000Z"
}Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
{
"customer_id": "cust_12345",
"order_reference": "order-67890"
}The onchain transactions associated with this capture.
[
{
"transactionHash": "0xdef456abc789012345678901234567890abcdef1234567890abcdef12345678",
"network": "base"
}
]The UTC ISO 8601 timestamp at which the capture was created.
"2025-06-15T12:20:00.000Z"
The UTC ISO 8601 timestamp at which the capture was last updated.
"2025-06-15T12:21:00.000Z"