# Döküman Tipleri Çekme Servisi

Başvurusu yapılan firmanın yüklemesi gereken 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\_all"** servisine post isteği atılması gerekir. **İstek atılırken herhangi bir parametre istenilmemektedir.**

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

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

| Parametre İsmi        | Tip            | Açıklama                                                                                                           |
| --------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------ |
| **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(max 20) | İlgili form tipinin açıklaması dönülmektedir.                                                                      |
| **-> doctype\_desc**  | string(max 50) | İlgili doküman tipinin açıklaması dönülmektedir.                                                                   |
| **-> is\_required**   | bool           | ?                                                                                                                  |
| **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.                                                              |
| {% endtab %}          |                |                                                                                                                    |

{% tab title="Response" %}

```
{ 
  "Data": [
{
            "formtype_id": 4,
            "doctype_id": 99,
            "formtype_desc": "Bayi Ağı",
            "doctype_desc": "Online Sözleşme",
            "is_required": false
        }
    ],
    "object_name": "membership_formtypes_and_doctypes_all",
    "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\\\_all](https://doc.paynet.com.tr/uornek/servisler/basvuru/https:/api.paynet.com.tr\[/v1/membership/formtypes\\_and\\_doctypes\\_all)]\(<https://api.paynet.com.tr/v1/membership/formtypes_and_doctypes_all>)         |
| **Test Sistemi** | [https://pts-api.paynet.com.tr\[/v1/membership/formtypes\\\_and\\\_doctypes\\\_all](https://doc.paynet.com.tr/uornek/servisler/basvuru/https:/pts-api.paynet.com.tr\[/v1/membership/formtypes\\_and\\_doctypes\\_all)]\(<https://api.paynet.com.tr/v1/membership/formtypes_and_doctypes_all>) |
| {% 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/doekueman-tipleri-cekme.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.
