PlexySDK DOCS

Partial Authorizations

Accept payments when the full amount cannot be authorized on a customer's card

Partial Authorizations

Partial authorizations allow you to accept a payment even when the customer's card doesn't have sufficient funds for the full amount. Instead of declining the entire transaction, the card issuer approves the available amount, and you can collect the remaining balance through another payment method.

How Partial Authorizations Work

You submit a payment request with allow_partial_authorization: true.

If the card has insufficient funds, the issuer authorizes the available balance instead of declining.

Your integration receives a response indicating the authorized amount differs from the requested amount.

Prompt the customer to pay the remaining balance using another payment method.

Enabling Partial Authorizations

API Request

Include allow_partial_authorization: true in your payment request.

curl -X POST https://api.plexypay.com/v2/payments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": {
      "value": 50000,
      "currency": "KZT"
    },
    "payment_method": {
      "type": "card",
      "number": "4111111111111111",
      "expiry_month": "03",
      "expiry_year": "2028",
      "cvc": "737"
    },
    "reference": "order_12345",
    "merchant_id": "merchant_abc123",
    "allow_partial_authorization": true,
    "return_url": "https://your-site.com/checkout/complete"
  }'

Handling Partial Authorization Responses

When a partial authorization occurs, the response includes both the requested and authorized amounts.

Response Structure

{
  "payment_id": "pay_abc123xyz",
  "status": "partially_authorized",
  "requested_amount": {
    "value": 50000,
    "currency": "KZT"
  },
  "authorized_amount": {
    "value": 35000,
    "currency": "KZT"
  },
  "remaining_amount": {
    "value": 15000,
    "currency": "KZT"
  },
  "reference": "order_12345",
  "merchant_id": "merchant_abc123",
  "partial_authorization": {
    "reason": "INSUFFICIENT_FUNDS",
    "issuer_message": "Card has insufficient funds for full amount"
  }
}

Implementing the Handler

After calling POST /v2/payments, inspect the status field in the response and handle it accordingly:

async function handlePaymentResponse(payment) {
  if (payment.status === 'partially_authorized') {
    // Store the partial payment details
    await db.orders.update({
      where: { id: payment.reference },
      data: {
        status: 'partial_payment',
        authorizedAmount: payment.authorized_amount.value,
        remainingAmount: payment.remaining_amount.value,
        partialPaymentId: payment.payment_id
      }
    });

    // Return information for the frontend
    return {
      status: 'partial',
      authorizedAmount: payment.authorized_amount,
      remainingAmount: payment.remaining_amount,
      message: 'Your card was charged for the available amount. Please select another payment method for the remaining balance.'
    };
  }

  if (payment.status === 'authorized') {
    // Full amount authorized
    await db.orders.update({
      where: { id: payment.reference },
      data: { status: 'paid', paymentId: payment.payment_id }
    });
    return { status: 'success', message: 'Payment completed successfully' };
  }

  // Handle declined
  return { status: 'declined', message: payment.refusal_reason || 'Payment was declined' };
}

Frontend Implementation

Display clear information to customers when a partial authorization occurs.

function CheckoutPartialPayment({
  authorizedAmount,
  remainingAmount,
  onPayRemaining,
}) {
  return (
    <div className="partial-payment-notice">
      <h3>Partial Payment Received</h3>
      <p>
        Your card was charged{' '}
        <strong>{formatCurrency(authorizedAmount)}</strong>. A remaining balance
        of <strong>{formatCurrency(remainingAmount)}</strong> is due.
      </p>

      <div className="payment-summary">
        <div className="row">
          <span>Card Payment</span>
          <span>{formatCurrency(authorizedAmount)}</span>
        </div>
        <div className="row remaining">
          <span>Remaining Balance</span>
          <span>{formatCurrency(remainingAmount)}</span>
        </div>
      </div>

      <button onClick={onPayRemaining}>
        Pay Remaining {formatCurrency(remainingAmount)}
      </button>

      <p className="hint">
        You can use another card, gift card, or other payment method.
      </p>
    </div>
  );
}

