# Pazaryeri Ödemesi

Pazaryeri türünde ödeme almanın birden fazla yolu bulunmaktadır. 4 farklı türde ödeme alabilmektedir. Bu ödeme türleri aşağıda belirtilmiştir.

### Ödeme Türü Belirleme

<table data-card-size="large" data-view="cards"><thead><tr><th data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/pages/vtS18CXkjJn7lSzez2Am">/pages/vtS18CXkjJn7lSzez2Am</a></td></tr><tr><td><a href="/pages/8w7DlEFOTrCcdOXOkx0y">/pages/8w7DlEFOTrCcdOXOkx0y</a></td></tr><tr><td><a href="/pages/9img6la4fJokKFfD7KbV">/pages/9img6la4fJokKFfD7KbV</a></td></tr><tr><td><a href="/pages/ugoJJmTz1rRzSg3mK7Tm">/pages/ugoJJmTz1rRzSg3mK7Tm</a></td></tr></tbody></table>

{% hint style="info" %}
Pazaryeri sahibi olarak satış yapmak istiyorsanız iki adet yöntem bulunmaktadır.

1. **Kendinize ait** bir alt üye oluşturup bu alt üyeyi ürünlere tanımlayarak,
2. Alt üye olmadan satış yapmak istiyorsanız eğer **paymentGroup** parametresini **LISTING** göndererek yapabilirsiniz. ( Bu yapıyı uygularsanız submerchantkey parametresi **kullanılamamaktadır**. )
   {% endhint %}

Dört adet ödeme türünden birine karar verdikten sonra yapmanız gereken ekstra 2 parametre eklemek olacaktır. Bunlar **subMerchantKey** ve **subMerchantPrice** parametreleridir. Bu parametreleri ödeme isteğinde bulunan her ürüne tanımlamanız gerekmektedir.

<table><thead><tr><th width="194">Parametre İsmi</th><th width="77">Tip</th><th width="115">Zorunluluk</th><th>Açıklama</th></tr></thead><tbody><tr><td><strong>subMerchantKey</strong></td><td>string</td><td>evet</td><td>Alt üye işyeri oluşturma sorgusundan dönen değer.</td></tr><tr><td><strong>subMerchantPrice</strong></td><td>string</td><td>evet</td><td>Alt üye işyerine IBAN adresine gönderilmesi istenen tutar.</td></tr></tbody></table>

## Pazaryeri Ödemesi

> Örnek olarak NON3D yöntemi paylaşılmıştır. Tüm ödeme yöntemlerinde pazaryeri için her bir ödeme kırılımında alt üye alanlarını eklenmelidir.<br>

