Skip to main content

Pre-Authorization

Process a pre-authorization transaction to reserve funds on a card without capturing them immediately.

POST/api/pre-authorization

Request Parameters

ParameterRequiredTypeDescription
orderIdYesstringClient's tracking number for the order (e.g., ORD-12345).
amountYesnumberTransaction amount (e.g., 100.50).
currencyYesstringCurrency code (e.g., TRY).
cardHolderNameYesstringName of the card holder.
panYesstringPrimary Account Number (card number) (e.g., 5421190122090656).
expiryMonthYesstringCard expiry month (2 digits, e.g., 04).
expiryYearYesstringCard expiry year (2 digits, e.g., 28).
cvvYesstringCard Verification Value (e.g., 916).
requestIpYesstringIP address of the client making the request (e.g., 192.168.1.1).
requestPortYesnumberPort number of the client making the request (e.g., 8080).
customerIdNostringOptional unique identifier for the customer (e.g., CUST-12345).

Response

Returns an ApiPaymentResponse object with pre-authorization 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).