# Form Tipine Bağlı Doküman Çekme Servisi

Başvuru yapılan firmanın başvuru türüne göre zorunlu dokümanlarının çekilme servisidir.

Başvuru id ve bu servisten dönen  doctypeid parametresi doküman yükleme/silme servisleri çağrılırken kullanılır.Doküman tipleri çekilebilmesi için **"v1/membership/formtypes\_and\_doctypes"** servisine post isteği atılması gereklidir. Şahıs başvuruları için form\_type parametresine 2, ticari başvurular için 3 değerini gönderebilirsiniz.

{% hint style="success" %}
<https://api.paynet.com.tr/v1/membership/formtypes_and_doctypes>
{% endhint %}

{% tabs %}
{% tab title="İstek Parametreleri" %}

| Parametre İsmi | Tip    | Zorunlu | Açıklama  |
| -------------- | ------ | ------- | --------- |
| **form\_type** | string | Evet    | Form tipi |
| {% endtab %}   |        |         |           |

{% tab title="Dönüş Parametreleri" %}

| Parametre İsmi        | Tip        | Açıklama                                                                                                          |
| --------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------- |
| **object\_name**      | string     | Dönen cevabın nesne adıdır.                                                                                       |
| **code**              | string     | İşlemin cevap kodu 0 ise başarılıdır.Bknz.[Dönüş Kodları](/uornek/genel-bilgiler/hata-kodlari/doenues-kodlari.md) |
| **message**           | string     | İşlemin cevap koduna göre mesaj bilgisini barındırır.                                                             |
| **Data\[]**           | dizi       |                                                                                                                   |
| **-> formtype\_id**   | int        | Form tipi parametresi dönülmektedir.                                                                              |
| **-> doctype\_id**    | int        | Form tipine bağlı doküman tipi dönülmektedir.                                                                     |
| **-> formtype\_desc** | string(20) | İlgili form tipinin açıklaması dönülmektedir.                                                                     |
| **-> doctype\_desc**  | string(50) | İlgili doküman tipinin açıklaması dönülmektedir.                                                                  |
| **-> is\_required**   | bool       | Bayinizin bulunduğu ilçe bilgisi girilmelidir.                                                                    |
| {% endtab %}          |            |                                                                                                                   |

{% tab title="Request" %}

```
{
  form_type: 2
}

```

{% endtab %}

{% tab title="Response" %}

```
{  
   "Data":[  
      {  
         "formtype_id":2,
         "doctype_id":1,
         "formtype_desc":"Şahıs Firma",
         "doctype_desc":"Kimlik Ön Görseli",
         "is_required":true
      },
      {  
         "formtype_id":2,
         "doctype_id":2,
         "formtype_desc":"Şahıs Firma",
         "doctype_desc":"Kimlik Arka Görseli",
         "is_required":true
      },
      {  
         "formtype_id":2,
         "doctype_id":3,
         "formtype_desc":"Şahıs Firma",
         "doctype_desc":"Vergi Levhası Görseli",
         "is_required":true
      }
   ],
   "object_name":"membership_formtypes_and_doctypes",
   "code":0,
   "message":"Başarılı İşlem"
}

```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                                                                                                                                                                                                                          |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Canlı Sistem** | [https://api.paynet.com.tr\[/v1/membership/formtypes\\\_and\\\_doctypes](https://doc.paynet.com.tr/uornek/servisler/basvuru/https:/api.paynet.com.tr\[/v1/membership/formtypes\\_and\\_doctypes)]\(<https://api.paynet.com.tr/v1/membership/formtypes_and_doctypes>)         |
| **Test Sistemi** | [https://pts-api.paynet.com.tr\[/v1/membership/formtypes\\\_and\\\_doctypes](https://doc.paynet.com.tr/uornek/servisler/basvuru/https:/pts-api.paynet.com.tr\[/v1/membership/formtypes\\_and\\_doctypes)]\(<https://api.paynet.com.tr/v1/membership/formtypes_and_doctypes>) |
| {% endtab %}     |                                                                                                                                                                                                                                                                              |
| {% endtabs %}    |                                                                                                                                                                                                                                                                              |


---

# 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://doc.paynet.com.tr/uornek/servisler/basvuru/untitled.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.