```json
{"openapi":"3.0.3","info":{"title":"Non3D Ödeme (Marketplace)","version":"1.0.4"},"servers":[{"url":"https://api.iyzipay.com","description":"iyzico API"}],"paths":{"/payment/auth":{"post":{"summary":"Pazaryeri Ödemesi","description":"Örnek olarak NON3D yöntemi paylaşılmıştır. Tüm ödeme yöntemlerinde pazaryeri için her bir ödeme kırılımında alt üye alanlarını eklenmelidir.\n","tags":["Ödeme Metotları"],"parameters":[{"$ref":"#/components/parameters/AuthHeader"},{"$ref":"#/components/parameters/ContentTypeHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Non3DMarketplaceRequest"}}}},"responses":{"200":{"description":"Başarılı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Non3DMarketplaceResponse"}}}},"400":{"description":"Hata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"parameters":{"AuthHeader":{"name":"Authorization","in":"header","required":true,"description":"Authorization header, IYZWSv2 ile başlayan ve base64 formatında üretilmiş imzalı hash değeridir.","schema":{"type":"string"}},"ContentTypeHeader":{"name":"Content-Type","in":"header","required":true,"description":"İstek gövdesi formatı.","schema":{"type":"string","enum":["application/json"]}}},"schemas":{"Non3DMarketplaceRequest":{"type":"object","required":["price","paidPrice","shippingAddress","billingAddress","paymentCard","basketItems","buyer"],"description":"Non3D ödeme isteği. Pazaryeri modelinde her bir ödeme kırılımında alt üye bilgilerinin gönderilemsi gereklidir.","properties":{"locale":{"type":"string","enum":["tr","en"],"description":"Yanıt dili."},"conversationId":{"type":"string","description":"İstek/yanıt eşleştirmesi için gönderilen değer; yanıtta aynen geri döner."},"price":{"type":"decimal","description":"Ödeme sepet tutarı. **Kırılım (basketItems) tutarları toplamı price’a eşit olmalıdır.**"},"paidPrice":{"type":"decimal","description":"İndirim/vade farkı sonrası **POS’tan geçecek nihai tutar**; price’tan küçük, büyük veya eşit olabilir."},"currency":{"type":"string","enum":["TRY","USD","EUR","GBP"],"description":"Ödeme para birimi (varsayılan TRY)."},"installment":{"type":"integer","description":"Taksit sayısı. Varsayılan; 1","enum":[1,2,3,6,9,12]},"paymentChannel":{"type":"string","enum":["WEB","MOBILE","MOBILE_WEB","MOBILE_IOS","MOBILE_ANDROID","MOBILE_WINDOWS","MOBILE_TABLET","MOBILE_PHONE"],"description":"Ödeme kanalı. Varsayılan; \"WEB\""},"basketId":{"type":"string","description":"Üye işyeri tarafındaki sepet/sipariş kimliği (sipariş numarası veya anlamlı başka bir değer olabilir)."},"paymentGroup":{"type":"string","enum":["PRODUCT","LISTING","SUBSCRIPTION","OTHER"],"description":"Ödeme grubu."},"paymentCard":{"type":"object","required":["cardHolderName","cardNumber","expireMonth","expireYear","cvc"],"description":"Kart bilgileri.","properties":{"cardHolderName":{"type":"string","description":"Kart üzerindeki ad/soyad."},"cardNumber":{"type":"string","description":"Kart numarası (PAN)."},"expireYear":{"type":"string","description":"Son kullanma yılı (YYYY)."},"expireMonth":{"type":"string","description":"Son kullanma ayı (MM)."},"cvc":{"type":"string","description":"Güvenlik kodu."},"registerCard":{"type":"integer","enum":[0,1],"description":"1 gönderilirse kart saklanır. Kart saklama özelliği aktif olmalıdır."}}},"buyer":{"type":"object","description":"Alıcı bilgileri.","required":["id","name","surname","identityNumber","email","gsmNumber","registrationAddress","city","country"],"properties":{"id":{"type":"string","description":"Üye işyeri tarafındaki kullanıcı ID."},"name":{"type":"string","description":"Ad."},"surname":{"type":"string","description":"Soyad."},"identityNumber":{"type":"string","description":"TCKN."},"email":{"type":"string","description":"E-posta."},"gsmNumber":{"type":"string","description":"GSM (+90...)."},"registrationDate":{"type":"string","description":"Kayıt tarihi."},"lastLoginDate":{"type":"string","description":"Son giriş tarihi."},"registrationAddress":{"type":"string","description":"Kayıt adresi."},"city":{"type":"string","description":"Şehir."},"country":{"type":"string","description":"Ülke."},"zipCode":{"type":"string","description":"Posta kodu."},"ip":{"type":"string","description":"İşlem IP adresi."}}},"shippingAddress":{"$ref":"#/components/schemas/Address"},"billingAddress":{"$ref":"#/components/schemas/BillingAddress"},"basketItems":{"type":"array","minItems":1,"description":"Sepetteki ürünlerin listesi. **Marketplace** için alt üye alanları gereklidir.","items":{"$ref":"#/components/schemas/BasketItemMarketplace"}}}},"Address":{"type":"object","description":"Kargo Adresi. Sepetteki ürünlerden en az bir tanesinin, itemType \"PHYSICAL\" olması durumunda gönderilmesi zorunludur. Tüm ürünler \"VIRTUAL\" olduğu takdirde gönderilmesi gerekmez.\n","required":["address","contactName","city","country"],"properties":{"address":{"type":"string","description":"Tam adres."},"zipCode":{"type":"string","description":"Posta/ZIP kodu."},"contactName":{"type":"string","description":"İrtibat adı."},"city":{"type":"string","description":"Şehir."},"country":{"type":"string","description":"Ülke."}}},"BillingAddress":{"type":"object","description":"Fatura Adresi.","required":["address","contactName","city","country"],"properties":{"address":{"type":"string","description":"Tam adres."},"zipCode":{"type":"string","description":"Posta/ZIP Kodu."},"contactName":{"type":"string","description":"İrtibat adı."},"city":{"type":"string","description":"Şehir."},"country":{"type":"string","description":"Ülke."}}},"BasketItemMarketplace":{"type":"object","description":"Sepetteki ürünlerin listesi.","required":["id","price","name","category1","itemType","subMerchantKey","subMerchantPrice"],"properties":{"id":{"type":"string","description":"Üye işyeri tarafındaki kırılım bazında ürün ID."},"name":{"type":"string","description":"Kırılım adı."},"price":{"type":"decimal","description":"Kırılım fiyatı; 0 olamaz ve tüm kırılımların toplamı `price` (sepet) ile eşit olmalıdır."},"category1":{"type":"string","description":"Birincil kategori."},"category2":{"type":"string","description":"İkincil kategori."},"itemType":{"type":"string","enum":["PHYSICAL","VIRTUAL"],"description":"Ürün türü."},"subMerchantKey":{"type":"string","description":"Alt üye işyeri **anahtarı** (pazaryeri için zorunlu)."},"subMerchantPrice":{"type":"decimal","description":"Alt üyenin hakedişi/aktarılacak tutar (pazaryeri için **zorunlu**)."},"withholdingTax":{"type":"decimal","description":"Stopaj tutarı. Pazaryeri, stopajı kendisi hesaplayıp alt satıcı hakedişinden düşebilir; bu tutarın ödeme sonucu ve **Para Gönderim Raporu**’nda görünmesi isteniyorsa `withholdingTax` **dolu** gönderilmelidir. (Bilgi amaçlı kaydedilir; iyzico hesaplama yapmaz.) \n"}}},"Non3DMarketplaceResponse":{"type":"object","description":"Non3D ödeme başarılı yanıtı.","properties":{"status":{"type":"string","enum":["success","failure"],"description":"İşlem sonucu (başarı/başarısız)."},"locale":{"type":"string","enum":["tr","en"],"description":"Yanıt dili."},"systemTime":{"type":"integer","description":"İşlem zamanı (epoch ms)."},"conversationId":{"type":"string","description":"İstek/yanıt eşleştirme ID’si."},"price":{"type":"decimal","description":"Talep edilen ana tutar (sepet)."},"paidPrice":{"type":"decimal","description":"Çekilen toplam tutar (POS üzerinden)."},"installment":{"type":"integer","description":"Taksit sayısı."},"paymentId":{"type":"string","description":"iyzico ödeme numarası."},"fraudStatus":{"type":"integer","enum":[0,-1,1],"description":"Fraud filtrelerine göre ödeme durumu. Eğer ödemenin fraud risk skoru düşük ise ödemeye anında onay verilir, eğer fraud risk skoru yüksek ise ödeme işlemi reddedilir. Üye işyeri sadece 1 olan işlemlerde ürünü kargoya vermelidir, 0 olan işlemler için bilgilendirme beklemelidir.\n - 1: Onaylandı\n - 0: İncelemede\n - -1: Reddedildi\n"},"merchantCommissionRate":{"type":"decimal","description":"İş yeri komisyon oranı."},"merchantCommissionRateAmount":{"type":"decimal","description":"İş yeri komisyon tutarı."},"iyziCommissionRateAmount":{"type":"decimal","description":"iyzico komisyon oran tutarı."},"iyziCommissionFee":{"type":"decimal","description":"iyzico sabit ücret."},"cardType":{"type":"string","description":"Kart türü (CREDIT_CARD/DEBIT_CARD vb.)."},"cardAssociation":{"type":"string","description":"Kart şeması (VISA/MASTER_CARD vb.)."},"cardFamily":{"type":"string","description":"Kart ailesi/markası."},"binNumber":{"type":"string","description":"BIN numarası (ilk 6 hane)."},"lastFourDigits":{"type":"string","description":"Kartın son 4 hanesi."},"basketId":{"type":"string","description":"Sepet ID."},"currency":{"type":"string","description":"Para birimi."},"itemTransactions":{"type":"array","description":"Her bir ürün için ödeme kırılımı.","items":{"type":"object","properties":{"itemId":{"type":"string","description":"Kırılım ID."},"paymentTransactionId":{"type":"string","description":"Ödeme kırılım ID’si."},"transactionStatus":{"type":"integer","enum":[0,-1,1,2],"description":"Ödeme kırılımının durumu.\n- 0: Fraud kontrolünde\n- -1: Fraud kontrolünden sonra reddedildi\n- 1: Onaylandı. (Pazaryerinde 1 değeri Üye İşyeri Onayı Bekliyor Anlamına Gelir)\n- 2: Onaylandı (Pazaryeri Onay Verilmiş)\n"},"price":{"type":"decimal","description":"Ödeme kırılım tutarı."},"paidPrice":{"type":"decimal","description":"Ödeme kırılımı için tahsil edilen tutar."},"merchantCommissionRate":{"type":"decimal","description":"Ödeme kırılımında uygulanan iş yeri komisyon oranı."},"merchantCommissionRateAmount":{"type":"decimal","description":"Ödeme kırılımında uygulanan iş yeri komisyon tutarı."},"iyziCommissionRateAmount":{"type":"decimal","description":"Ödeme kırılımı için iyzico komisyon oran tutarı."},"iyziCommissionFee":{"type":"decimal","description":"Ödeme kırılımın için iyzico sabit ücret."},"blockageRate":{"type":"integer","description":"Blokaj oranı."},"blockageRateAmountMerchant":{"type":"decimal","description":"İş yeri blokaj tutarı."},"blockageRateAmountSubMerchant":{"type":"decimal","description":"Alt üye blokaj tutarı."},"withholdingTax":{"type":"decimal","description":"Stopaj tutarı."},"blockageResolvedDate":{"type":"string","description":"Blokaj çözülme tarihi (YYYY-MM-DD hh:mm:ss)."},"subMerchantKey":{"type":"string","description":"Alt üye işyeri anahtarı."},"externalSubMerchantId":{"type":"string","description":"Üye işyerinin alt üye için kendi external ID’si."},"subMerchantPrice":{"type":"decimal","description":"Alt üye işyerine aktarılacak tutar"},"subMerchantPayoutRate":{"type":"decimal","description":"Alt üye pay oranı."},"subMerchantPayoutAmount":{"type":"decimal","description":"Alt üye ödenecek tutar."},"merchantPayoutAmount":{"type":"decimal","description":"Üye işyerine ödenecek tutar."},"convertedPayout":{"type":"object","description":"Hesap özeti (dönüşüm sonrası para biriminde).","properties":{"paidPrice":{"type":"decimal","description":"Tahsil edilen tutar (dönüşüm sonrası)."},"iyziCommissionRateAmount":{"type":"decimal","description":"Komisyon oran tutarı (dönüşüm sonrası)."},"iyziCommissionFee":{"type":"decimal","description":"Sabit komisyon (dönüşüm sonrası)."},"blockageRateAmountMerchant":{"type":"decimal","description":"İş yeri blokaj tutarı (dönüşüm sonrası)."},"blockageRateAmountSubMerchant":{"type":"decimal","description":"Alt üye blokaj tutarı (dönüşüm sonrası)."},"subMerchantPayoutAmount":{"type":"decimal","description":"Alt üyeye ödenecek tutar (dönüşüm sonrası)."},"merchantPayoutAmount":{"type":"decimal","description":"İş yerine ödenecek tutar (dönüşüm sonrası)."},"iyziConversionRate":{"type":"decimal","description":"Döviz dönüşüm oranı."},"iyziConversionRateAmount":{"type":"decimal","description":"Döviz dönüşüm tutarı."},"currency":{"type":"string","description":"Dönüşüm sonrası para birimi."}}}}}},"authCode":{"type":"string","description":"Banka provizyon kodu."},"phase":{"type":"string","description":"İşlem fazı (AUTH/PREAUTH vb.)."},"hostReference":{"type":"string","description":"Host referansı."},"signature":{"type":"string","description":"Yanıt imzası (doğrulama için)."}}},"ErrorResponse":{"type":"object","description":"Hata yanıtı.","properties":{"status":{"type":"string","enum":["failure"],"description":"İşlem sonucu."},"errorCode":{"type":"string","description":"Hata kodu."},"errorMessage":{"type":"string","description":"Hata mesajı."},"locale":{"type":"string","enum":["tr","en"],"description":"Yanıt dili."},"systemTime":{"type":"integer","description":"İşlem zamanı (epoch ms)."},"conversationId":{"type":"string","description":"İstek/yanıt eşleştirme ID’si."}}}}}}
```

#### Örnek Kodlar

<table data-view="cards"><thead><tr><th></th></tr></thead><tbody><tr><td><a href="https://github.com/iyzico/iyzipay-php/blob/master/samples/create_marketplace_payment.php">PHP</a></td></tr><tr><td><a href="https://github.com/iyzico/iyzipay-java/blob/master/src/test/java/com/iyzipay/sample/PaymentSample.java#L128">Java</a></td></tr><tr><td><a href="https://github.com/iyzico/iyzipay-dotnet/blob/master/Iyzipay.Samples/PaymentSample.cs#L206">.NET</a></td></tr><tr><td><a href="https://github.com/iyzico/iyzipay-node/blob/master/samples/IyzipaySamples.js#L653">Node.Js</a></td></tr><tr><td><a href="https://github.com/iyzico/iyzipay-python/blob/master/samples/create_marketplace_payment.py">Python</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.iyzico.com/urunler/pazaryeri/pazaryeri-entegrasyonu/pazaryeri-odemesi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
