Manage Payments
Capture, cancel, refund, and adjust payments after authorization
Manage Payments
Capture
Collect funds from an authorized payment
Cancel
Release an authorization without collecting funds
Refund
Return funds to the customer after capture
Reversal
Void a payment before settlement
Adjust Authorization
Modify the authorized amount before capture
Adjust with Pre-authorization
Use pre-authorization for flexible amount adjustments
Capture Failure Reasons
Common capture failures and how to resolve them
Capture
curl -X POST https://api.plexypay.com/v2/payments/{payment_id}/captures \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": { "value": 10000, "currency": "KZT" },
"merchant_id": "merchant_abc123"
}'Cancel
curl -X POST https://api.plexypay.com/v2/payments/{payment_id}/cancels \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchant_id": "merchant_abc123"
}'Refund
curl -X POST https://api.plexypay.com/v2/payments/{payment_id}/refunds \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": { "value": 5000, "currency": "KZT" },
"merchant_id": "merchant_abc123",
"reason": "CUSTOMER_REQUEST"
}'Reversal
curl -X POST https://api.plexypay.com/v2/payments/{payment_id}/reversals \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchant_id": "merchant_abc123"
}'