Configuring Partial Authorization Acceptance

You can configure partial authorization behavior at the account level in the Plexy Dashboard or via API.

Account-Level Configuration

curl -X PATCH https://api.plexypay.com/v2/merchants/merchant_abc123/settings \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "partial_authorization": {
      "enabled": true,
      "minimum_percentage": 50,
      "minimum_amount": {
        "value": 1000,
        "currency": "KZT"
      },
      "auto_void_below_minimum": true
    }
  }'

Configuration Options

OptionTypeDescription
enabledbooleanWhether partial authorizations are accepted
minimum_percentageintegerMinimum percentage of requested amount (e.g., 50 = 50%)
minimum_amountobjectMinimum absolute amount to accept
auto_void_below_minimumbooleanAutomatically void partial authorizations below the minimum

If both minimum_percentage and minimum_amount are set, both conditions must be met for the partial authorization to be accepted.

Voiding a Partial Authorization

If you don't want to accept a partial authorization, void it to release the hold on the customer's card.

curl -X POST https://api.plexypay.com/v2/payments/pay_abc123xyz/voids \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "merchant_id": "merchant_abc123",
    "reason": "Customer declined partial payment"
  }'

Webhook Events

PAYMENT_PARTIALLY_AUTHORIZED

Sent when a partial authorization is approved.

{
  "event_type": "PAYMENT_PARTIALLY_AUTHORIZED",
  "event_id": "evt_abc123",
  "created_at": "2026-03-25T10:30:00Z",
  "data": {
    "payment_id": "pay_abc123xyz",
    "reference": "order_12345",
    "merchant_id": "merchant_abc123",
    "requested_amount": {
      "value": 50000,
      "currency": "KZT"
    },
    "authorized_amount": {
      "value": 35000,
      "currency": "KZT"
    },
    "remaining_amount": {
      "value": 15000,
      "currency": "KZT"
    },
    "partial_authorization": {
      "reason": "INSUFFICIENT_FUNDS"
    }
  }
}

Use Cases

Prepaid and Gift Card Purchases

Partial authorizations are common when customers use prepaid cards with limited balances. Include allow_partial_authorization: true in your payment request:

curl -X POST https://api.plexypay.com/v2/payments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": { "value": 50000, "currency": "KZT" },
    "payment_method": {
      "type": "card",
      "number": "4111111111111111",
      "expiry_month": "03",
      "expiry_year": "2028",
      "cvc": "737"
    },
    "allow_partial_authorization": true,
    "reference": "order_12345",
    "merchant_id": "merchant_abc123"
  }'

If the response status is partially_authorized, offer the customer an option to pay the remaining_amount with another payment method.

High-Value Transactions

For high-value purchases, partial authorization prevents losing the entire sale due to card limits.

Always get explicit customer consent before processing partial authorizations. Your checkout UI should clearly indicate that the card will be charged for the available amount if full authorization fails.

Testing

Use these test card numbers to simulate partial authorization scenarios:

Test CardBehavior
4000 0000 0000 3220Authorizes 50% of requested amount
4000 0000 0000 3238Authorizes 25% of requested amount
4000 0000 0000 3246Authorizes minimum amount (1000 KZT)
# Test partial authorization
curl -X POST https://api.plexypay.com/v2/payments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": {
      "value": 100000,
      "currency": "KZT"
    },
    "payment_method": {
      "type": "card",
      "number": "4000000000003220",
      "expiry_month": "03",
      "expiry_year": "2028",
      "cvc": "737"
    },
    "allow_partial_authorization": true,
    "reference": "test_partial_auth",
    "merchant_id": "merchant_abc123"
  }'

Best Practices

Clearly disclose partial authorization capability at checkout. Inform customers their card may be charged for a partial amount.

Configure minimum thresholds to avoid processing very small partial amounts that aren't worth the processing fees.

When partial authorization occurs, clearly show the charged amount, remaining balance, and next steps.

Make it easy for customers to add another payment method or void the partial payment if they prefer.

Maintain proper records linking partial payments to the same order for accounting and reconciliation.

Next Steps

On this page