Captures API

POST /api/v1/payment-sessions/:paymentSessionId/captures

Create a capture for the session. This is asynchronous and returns 202 Accepted immediately.

Authorization: Authorization: Bearer <MERCHANT_API_TOKEN> (server to server)

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

  • captureAmountcapturableAmount

  • If finalCapture is true, any remainder is refunded to the user

  • Only FUNDED sessions can be captured; during capture, the session status is CAPTURING

Example


GET /api/v1/payment-sessions/:paymentSessionId/captures/:paymentCaptureId

Retrieve details of a specific capture.

Response

Example

Last updated