Capture Payments
Learn how to capture authorized payments to collect funds
Capture Payments
Capture is the process of collecting funds from an authorized payment. When a payment is authorized, funds are reserved on the customer's account but not yet transferred to you. Capturing finalizes the transaction.
Capture Modes
Plexy supports two capture modes that you configure when creating a payment:
Automatic Capture
With automatic capture (default), funds are captured immediately after successful authorization.
{
"amount": {
"value": 10000,
"currency": "KZT"
},
"capture_mode": "automatic",
"merchant_id": "merchant_abc123"
}Automatic capture is ideal for digital goods, subscriptions, and scenarios where you can fulfill the order immediately.
Manual Capture
With manual capture, you authorize first and capture later. This gives you control over when funds are collected.
{
"amount": {
"value": 10000,
"currency": "KZT"
},
"capture_mode": "manual",
"merchant_id": "merchant_abc123"
}Common use cases for manual capture:
- E-commerce with shipping - Capture when the order ships
- Reservations - Capture when the service is rendered
- Fraud review - Capture after manual verification
- Pre-orders - Capture when the product is available
Capturing a Payment
API Endpoint
POST https://api.plexypay.com/v2/payments/{payment_id}/capturesRequest
curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/captures \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": {
"value": 10000,
"currency": "KZT"
},
"merchant_id": "merchant_abc123"
}'Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | object | No | Amount to capture. If omitted, captures the full authorized amount. |
amount.value | integer | Yes | Amount in smallest currency unit |
amount.currency | string | Yes | Three-letter ISO currency code |
merchant_id | string | Yes | Your merchant identifier |
reference | string | No | Your internal reference for this capture |
idempotency_key | string | No | Unique key to prevent duplicate captures |
Response
{
"payment_id": "pay_1234567890",
"capture_id": "cap_0987654321",
"status": "captured",
"amount": {
"value": 10000,
"currency": "KZT"
},
"merchant_id": "merchant_abc123",
"reference": "order_12345",
"captured_at": "2026-03-25T10:30:00Z"
}Delayed Capture
You can delay capture for up to the authorization validity period. This period varies by payment method and card scheme:
| Card Scheme | Authorization Validity |
|---|---|
| Visa | 7 days (30 days for certain MCCs) |
| Mastercard | 7 days (30 days for certain MCCs) |
| American Express | 7 days |
If you don't capture before the authorization expires, the reserved funds are automatically released back to the customer.
Checking Authorization Expiry
The payment object includes the authorization expiry time:
{
"payment_id": "pay_1234567890",
"status": "authorized",
"authorization": {
"expires_at": "2026-04-01T10:30:00Z",
"remaining_amount": {
"value": 10000,
"currency": "KZT"
}
}
}Partial Capture
You can capture less than the authorized amount. The remaining authorization is automatically released.
curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/captures \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": {
"value": 8000,
"currency": "KZT"
},
"merchant_id": "merchant_abc123"
}'Partial capture is useful when the final order amount is less than originally authorized, such as when items are out of stock.
Multiple Captures
Some payment methods support multiple partial captures from a single authorization (split shipments). Check the multiple_captures_allowed field on the payment:
{
"payment_id": "pay_1234567890",
"status": "authorized",
"capabilities": {
"multiple_captures_allowed": true,
"partial_capture_allowed": true
}
}Example: Split Shipment
First shipment — capture partial amount:
curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/captures \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": { "value": 5000, "currency": "KZT" },
"merchant_id": "merchant_abc123",
"reference": "shipment_1"
}'Second shipment — capture remaining:
curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/captures \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": { "value": 5000, "currency": "KZT" },
"merchant_id": "merchant_abc123",
"reference": "shipment_2"
}'Webhook Events
CAPTURE
Sent when a capture is successfully processed.
{
"event_type": "CAPTURE",
"event_id": "evt_abc123",
"created_at": "2026-03-25T10:30:00Z",
"data": {
"payment_id": "pay_1234567890",
"capture_id": "cap_0987654321",
"merchant_id": "merchant_abc123",
"amount": {
"value": 10000,
"currency": "KZT"
},
"status": "captured",
"captured_at": "2026-03-25T10:30:00Z"
}
}CAPTURE_FAILED
Sent when a capture attempt fails.
{
"event_type": "CAPTURE_FAILED",
"event_id": "evt_def456",
"created_at": "2026-03-25T10:30:00Z",
"data": {
"payment_id": "pay_1234567890",
"merchant_id": "merchant_abc123",
"amount": {
"value": 10000,
"currency": "KZT"
},
"error": {
"code": "AUTHORIZATION_EXPIRED",
"message": "The authorization has expired and can no longer be captured"
}
}
}Error Handling
Capture requests can fail for various reasons. See Capture Failure Reasons for detailed information.
Common errors:
| Error Code | Description |
|---|---|
AUTHORIZATION_EXPIRED | The authorization has expired |
PAYMENT_NOT_FOUND | The payment_id does not exist |
INVALID_PAYMENT_STATE | Payment is not in an authorized state |
AMOUNT_EXCEEDS_AUTHORIZATION | Capture amount exceeds authorized amount |
CAPTURE_NOT_SUPPORTED | The payment method doesn't support capture |
Best Practices
Choose automatic capture for immediate fulfillment, manual capture when you need to verify or ship first.
Don't hold authorizations longer than necessary. Capture as soon as you're ready to fulfill the order.
Track expiry dates and capture or cancel before they expire to avoid failed captures.
Always include an idempotency key to prevent duplicate captures from retried requests.
Listen for CAPTURE and CAPTURE_FAILED webhooks to update your order system.
Viewing Captures in Plexy Dashboard
You can view all capture attempts for a payment in the Plexy Dashboard:
- Navigate to Payments
- Find and click on the payment
- View the Modifications tab to see capture history