Skip to main content

Capture Pre-Authorization

Capture a previously authorized payment. You can capture the full amount or a partial amount.

POST/api/pre-authorization/{paymentId}/capture

Path Parameters

ParameterTypeDescription
paymentIdstringThe UUID of the pre-authorized payment.

Request Parameters

ParameterRequiredTypeDescription
amountYesnumberAmount to capture (can be less than or equal to the pre-authorized amount) (e.g., 90.00).
currencyYesstringCurrency code (e.g., TRY).

Response

Returns an ApiPaymentResponse object with capture details.

FieldTypeDescription
paymentIdstringUnique identifier for the payment (UUID).
orderIdstringClient's tracking number for the order.
amountnumberTransaction amount.
installmentCountnumberNumber of installments.
currencystringCurrency code.
merchantCommissionnumberCommission charged to the merchant.
statusstringPayment status (e.g., SUCCESS, FAILED, ENROLLED).
paymentDatestringDate and time (ISO format, e.g., 2023-05-01T14:30:00Z).
cardHolderNamestringName of the card holder.
panstringMasked Primary Account Number (e.g., 411111******1111).
domIntstringDomestic or International transaction (DOM/INT).
cardSchemestringCard scheme (e.g., VISA, MASTERCARD).
cardTypestringType of card (e.g., CREDIT, DEBIT).
loyaltyCodestringLoyalty program code (if applicable).
externalTransactionIdstringTransaction ID from the payment provider.
authCodestringAuthorization code from the payment provider.
resultCodestringResult code from the payment provider.
resultMessagestringResult message from the payment provider.
customerIdstringUnique identifier for the customer (if provided).