curl --location --request POST 'https://api.stateset.com/v1/payments/pay_0901f083-aa1c-43c5-af5c-0a9d2fc64e30/capture' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --data-raw '{ "amount": 15000 }'
{ "id": "pay_0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "object": "payment", "amount": 15000, "amount_capturable": 0, "amount_captured": 15000, "currency": "USD", "status": "succeeded", "captured": true, "captured_at": "2024-01-19T16:00:00Z", "created_at": "2024-01-19T15:30:00Z", "payment_method": { "type": "card", "card": { "last4": "4242", "brand": "visa" } }, "capture_details": { "captured_amount": 15000, "capture_time": "2024-01-19T16:00:00Z", "processor_capture_id": "ch_capture_123456" } }
Capture a previously authorized payment
capture: false
payments:write
Authorization: Bearer YOUR_API_KEY