PlexySDK DOCS

Authorization Adjustment

Learn how to increase or decrease the authorized amount before capture

Authorization Adjustment

Authorization adjustment allows you to modify the authorized amount before capture. This is useful when the final transaction amount differs from the initial authorization.

Use Cases

Authorization adjustments are common in industries where the final amount isn't known at authorization time:

IndustryScenario
HospitalityRoom service, minibar, incidentals added to hotel bill
RestaurantsTips added after initial authorization
Car RentalAdditional days, fuel charges, damage fees
Gas StationsFinal pump amount differs from pre-authorization
E-commerceShipping costs calculated after checkout

Adjustment Types

Increase Authorization

Increase the authorized amount when additional charges apply:

curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/adjustments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": {
      "value": 15000,
      "currency": "KZT"
    },
    "merchant_id": "merchant_abc123",
    "reason": "Additional charges for room service"
  }'

Decrease Authorization

Decrease the authorized amount when the final charge is less than expected:

curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/adjustments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": {
      "value": 8000,
      "currency": "KZT"
    },
    "merchant_id": "merchant_abc123",
    "reason": "Early checkout"
  }'

Decreasing an authorization is essentially a partial cancellation. The released funds become available to the customer immediately.

API Endpoint

POST https://api.plexypay.com/v2/payments/{payment_id}/adjustments

Request Parameters

ParameterTypeRequiredDescription
amountobjectYesNew total authorized amount
amount.valueintegerYesAmount in smallest currency unit
amount.currencystringYesThree-letter ISO currency code
merchant_idstringYesYour merchant identifier
reasonstringNoReason for the adjustment
referencestringNoYour internal reference
idempotency_keystringNoUnique key to prevent duplicates

Response

{
  "payment_id": "pay_1234567890",
  "adjustment_id": "adj_0987654321",
  "status": "adjusted",
  "merchant_id": "merchant_abc123",
  "original_amount": {
    "value": 10000,
    "currency": "KZT"
  },
  "authorized_amount": {
    "value": 15000,
    "currency": "KZT"
  },
  "adjustment_type": "increase",
  "reason": "Additional charges for room service",
  "adjusted_at": "2026-03-25T10:30:00Z"
}

Adjustment Limits

Increase Limits

Card networks impose limits on how much you can increase an authorization:

Card SchemeMaximum Increase
Visa15% above original (20% for hospitality)
Mastercard15% above original (20% for certain MCCs)

Attempting to increase beyond these limits may result in a decline. For larger increases, consider using pre-authorization with incremental auth.

Decrease Limits

There's no minimum for decreasing - you can reduce the authorization to any amount, including releasing it entirely (equivalent to a cancel).

Multiple Adjustments

You can perform multiple adjustments on a single authorization.

Day 1 — guest orders room service (original authorization: 10000 KZT):

curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/adjustments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": { "value": 12000, "currency": "KZT" },
    "merchant_id": "merchant_abc123",
    "reason": "Room service - Day 1"
  }'

Day 2 — guest extends stay:

curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/adjustments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": { "value": 17000, "currency": "KZT" },
    "merchant_id": "merchant_abc123",
    "reason": "Extended stay"
  }'

Checkout — final 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": 17000, "currency": "KZT" },
    "merchant_id": "merchant_abc123"
  }'

Webhook Events

AUTHORIZATION_ADJUSTED

Sent when an authorization is successfully adjusted.

{
  "event_type": "AUTHORIZATION_ADJUSTED",
  "event_id": "evt_abc123",
  "created_at": "2026-03-25T10:30:00Z",
  "data": {
    "payment_id": "pay_1234567890",
    "adjustment_id": "adj_0987654321",
    "merchant_id": "merchant_abc123",
    "original_amount": {
      "value": 10000,
      "currency": "KZT"
    },
    "new_amount": {
      "value": 15000,
      "currency": "KZT"
    },
    "adjustment_type": "increase",
    "reason": "Additional charges for room service",
    "adjusted_at": "2026-03-25T10:30:00Z"
  }
}

AUTHORIZATION_ADJUSTMENT_FAILED

Sent when an adjustment attempt fails.

{
  "event_type": "AUTHORIZATION_ADJUSTMENT_FAILED",
  "event_id": "evt_def456",
  "created_at": "2026-03-25T10:30:00Z",
  "data": {
    "payment_id": "pay_1234567890",
    "merchant_id": "merchant_abc123",
    "requested_amount": {
      "value": 25000,
      "currency": "KZT"
    },
    "error": {
      "code": "ADJUSTMENT_LIMIT_EXCEEDED",
      "message": "Requested amount exceeds maximum adjustment limit"
    }
  }
}

Error Handling

Error CodeDescriptionResolution
PAYMENT_NOT_FOUNDPayment ID doesn't existVerify payment_id
INVALID_PAYMENT_STATEPayment not authorizedCan only adjust authorized payments
ADJUSTMENT_LIMIT_EXCEEDEDAmount exceeds card network limitUse incremental authorization instead
AUTHORIZATION_EXPIREDAuthorization has expiredCreate new payment
ADJUSTMENT_NOT_SUPPORTEDPayment method doesn't support adjustmentCapture current auth, create new payment
INSUFFICIENT_FUNDSCustomer doesn't have funds for increaseCapture original amount or reduce

Example Error Handling

Submit an adjustment request:

curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/adjustments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": { "value": 15000, "currency": "KZT" },
    "merchant_id": "merchant_abc123"
  }'

If the response returns ADJUSTMENT_LIMIT_EXCEEDED, use incremental authorization via POST /v2/payments/{id}/incremental-auth instead.

If the error is INSUFFICIENT_FUNDS, capture the currently authorized amount without adjustment:

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 '{
    "merchant_id": "merchant_abc123"
  }'

If the error is AUTHORIZATION_EXPIRED, retrieve the payment to get the customer details and create a new payment.

Industry-Specific Examples

Hotel Checkout

Adjust the authorization to the final amount (room charge + all incidentals):

curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/adjustments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": { "value": 17000, "currency": "KZT" },
    "merchant_id": "merchant_hotel",
    "reason": "Checkout for reservation RES-12345"
  }'

Then capture the adjusted 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 '{
    "merchant_id": "merchant_hotel",
    "reference": "RES-12345"
  }'

Restaurant with Tips

First retrieve the payment to get the original authorized amount:

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

Adjust the authorization to the total including tip:

curl -X POST https://api.plexypay.com/v2/payments/pay_1234567890/adjustments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": { "value": 11500, "currency": "KZT" },
    "merchant_id": "merchant_restaurant",
    "reason": "Tip added for order ORD-456"
  }'

Then capture with tip:

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 '{
    "merchant_id": "merchant_restaurant",
    "reference": "ORD-456"
  }'

Best Practices

At initial authorization, consider authorizing for the expected maximum (including potential tips, add-ons, etc.) then adjust down if needed.

Don't wait until just before capture to adjust. Make adjustments as charges are known.

Always include a reason for adjustments to maintain clear records.

Be prepared to use incremental authorization if standard adjustment limits are exceeded.

Unusual adjustment patterns can indicate fraud. Monitor and set alerts.

Viewing Adjustments in Plexy Dashboard

View adjustment history in the Plexy Dashboard:

  1. Navigate to Payments
  2. Click on an authorized payment
  3. View the Modifications tab

The dashboard shows:

  • All adjustment attempts
  • Original vs adjusted amounts
  • Adjustment reasons
  • Success/failure status

On this page