Payments
Capture payment
Changed onCaptures the full amount of a card payment created with capture: false. The payment must still be in requires_capture before capture_expires_at. Partial capture, multiple captures, capturing more than the authorized amount, and tips are not supported.
post/payments/{id}/capture
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/payments/{id}/capture
- Auth: HTTP bearer
Path parameters
idstring required
The unique identifier of the payment.
Headers
Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383
A unique key that makes this request safe to retry. See Idempotent requests.
Response
Payment captured
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
- breaking
added to the
////response propertyoneOflist for the response status - info
added
collect_card_presentdiscriminator mapping keys to the////response property for the response status
- breaking
- warning
added the new
card_declined_by_issuerenum value to the/////response property for the response status
- warning