Marketplace Payment
Example shows the Non3D method. In a marketplace flow, each basket split must include sub-merchant fields.
Header parameters
AuthorizationstringRequiredExample:
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Content-Typestring · enumRequiredExample:
Request body content type.
application/jsonPossible values: Body
Non3D payment request. In the marketplace model, each basket split must include sub-merchant fields.
localestring · enumOptionalExample:
Response language.
enPossible values: conversationIdstringOptionalExample:
Correlation value that is echoed back in the response.
123456789pricedecimalRequiredExample:
Basket (cart) total. Sum of basket item prices must equal price.
100paidPricedecimalRequiredExample:
Final amount to be charged at POS; can be less than, greater than, or equal to price.
100currencystring · enumOptionalExample:
Payment currency (default TRY).
TRYPossible values: installmentinteger · enumOptionalExample:
Installment count. Default; 1
1Possible values: paymentChannelstring · enumOptionalExample:
Payment channel. Default; "WEB"
WEBPossible values: basketIdstringOptionalExample:
Basket/order identifier on the merchant side.
basketIdpaymentGroupstring · enumOptionalExample:
Payment group.
PRODUCTPossible values: Responses
200
Success
application/json
400
Error
application/json
post
/payment/authPOST https://api.iyzipay.com/payment/auth
Authorization: {{authorization}}
Content-Type: application/json
{
"locale": "en",
"conversationId": "123456789",
"price": 100.0,
"paidPrice": 100.0,
"currency": "TRY",
"installment": 1,
"paymentChannel": "WEB",
"basketId": "basketId",
"paymentGroup": "PRODUCT",
"paymentCard": {
"cardHolderName": "John Doe",
"cardNumber": "5526080000000006",
"expireYear": "2025",
"expireMonth": "12",
"cvc": "123",
"registerCard": 0
},
"buyer": {
"id": "BY789",
"name": "John",
"surname": "Doe",
"identityNumber": "74300864791",
"email": "[email protected]",
"gsmNumber": "+905350000000",
"registrationDate": "2013-04-21 15:12:09",
"lastLoginDate": "2015-10-05 12:43:35",
"registrationAddress": "Altunizade Mah. İnci Çıkmazı Sokak No: 3 İç Kapı No: 10 Üsküdar İstanbul",
"city": "Istanbul",
"country": "Turkey",
"zipCode": "34732",
"ip": "85.34.78.112"
},
"shippingAddress": {
"address": "Altunizade Mah. İnci Çıkmazı Sokak No: 3 İç Kapı No: 10 Üsküdar İstanbul",
"zipCode": "34742",
"contactName": "Jane Doe",
"city": "Istanbul",
"country": "Turkey"
},
"billingAddress": {
"address": "Altunizade Mah. İnci Çıkmazı Sokak No: 3 İç Kapı No: 10 Üsküdar İstanbul",
"contactName": "Jane Doe",
"city": "Istanbul",
"country": "Turkey"
},
"basketItems": [
{
"id": "BI103",
"name": "Usb",
"price": 100.0,
"category1": "Electronics",
"category2": "Usb / Cable",
"itemType": "PHYSICAL",
"subMerchantKey": "n621Bd1zi4vpW/uVkMc8vCnwTPk=",
"subMerchantPrice": 94.2,
"withholdingTax": 0.8
}
]
}
{
"status": "success",
"locale": "en",
"systemTime": 1756197410420,
"conversationId": "123456789",
"price": 100,
"paidPrice": 100,
"installment": 1,
"paymentId": "25223114",
"fraudStatus": 1,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 3.49,
"iyziCommissionFee": 0.25,
"cardType": "CREDIT_CARD",
"cardAssociation": "MASTER_CARD",
"cardFamily": "Axess",
"binNumber": "552608",
"lastFourDigits": "0006",
"basketId": "basketId",
"currency": "TRY",
"itemTransactions": [
{
"itemId": "BI103",
"paymentTransactionId": "27212232",
"transactionStatus": 1,
"price": 100,
"paidPrice": 100,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 3.49,
"iyziCommissionFee": 0.25,
"blockageRate": 0,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"withholdingTax": 0.8,
"blockageResolvedDate": "2025-09-02 11:36:50",
"subMerchantKey": "n621Bd1zi4vpW/uVkMc8vCnwTPk=",
"externalSubMerchantId": "ExternalId31",
"subMerchantPrice": 94.2,
"subMerchantPayoutRate": 94.2,
"subMerchantPayoutAmount": 94.2,
"merchantPayoutAmount": 2.06,
"convertedPayout": {
"paidPrice": 100,
"iyziCommissionRateAmount": 3.49,
"iyziCommissionFee": 0.25,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"subMerchantPayoutAmount": 94.2,
"merchantPayoutAmount": 2.06,
"iyziConversionRate": 0,
"iyziConversionRateAmount": 0,
"currency": "TRY"
}
}
],
"authCode": "038911",
"phase": "AUTH",
"hostReference": "mock00007iyzihostrfn",
"signature": "8ab2a15666c4687a47d2f3144034d732e5dae1d3b3a3a07b35823493fffe109e"
}Last updated
