Submerchant
Creates a submerchant for the marketplace model. Supported types are PERSONAL, PRIVATE_COMPANY, and LIMITED_OR_JOINT_STOCK_COMPANY. The subme rchant type is selected via the subMerchantType parameter.
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonThe request body varies depending on subMerchantType.
Successful response
Error response
POST https://api.iyzipay.com/onboarding/submerchant
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "conversationId",
"name": "John's market Test",
"email": "[email protected]",
"gsmNumber": "+905350000000",
"address": "Altunizade Mah. İnci Çıkmazı Sokak No: 3 İç Kapı No: 10 Üsküdar İstanbul",
"iban": "TR180006200119000006672315",
"contactName": "John",
"contactSurname": "Doe",
"currency": "TRY",
"subMerchantExternalId": "ExternalId",
"identityNumber": "11111111111",
"subMerchantType": "PERSONAL"
}
{
"status": "success",
"locale": "en",
"systemTime": 1755847240070,
"conversationId": "conversationId",
"subMerchantKey": "wt6aF2hwJpms2w7AhTBTW5le9kM="
}Updates an existing submerchant. The request body shape varies by submerchant type; one of three variants must be sent. The subMerchantType field is not included in the update body.
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonUpdate fields vary by submerchant type. Do not send subMerchantType in update.
Successful response
Error response
PUT https://api.iyzipay.com/onboarding/submerchant
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "conversationId",
"name": "Jane2's market",
"email": "[email protected]",
"gsmNumber": "+905350000000",
"address": "Altunizade Mah. İnci Çıkmazı Sokak No: 3 İç Kapı No: 10 Üsküdar İstanbul",
"iban": "TR180006200119000006672315",
"contactName": "Jane",
"contactSurname": "Doe",
"currency": "TRY",
"identityNumber": "11111111111",
"subMerchantKey": "wkF6Nkyn01vmTDNErfJtYkNoFAw="
}
{
"status": "success",
"locale": "en",
"systemTime": 1755857408023,
"conversationId": "123456789"
}Returns submerchant details by external ID (subMerchantExternalId).
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonenPossible values: 123456789ExternalId of the submerchant to query.
S49222Successful response
Error response
POST https://api.iyzipay.com/onboarding/submerchant/detail
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "123456789",
"subMerchantExternalId": "S49222"
}
{
"status": "success",
"locale": "en",
"systemTime": 1686439210683,
"conversationId": "123456789",
"name": "Jane's market",
"email": "[email protected]",
"gsmNumber": "+905350000000",
"address": "Altunizade Mah. İnci Çıkmazı Sokak No: 3 İç Kapı No: 10 Üsküdar İstanbul",
"iban": "TR180006200119000006672315",
"bankCountry": "TR",
"currency": "TRY",
"taxOffice": "Tax office",
"legalCompanyTitle": "Jane Doe inc",
"subMerchantExternalId": "S49222",
"identityNumber": "11111111111",
"subMerchantType": "PRIVATE_COMPANY",
"subMerchantKey": "//1GpuCHXkofxapmacyoimf6u/o="
}This service is used to modify the payout amount of the submerchant or update the submerchant information based on a single paymentTransaction
Authorization header; a signed hash value that starts with IYZWSv2 and is generated in Base64 format.
IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=Request body content type.
application/jsonenPossible values: 123456789Payment split id.
20947104Submerchant key.
favC6OGPAVHb97HwXG5GPKd4KuE=Amount to be transferred to the submerchant.
11Successful response
Error response
PUT https://api.iyzipay.com/payment/item
Authorization: IYZWSv2 YXBpS2V5OnNhbmRib....E0OGI1MTE=
Content-Type: application/json
{
"locale": "en",
"conversationId": "123456789",
"paymentTransactionId" : "20947104",
"subMerchantKey" : "favC6OGPAVHb97HwXG5GPKd4KuE=",
"subMerchantPrice" : "11.0"
}
{
"status": "success",
"locale": "en",
"systemTime": 1686442628687,
"conversationId": "123456789",
"itemId": "BI102",
"paymentTransactionId": "20947104",
"transactionStatus": 1,
"price": 50,
"paidPrice": 50,
"merchantCommissionRate": 0,
"merchantCommissionRateAmount": 0,
"iyziCommissionRateAmount": 2,
"iyziCommissionFee": 0.125,
"blockageRate": 0,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"blockageResolvedDate": "2023-06-19 00:00:00",
"subMerchantKey": "favC6OGPAVHb97HwXG5GPKd4KuE=",
"subMerchantPrice": 11,
"subMerchantPayoutRate": 22,
"subMerchantPayoutAmount": 11,
"merchantPayoutAmount": 36.875,
"convertedPayout": {
"paidPrice": 50,
"iyziCommissionRateAmount": 2,
"iyziCommissionFee": 0.125,
"blockageRateAmountMerchant": 0,
"blockageRateAmountSubMerchant": 0,
"subMerchantPayoutAmount": 11,
"merchantPayoutAmount": 36.875,
"iyziConversionRate": 0,
"iyziConversionRateAmount": 0,
"currency": "TRY"
}
}Last updated
