For the complete documentation index, see llms.txt. This page is also available as Markdown.

API - 3DS

Initialize 3DS Payment

post

Starts a 3D Secure session and returns an htmlContent value for 3DS authentication.

Header parameters
AuthorizationstringRequired

Authorization header; a signed Base64-encoded hash that starts with IYZWSv2.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequired

Content-Type value.

Example: application/json
Body
localestring · enumOptional

Language code. Default; tr

Example: enPossible values:
conversationIdstringOptional

Unique ID for request/response correlation.

Example: conversationId
pricedecimalRequired

Basket total amount.

Example: 1
paidPricedecimalRequired

Final amount to be charged to the customer.

Example: 1
currencystring · enumOptional

Currency. Default; TRY.

Example: TRYPossible values:
installmentinteger · enumOptional

Installment count (if omitted, a single installment is used).

Example: 1Possible values:
paymentChannelstring · enumOptional

Payment channel.

Example: WEBPossible values:
basketIdstringOptional

Basket ID.

Example: basketId
paymentGroupstring · enumOptional

Payment group. Default; PRODUCT.

Example: PRODUCTPossible values:
callbackUrlstringRequired

Redirect URL after 3DS flow completes.

Example: https://callbackurl.com
Responses
200

Successful response (3DS initialized)

application/json
statusstring · enumOptional

Result of the request.

Example: successPossible values:
localestringOptional

Response language (tr/en).

Example: en
systemTimeintegerOptional

Operation time (epoch ms).

Example: 1755197726218
conversationIdstringOptional

ID matching the request.

Example: conversationId
threeDSHtmlContentstringOptional

Base64-encoded HTML content of the 3DS verification screen.

Example: PCFkb2N0eXBlIGh0bWw+...
paymentIdstringOptional

Unique paymentId returned by iyzico.

Example: 25149157
signaturestringOptional

Signature value that can be used for verification.

Example: c8964a1878f9dae20741209dea6749d16bac4a8760775ae69b0b2420d9dc024b
post
/payment/3dsecure/initialize
HTTP

Create 3DS Payment

post

Finalizes the payment after successful 3D authentication.

Header parameters
AuthorizationstringRequired

Authorization header; a signed Base64-encoded hash that starts with IYZWSv2.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequired

Content-Type value.

Example: application/json
Body
localestring · enumOptional

Language code. Default; tr

Example: enPossible values:
paymentIdstringRequired

Payment ID returned by the initialize call.

Example: 25149157
conversationIdstringOptional

Unique ID for request/response correlation.

Example: conversationId
conversationDatastringOptional

Data posted by the 3DS result. If present, it must be sent.

Responses
200

Successful response (payment completed)

application/json
statusstring · enumOptional

It reports the result of the transaction. If the response returns success, it means the payment has been completed successfully.

Example: successPossible values:
localestringOptional

Response language (tr/en).

Example: en
systemTimeintegerOptional

Operation time (epoch ms).

Example: 1755198001941
conversationIdstringOptional

ID matching the request.

Example: conversationId
pricedecimalOptional

Basket total amount.

Example: 1
paidPricedecimalOptional

Total charged amount.

Example: 1
installmentintegerOptional

Installment count.

Example: 1
paymentIdstringOptional

Payment ID.

Example: 25149157
fraudStatusinteger · enumOptional

Payment status according to fraud filters.

  • 1: Approved
  • 0: Under review
  • -1: Declined
Example: 1Possible values:
merchantCommissionRatedecimalOptional

Merchant’s installment/commission rate (informational).

Example: 0
merchantCommissionRateAmountdecimalOptional

Merchant’s installment/commission amount (informational).

Example: 0
iyziCommissionRateAmountdecimalOptional

iyzico commission amount.

Example: 0.2094
iyziCommissionFeedecimalOptional

iyzico transaction fee.

Example: 0.25
cardTypestringOptional

Card type.

Example: CREDIT_CARD
cardAssociationstring · enumOptional

Card scheme/brand.

Example: MASTER_CARDPossible values:
cardFamilystringOptional

Card product/family.

Example: Axess
binNumberstringOptional

BIN (first 8 digits).

