Captures API
POST /api/v1/payment-sessions/:paymentSessionId/captures
Create a capture for the session. This is asynchronous and returns 202 Accepted immediately.
Request Body
{
requestId: string; // Idempotency key
captureAmount: string; // e.g., "10.00"
finalCapture?: boolean; // default: true
}Response (202 Accepted)
{
paymentCaptureId: string;
createdAt: string; // ISO 8601
captureAmount: string;
refundAmount: string;
finalCapture: boolean;
status: "CAPTURING";
}Rules
captureAmount≤capturableAmountIf
finalCaptureistrue, any remainder is refunded to the userOnly
FUNDEDsessions can be captured; during capture, the session status isCAPTURING
Example
GET /api/v1/payment-sessions/:paymentSessionId/captures/:paymentCaptureId
Retrieve details of a specific capture.
Response
Example
Last updated

