Capture payment
Changed onCaptures a card payment created with capture: false for its total. The payment must still be in requires_capture before capture_expires_at. An in-person payment's total can move away from its authorized amount when its line items change after the card was authorized. Above it, Whop captures the difference where the payment processor allows it for the merchant's category. Otherwise Whop raises the authorization first, and the card can decline that. Capturing more or less than the authorized amount is off by default. Contact Whop support to turn it on for your account. Multiple captures are not supported.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
The unique identifier of the payment.
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
The amount to capture, in the payment's currency. It must equal the payment's total, and defaults to it. The total moves away from the authorized amount only when a card_present payment's line items change after the card was authorized.
Keys and values added to the payment's metadata once it is captured, such as the file of the buyer's signature. Only for an in-person payment created with capture: false.
Example request
{
"amount": 25,
"metadata": {
"signature_file_id": "file_xxxxxxxxxxxxxx"
}
}Response
Payment captured for its total, with metadata
When Whop will capture this authorization automatically, as an ISO 8601 timestamp. null when no automatic capture was requested.
When the card authorization must be captured, as an ISO 8601 timestamp. null when this payment was not authorized for later capture.
The payment this status describes, prefixed pay_.
What the buyer must do to finish. type picks the shape and each type carries only its own data, so switching on type gives you exactly that step's payload.
Always payment_status.
Where to send the buyer once the payment reaches a resting state, or null to leave them where they are. Editable until they return — see the return_url operation.
How far the payment has got. requires_confirmation — nothing attempted yet, or the last attempt failed and can be retried. requires_action — the buyer has a step outstanding; see next_action. requires_capture — the card authorization is holding funds and must be captured. confirming — the buyer has done their part and the processor is deciding. processing — with processing_details, the money is moving; without them, the charge is still being decided and the status should be read again. succeeded — collected. canceled — voided or written off.
Example response
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"title": "Shine Time Auto Detailing"
},
"capture_expires_at": "2026-01-01T12:00:00.000Z",
"id": "pay_xxxxxxxxxxxxxx",
"last_payment_error": {
"code": "processing_error",
"decline_code": "insufficient_funds",
"message": "Your card was declined."
},
"next_action": {
"data": {
"frame_max_width": 500,
"url": "https://psp.example/3ds/challenge"
},
"render": [
"inline"
],
"type": "redirect"
},
"object": "payment_status",
"processing_details": {
"expected_by": "2026-01-01T12:00:00.000Z"
},
"return_url": "https://shinetime.example/checkout/done",
"status": "succeeded"
}Changes
- warning
added the new
card_not_activatedenum value to thelast_payment_error/oneOf[#/components/schemas/PaymentLastPaymentError]/decline_coderesponse property for the response status
- warning
- info
added optional request body
- info