Example: 552608
lastFourDigitsstringOptional

Last 4 digits of the card.

Example: 0006
basketIdstringOptional

Basket ID.

Example: basketId
currencystringOptional

Currency of the payment.

Example: TRY
authCodestringOptional

Authorization code returned by the bank.

Example: 214525
phasestringOptional

Payment phase.

Example: AUTH
mdStatusinteger · enumOptional

3DS authentication result (1 means successful).

Example: 1Possible values:
hostReferencestringOptional

Host reference returned by the bank/acquirer.

Example: mock00001iyzihostrfn
signaturestringOptional

Signature value that can be used for verification.

Example: 5f510cd92b4b9c50a39b617cda228f4159f290860a4c20a965c55b119c9e9052
post
/payment/3dsecure/auth
HTTP

Create 3DS v2 Payment

post

After the verification step, both the v1 and the new-generation v2 endpoints can be used to finalize the payment. However, to align with more advanced and secure technologies, the use of the v2 endpoint is recommended.

Header parameters
AuthorizationstringRequired

Authorization header; a signed Base64-encoded hash that starts with IYZWSv2.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequired

Content-Type value.

Example: application/json
Body
localestring · enumOptional

Language code. Default; tr

Example: enPossible values:
paymentIdstringRequired

Payment ID returned after 3DS initialization.

Example: 25146302
conversationIdstringOptional

Unique ID for request/response correlation.

Example: conversationId
paidPricedecimalRequired

Collected amount to be used in 3DS v2 completion. Must match the paidPrice sent in INIT 3DS.

Example: 1
basketIdstringRequired

Basket ID (must match INIT 3DS basketId).

Example: basketId
currencystring · enumRequired

Currency. Default; TRY (must match the value sent in INIT 3DS).

Example: TRYPossible values:
Responses
200

Successful response (payment completed)

application/json
statusstring · enumOptional

It reports the result of the transaction. If the response returns success, it means the payment has been completed successfully.

Example: successPossible values:
localestring · enumOptional

Response language.

Example: enPossible values:
systemTimeintegerOptional

Timestamp (epoch ms).

Example: 1755203584577
conversationIdstringOptional

ID matching the request.

Example: conversationId
pricedecimalOptional

Basket total amount.

Example: 1
paidPricedecimalOptional

Total charged amount.

Example: 1
installmentintegerOptional

Installment count.

Example: 1
paymentIdstringOptional

Payment ID.

Example: 25149538
fraudStatusinteger · enumOptional

Payment status according to fraud filters.

  • 1: Approved
  • 0: Under review
  • -1: Declined
Example: 1Possible values:
merchantCommissionRatedecimalOptional

Merchant’s installment/commission rate (informational).

Example: 0
merchantCommissionRateAmountdecimalOptional

Merchant’s installment/commission amount (informational).

Example: 0
iyziCommissionRateAmountdecimalOptional

iyzico commission amount.

Example: 0.2094
iyziCommissionFeedecimalOptional

iyzico transaction fee.

Example: 0.25
cardTypestringOptional

Card type.

Example: CREDIT_CARD
cardAssociationstring · enumOptional

Card scheme/brand.

Example: MASTER_CARDPossible values:
cardFamilystringOptional

Card product/family.

Example: Axess
binNumberstringOptional

BIN (first 8 digits).

Example: 552608
lastFourDigitsstringOptional

Last 4 digits of the card.

Example: 0006
basketIdstringOptional

Basket ID.

Example: basketId
currencystringOptional

Currency of the payment.

Example: TRY
authCodestringOptional

Authorization code returned by the bank.

Example: 847162
phasestringOptional

Payment phase.

Example: AUTH
mdStatusinteger · enumOptional

3DS authentication result.

  • 1: Successful
  • 0,2-8: Failed
Example: 1Possible values:
hostReferencestringOptional

Host reference returned by the bank/acquirer.

Example: mock00001iyzihostrfn
signaturestringOptional

Signature value that can be used for verification.

Example: f95c9246235c30cad41169bb1df7381b7ffe42bf1ea1226c2dd211e83dfe40f7
post
/payment/v2/3dsecure/auth
HTTP

Last updated