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

CheckoutForm

Checkout Form (CF) Initialize

post

Starts a Checkout Form session and returns checkoutFormContent / paymentPageUrl and a token to render the payment page.

Header parameters
AuthorizationstringRequired

Authorization header that starts with IYZWSv2 and is a signed hash generated in Base64 format.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequired

Content-Type value.

Example: application/json
Body
localestring · enumOptional

Language code. Default is tr. Send en to render the form in English.

Example: enPossible values:
conversationIdstringOptional

Request/response correlation ID. The value sent in the request is returned unchanged in the response.

Example: conversationId
pricedecimalRequired

Basket total.

Example: 6
paidPricedecimalRequired

Total amount to be charged.

Example: 6
currencystring · enumRequired

Currency. Default is TRY.

Example: TRYPossible values:
basketIdstringOptional

Basket ID.

Example: basketId
paymentGroupstring · enumOptional

Payment group. Default is PRODUCT.

Example: PRODUCTPossible values:
callbackUrlstringRequired

Merchant URL that iyzico calls to deliver both success and failure results. Must have a valid SSL certificate.

Example: https://callback.com/test
enabledInstallmentsinteger[]Optional

Available installment options.

Example: [1,2,3,4,6,9,12]
Responses
200

Successful response (CF initialized)

application/json
statusstring · enumOptional

Result of the request.

Example: successPossible values:
localestringOptional

Response language.

Example: en
systemTimeintegerOptional

System time (epoch ms).

Example: 1755536500000
conversationIdstringOptional

Correlation ID that matches the request.

Example: conversationId
tokenstringOptional

Unique token generated for the checkout form. Mandatory to retrieve the payment result.

Example: 077aff05-1e9b-44aa-aa11-c268bb8b3826
checkoutFormContentstringOptional

HTML content of the payment form (Base64-encoded).

Example: <script type="text/javascript">if (typeof iyziInit == 'undefined') {var iyziInit = {currency...
paymentPageUrlstringOptional

URL of iyzico’s hosted payment page (Common Payment Page).

Example: https://sandbox-api.iyzipay.com/checkoutform/...
signaturestringOptional

Signature value that can be used for integrity verification.

Example: 4baf094819adc7015f615058d4ec2abf472c99476bcffddcda0ed18edf3f5351
post/payment/iyzipos/checkoutform/initialize/auth/ecom

Checkout Form (CF) Retrieve

post

After the CF payment form is completed, queries the result using the token.

Header parameters
AuthorizationstringRequired

Authorization header that starts with IYZWSv2 and is a signed hash generated in Base64 format.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequired

Content-Type value.

Example: application/json
Body
localestring · enumOptional

Language code. Default is tr.

Example: enPossible values:
conversationIdstringOptional

Request/response correlation ID. The value sent in the request is returned unchanged in the response.

Example: 8152109759
tokenstringRequired

Token returned in the CF initialize response.

Example: 077aff05-1e9b-44aa-aa11-c268bb8b3826
Responses
200

Successful response (payment completed)

application/json
statusstring · enumOptional

Result of the request.

Example: successPossible values:
localestringOptional

Response language.

Example: en
systemTimeintegerOptional

System time (epoch ms).

Example: 1755536577419
conversationIdstringOptional

Correlation ID that matches the request.

Example: 8152109759
pricedecimalOptional

Basket total amount.

Example: 6
paidPricedecimalOptional

Total charged amount.

Example: 6
installmentintegerOptional

Number of installments.

Example: 1
paymentIdstringOptional

Payment ID.

Example: 24478123
fraudStatusinteger · enumOptional

Payment status according to fraud filters. If the risk score is low, the payment is approved immediately; if the risk score is high, the payment is rejected. The merchant should ship only when the value is 1; for 0, wait for notification.

  • 1: Approved
  • 0: In review
  • -1: Rejected
Example: 1Possible values:
merchantCommissionRatedecimalOptional

Merchant’s installment/commission rate. For example, if price=100 and paidPrice=110, the rate is 10%. Informational.

Example: 0
merchantCommissionRateAmountdecimalOptional

Merchant’s installment/commission amount. Example; 10 when price=100 and paidPrice=110. Informational.

Example: 0
iyziCommissionRateAmountdecimalOptional

iyzico processing commission amount for the payment.

Example: 0.2094
iyziCommissionFeedecimalOptional

iyzico processing fee for the payment.

Example: 0.25
cardTypestring · enumOptional

Card type.

Example: CREDIT_CARDPossible values:
cardAssociationstring · enumOptional

Card brand.

Example: MASTER_CARDPossible values:
cardFamilystring · enumOptional

Card family.

Example: AxessPossible values:
binNumberstringOptional

BIN (first 8 digits).

Example: 552608
lastFourDigitsstringOptional

Last 4 digits of the card.

Example: 0006
basketIdstringOptional

Basket ID.

Example: basketId
currencystring · enumOptional

Currency of the payment.

Example: TRYPossible values:
authCodestringOptional

Authorization code returned by the bank.

Example: 930115
phasestringOptional

Payment phase.

Example: AUTH
hostReferencestringOptional

Bank-provided host reference value for the payment.

Example: mock00007iyzihostrfn
signaturestringOptional

Signature value that can be used for integrity verification.

Example: 1960256fa0406e6ca0e02a71a9d0b3bd72c2aad4e2677cd315975a4dc8ecfaa5
tokenstringOptional

Checkout Form token value.

Example: 077aff05-1e9b-44aa-aa11-c268bb8b3826
callbackUrlstringOptional

Callback URL.

Example: https://callback.com/test
paymentStatusstringOptional

Result of the payment.

Example: SUCCESS
post/payment/iyzipos/checkoutform/auth/ecom/detail

Last updated