Incremental Auth

Incremental authorization increases the hold on an existing preauth, where the processor and merchant configuration support it. amount is the additional amount to authorize in minor currency units, not the new total.

Run Android reference operations from withContext(Dispatchers.IO). The examples unwrap Result with getOrThrow(); handle thrown errors at the UI boundary. Inspect the returned transaction status and operation amounts before displaying success. See the Android operation helpers.

Increase a Hold

iOS 1.0.21:

let response = try await KoardMerchantSDK.shared.auth(
    transactionId: transactionId,
    amount: 2000,             // Increase the hold by $20.00
    eventId: eventId          // Persist before submitting this operation
)

Android 1.0.7:

val transaction = sdk.incrementalAuth(
    transactionId = transactionId,
    amount = 2000,
    eventId = eventId
).getOrThrow()

Android 1.0.7 does not accept a breakdown argument on incrementalAuth. Inspect the returned transaction before proceeding to capture.

REST

POST /v3/payments/{transaction_id}/auth
X-Koard-apikey: YOUR_API_KEY
Content-Type: application/json
{"amount": 2000, "event_id": "YOUR_PERSISTED_EVENT_ID"}

Requires payments:incremental-auth. Omit breakdown when increasing the hold alone. This endpoint's optional legacy breakdown does not accept a nested surcharge object. Supply the final supported breakdown when capturing.

Custom Surcharges

For an eligible credit-card preauth, an approved custom surcharge flow can increase the hold by the surcharge amount before capture. Confirm eligibility from the returned card information and your processor's rules. The transaction response does not expose a bin property; do not assume one exists or use masked card data as a substitute for a verified BIN lookup. See Surcharging.

Result

This operation returns the transaction result. The Transaction Result lists the fields you can read from it.

See Also