PlexySDK DOCS

Manage Payments

Capture, cancel, refund, and adjust payments after authorization

Manage Payments

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"
  }'

On this page