PlexySDK DOCS

Capture Failure Reasons

Understand why capture requests fail and how to resolve them

Capture Failure Reasons

When a capture request fails, Plexy returns an error code explaining the reason. This guide covers common failure reasons and how to handle them.

Error Response Format

Failed capture requests return an error response:

{
  "error": {
    "code": "AUTHORIZATION_EXPIRED",
    "message": "The authorization has expired and can no longer be captured",
    "payment_id": "pay_1234567890",
    "details": {
      "authorized_at": "2026-03-18T10:30:00Z",
      "expired_at": "2026-03-25T10:30:00Z"
    }
  }
}

Common Failure Reasons

PAYMENT_NOT_FOUND

The specified payment_id does not exist in the system.

Cause:

  • Typo in the payment ID
  • Payment was created in a different environment (test vs live)
  • Payment ID from a different merchant account

Resolution:

Verify the payment ID exists by retrieving it:

curl -X GET https://api.plexypay.com/v2/payments/pay_1234567890 \
  -H "x-api-key: YOUR_API_KEY"

Check that you are using the correct API key (test vs live) and that the payment belongs to your merchant account.

AUTHORIZATION_EXPIRED

The authorization validity period has passed and the reserved funds have been released.

Cause:

  • Too much time elapsed between authorization and capture
  • Authorization validity varies by card scheme (typically 7-30 days)

Resolution:

  • Create a new payment and authorize again
  • Implement monitoring to capture before expiry

Check authorization expiry before capturing by retrieving the payment:

curl -X GET https://api.plexypay.com/v2/payments/pay_1234567890 \
  -H "x-api-key: YOUR_API_KEY"

If authorization.expires_at has passed, create a new payment. Otherwise, proceed with a capture:

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

Authorization validity periods by card scheme:

  • Visa/Mastercard: 7 days (30 days for travel, lodging, car rental)
  • American Express: 7 days

INVALID_PAYMENT_STATE

The payment is not in a state that allows capture.

Possible states:

Current StateWhy Capture Fails
pendingAuthorization not yet complete
capturedAlready captured
cancelledAuthorization was cancelled
failedPayment authorization failed
refundedPayment was refunded

Resolution:

Retrieve the payment to check its current status:

curl -X GET https://api.plexypay.com/v2/payments/pay_1234567890 \
  -H "x-api-key: YOUR_API_KEY"

If status is authorized, it is safe to capture. If status is captured, no further action is needed. If status is cancelled, create a new payment.

AMOUNT_EXCEEDS_AUTHORIZATION

The capture amount is greater than the authorized amount.

Cause:

  • Trying to capture more than was authorized
  • Previous partial capture reduced remaining amount
  • Currency mismatch in the request

Resolution:

Retrieve the payment to check authorization.remaining_amount.value:

curl -X GET https://api.plexypay.com/v2/payments/pay_1234567890 \
  -H "x-api-key: YOUR_API_KEY"

Then capture only the remaining authorized 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": 8000, "currency": "KZT" },
    "merchant_id": "merchant_abc123"
  }'

INSUFFICIENT_BALANCE

The issuing bank reports insufficient funds when attempting to capture.

This can happen even after successful authorization if the customer spent their available balance before capture.

Cause:

  • Customer's available balance decreased after authorization
  • Long delay between authorization and capture
  • Authorization hold released by issuer

Resolution:

  • Contact the customer for an alternative payment method
  • Create a new payment and re-authorize

If the capture returns INSUFFICIENT_BALANCE, notify the customer and request a new payment method.

CAPTURE_NOT_SUPPORTED

The payment method does not support separate capture (manual capture).

Cause:

  • Some payment methods only support automatic capture
  • Bank transfers and certain local payment methods capture immediately

Payment methods that don't support manual capture:

Payment MethodReason
Bank transfersFunds transfer immediately
Certain walletsImmediate settlement
Some BNPL providersProvider-specific flow

Resolution:

  • Use automatic capture for these payment methods
  • Check capabilities.manual_capture_supported before enabling manual capture

Check the capabilities.manual_capture_supported field on the payment method before enabling manual capture. Refer to the payment method documentation for details.

CARD_EXPIRED

The customer's card has expired between authorization and capture.

Cause:

  • Card expiry date passed during the capture delay
  • Common with long authorization holds

Resolution:

  • Contact customer for updated card details
  • Create new payment with new card

CARD_BLOCKED

The customer's card has been blocked by the issuer.

Cause:

  • Card reported lost or stolen
  • Fraud suspicion by issuer
  • Account closure

Resolution:

  • Contact customer for alternative payment method

ACQUIRER_ERROR

A technical error occurred with the payment processor.

Cause:

  • Temporary connectivity issues
  • Acquirer system maintenance
  • Processing timeout

Resolution:

  • Retry the capture request with exponential backoff (1s, 2s, 4s delays between attempts)
  • Contact Plexy support if issues persist
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"
  }'

METHOD_LIMITATION

The capture is blocked due to payment method-specific limitations.

Examples:

  • Some card schemes limit capture to certain percentages of authorization
  • Regional restrictions on partial capture
  • Specific MCC (merchant category code) rules

Resolution:

  • Check payment method documentation for limitations
  • Adjust capture amount to comply with rules

Error Handling Best Practices

Implement Comprehensive Error Handling

Submit a capture request:

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

Use the error code in the response to determine the corrective action:

Error CodeAction
PAYMENT_NOT_FOUNDVerify the payment_id
AUTHORIZATION_EXPIREDCreate a new payment
INVALID_PAYMENT_STATERetrieve the payment to check its current status
AMOUNT_EXCEEDS_AUTHORIZATIONReduce the capture amount
INSUFFICIENT_BALANCE / CARD_EXPIRED / CARD_BLOCKEDContact the customer for an alternative payment method
ACQUIRER_ERRORRetry the request
Any other codeContact Plexy support

Monitor and Alert

Track capture failure rates by logging the error.code returned from failed capture responses. Set up alerts for elevated rates of ACQUIRER_ERROR codes, which may indicate connectivity or processing issues with the payment processor.

Viewing Failures in Plexy Dashboard

You can investigate capture failures in the Plexy Dashboard:

  1. Navigate to Payments
  2. Filter by Status: Authorized (captures that haven't succeeded)
  3. Click on a payment to view the Modifications tab
  4. Review the capture attempt history and error details

The dashboard shows:

  • Timestamp of each capture attempt
  • Error code and message
  • Request details
  • Suggested resolution steps

On this page