---
# System prepended metadata

title: Kredi Başvuru - Retail Loan API

---

# Kredi Başvuru - Retail Loan API


## Direkt Satış

### 1 - Başvuru 

Direk satış müşteri adına başvuru formunu doldurarak başvuru yapar.

> **POST** /api/v1.0/Application/ApplyLoan

#### Request
```json
{
    "RequestedAmount": 5000,
    "CitizenshipNumber": "10041141372",
    "RequestedMaturity": 6,
    "Email": "testh123@burgan.com.tr",
    "MobilePhoneNumber": "5383768901",
    "OwnerChannelCode": "CALL_CENTER_WEB",
    "SubmitterChannelCode": "WEB",
    "ProductCode": "IHTKRED",
    "CampaignCode": "DNMK",
    "ApplicationType": 10,
    "MarkettingCommunicationPermitted": true,
    "MarkettingCommunicationVersionMajor": "WEB",
    "MarkettingCommunicationVersionMinor": 3,
    "PersonalDataAgreementPermitted": true,
    "PersonalDataAgreementVersionMajor": "WEB",
    "PersonalDataAgreementVersionMinor": 1,
    "OverdraftApplicationPermitted": false
}
```

:::danger
ApplicationType ?
:::

:::warning
**Aktif kullanılan opsiyonlar ?**
OwnerChannelCode
SubmitterChannelCode
ProductCode
CampaignCode
:::

#### Response
```json
{
    "Otp": "663199",
    "MaskedPhoneNumber": "53*****901",
    "IsCustomer": false,
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Error": null,
    "HasError": false
}
```

:::danger
maskedPhoneNumber : Why 
otp :  test için mi ?
:::

#### Test Senaryoları
* **OwnerChannelCode, SubmitterChannelCode, ProductCode, CampaignCode** farklı varyasyonlar için test edilir.
* **RequestedAmount,RequestedMaturity** için limit kontrolü yapılır ve limit içi ve dışı test yapılır.
* **MobilePhoneNumber** kayıtlı kontakt için kayıtlı ve kayıtlı olmayan tel numaraları denenir.



### 2 - OTP ve Profil 

Direk satış müşteri adına başvuru formunu doldurarak başvuru yapar.

> **POST** /api/v1.0/Otp/VerifyOtp

#### Request
```json
{
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Otp": "663199",
    "PersonalInfo": {
        "EducationType": 6,
        "WorkingType": 1,
        "ResidenceType": 1,
        "ProfessionId": 17,
        "MonthlyIncome": 10000,
        "CurrentWorkTime": {
            "Year": 2013,
            "Month": 9
        },
        "SourcesOfIncome": "2,4,3",
        "PreferredProductTypes": "",
        "OperationCount": 2,
        "OperationCapacity": 1
    }
}
```

:::danger
PreferredProductTypes ?
OperationCount ?
OperationCapacity ?
:::

#### Response
```json
{
  "error": {
    "code": 0,
    "message": "string",
    "data": {}
  },
  "hasError": true,
  "processId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "hasUtilizableApplication": true,
  "utilizableApplicationProcessId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "isCustomer": true,
  "evaluationResultType": 10,
  "token": {
    "accessToken": "string",
    "refreshToken": "string",
    "idToken": "string",
    "expiresIn": 0,
    "tokenType": "string",
    "resource": "string",
    "error": "string",
    "errorDescription": "string"
  },
  "isCancelled": true
}{
    "HasUtilizableApplication": false,
    "UtilizableApplicationProcessId": null,
    "IsCustomer": false,
    "EvaluationResultType": 10,
    "Token": {
        "access_token": "zc2YnZwq1avfNSmI3sHx8G8TsVk4dRHg40N7ZWwPsG4",
        "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkNERkRBRkYwMTYwQjlDNzQyMzg4RUQzQjI2RTY5NjNENjZBNUExRjciLCJ0eXAiOiJKV1QifQ.eyJzdWIiOiI3MjhlZmVmZi04MjNhLTRkOGUtOGQwNy03YTU1YTJkMWEyYzkiLCJuYW1lIjoiMTMxOTMxNjUxNjYiLCJjbGllbnRfaWQiOiJCYWNrT2ZmaWNlIiwiY3JlZGVudGlhbHMiOlsiSXNXZWJDdXN0b21lciMjIzEiLCJJc0Fub255bW91cyMjIzEiXSwiaW50ZWdyYXRpb25fdXNlcl9uYW1lIjoiRUJUXFxTMDAyODAiLCJnaXZlbl9uYW1lIjoiV0VCIiwiZmFtaWx5X25hbWUiOiJDVVNUT01FUiIsImVtYWlsIjoibXNhcmF5ZGVtaXJAYnVyZ2FuLmNvbS50ciIsImN1c3RvbWVyX251bWJlciI6IjIwOTE5NSIsImNyZWF0ZWRfYmVoYWxmX29mIjoiMTAwNDExNDEzNzIiLCJ0b2tlbl91c2FnZSI6ImlkX3Rva2VuIiwianRpIjoiMTVhODU0NjQtYmMxOC00NWFiLTljNGYtNjdmMDkwODQyMzIxIiwiYXVkIjoiQmFja09mZmljZSIsImF0X2hhc2giOiI3bFZVSF9HV3lyc2N3Z0Z0Y25LQUxBIiwiYXpwIjoiQmFja09mZmljZSIsIm5iZiI6MTYyOTIwNDU0MCwiZXhwIjoxNjI5MjExNzQwLCJpYXQiOjE2MjkyMDQ1NDAsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHlzZXJ2ZXJoZXJtZXMuYnVyZ2FuLmNvbS50ci8ifQ.FbrVwFtQA_4NjTcSM69EjeudI1gLo0FEvvRsCAzY4IEl2nN7D3ivM3lVEJv-bgNmMLFAg0DiupVYqtXnR6CkABZVLs92ONlG_DPX7XfbMNrqtyjmVp7S8buy1FF0oCd-68J2yYmQ9ERxKqEKPsm4lox8TNW07vO9CDa1TfiJbuLpm0zoJ0ni_PcJC6bHwo-HvUOjP2Fg0mZwq_87uKhhbKWd-2L_GBP4CHmXRm3tnbKPgLh-FBQlp-sn8JYsLNIgoxL3jxkDbQlwwxivQUG4nUED986HXVtdMdJ59BD5QW-GT8XlfjBwJRjFHlsXfHw7rYU1AauwpSaR0RWCeGTx8A",
        "expires_in": 7200,
        "token_type": "Bearer"
    },
    "IsCancelled": false,
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Error": null,
    "HasError": false
}

```

:::danger
maskedPhoneNumber : Why 
otp :  test için mi ?
:::

#### Test Senaryoları






### 3 - Kredi Ödeme Planı

Müşteri ödeme planını onaylar

> **POST**          /api/v1.0/PaymentPlan/RetailLoanPaymentPlan

#### Request
```json
{
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Amount": 5000,
    "Maturity": 6
}
```

:::danger

UseMernisAddress ?
:::

:::warning
**Aktif kullanılan opsiyonlar ?**
CourierVisitType 
:::

#### Response
```json
{
    "PaymentPlanResponse": {
        "CreditAmount": 5000,
        "Maturity": 6,
        "InterestRate": 1.19,
        "YearlyInterestRate": 14.28,
        "InstallmentAmount": 875.48,
        "TotalAmount": 5252.86,
        "AllocationAmount": 52.5,
        "YearlyCostRate": 22.977,
        "FirstInstallmentDate": "2021-09-17T00:00:00",
        "LastInstallmentDate": "2022-02-17T00:00:00",
        "InsuranceAmount": 0,
        "PaymentPlanResponseDetails": [
            {
                "SeqNum": 1,
                "InstallmentDate": "2021-09-17T00:00:00",
                "InstallmentAmount": 875.49,
                "PrincipalAmountPerInstallment": 804.08,
                "InterestAmount": 59.5,
                "KkdfAmount": 8.93,
                "BsmvAmount": 2.98
            },
            {
                "SeqNum": 2,
                "InstallmentDate": "2021-10-18T00:00:00",
                "InstallmentAmount": 875.48,
                "PrincipalAmountPerInstallment": 815.56,
                "InterestAmount": 49.93,
                "KkdfAmount": 7.49,
                "BsmvAmount": 2.5
            },
            {
                "SeqNum": 3,
                "InstallmentDate": "2021-11-17T00:00:00",
                "InstallmentAmount": 875.48,
                "PrincipalAmountPerInstallment": 827.21,
                "InterestAmount": 40.23,
                "KkdfAmount": 6.03,
                "BsmvAmount": 2.01
            },
            {
                "SeqNum": 4,
                "InstallmentDate": "2021-12-17T00:00:00",
                "InstallmentAmount": 875.48,
                "PrincipalAmountPerInstallment": 839.02,
                "InterestAmount": 30.38,
                "KkdfAmount": 4.56,
                "BsmvAmount": 1.52
            },
            {
                "SeqNum": 5,
                "InstallmentDate": "2022-01-17T00:00:00",
                "InstallmentAmount": 875.48,
                "PrincipalAmountPerInstallment": 851,
                "InterestAmount": 20.4,
                "KkdfAmount": 3.06,
                "BsmvAmount": 1.02
            },
            {
                "SeqNum": 6,
                "InstallmentDate": "2022-02-17T00:00:00",
                "InstallmentAmount": 875.45,
                "PrincipalAmountPerInstallment": 863.13,
                "InterestAmount": 10.27,
                "KkdfAmount": 1.54,
                "BsmvAmount": 0.51
            }
        ],
        "MaturityDate": "2022-02-17T00:00:00",
        "TotalCreditAmount": 5252.86,
        "CreditAllocationAmount": 50,
        "InterestAmount": 210.71,
        "PackageAmount": 0,
        "LifeInsuranceAmount": 0,
        "InstallmentDateRange": {
            "StartDate": "2021-09-17T00:00:00",
            "EndDate": "2021-10-02T00:00:00"
        },
        "CommissionRate": 0,
        "CommissionAmount": 0
    },
    "PaymentPlanResponseWithInsurance": {
        "CreditAmount": 5000,
        "Maturity": 6,
        "InterestRate": 0.99,
        "YearlyInterestRate": 11.88,
        "InstallmentAmount": 868.32,
        "TotalAmount": 5209.96,
        "AllocationAmount": 52.5,
        "YearlyCostRate": 19.5218,
        "FirstInstallmentDate": "2021-09-17T00:00:00",
        "LastInstallmentDate": "2022-02-17T00:00:00",
        "InsuranceAmount": 100.38,
        "PaymentPlanResponseDetails": [
            {
                "SeqNum": 1,
                "InstallmentDate": "2021-09-17T00:00:00",
                "InstallmentAmount": 868.33,
                "PrincipalAmountPerInstallment": 808.92,
                "InterestAmount": 49.5,
                "KkdfAmount": 7.43,
                "BsmvAmount": 2.48
            },
            {
                "SeqNum": 2,
                "InstallmentDate": "2021-10-18T00:00:00",
                "InstallmentAmount": 868.32,
                "PrincipalAmountPerInstallment": 818.54,
                "InterestAmount": 41.49,
                "KkdfAmount": 6.22,
                "BsmvAmount": 2.07
            },
            {
                "SeqNum": 3,
                "InstallmentDate": "2021-11-17T00:00:00",
                "InstallmentAmount": 868.32,
                "PrincipalAmountPerInstallment": 828.25,
                "InterestAmount": 33.39,
                "KkdfAmount": 5.01,
                "BsmvAmount": 1.67
            },
            {
                "SeqNum": 4,
                "InstallmentDate": "2021-12-17T00:00:00",
                "InstallmentAmount": 868.32,
                "PrincipalAmountPerInstallment": 838.09,
                "InterestAmount": 25.19,
                "KkdfAmount": 3.78,
                "BsmvAmount": 1.26
            },
            {
                "SeqNum": 5,
                "InstallmentDate": "2022-01-17T00:00:00",
                "InstallmentAmount": 868.32,
                "PrincipalAmountPerInstallment": 848.06,
                "InterestAmount": 16.89,
                "KkdfAmount": 2.53,
                "BsmvAmount": 0.84
            },
            {
                "SeqNum": 6,
                "InstallmentDate": "2022-02-17T00:00:00",
                "InstallmentAmount": 868.35,
                "PrincipalAmountPerInstallment": 858.14,
                "InterestAmount": 8.5,
                "KkdfAmount": 1.28,
                "BsmvAmount": 0.43
            }
        ],
        "MaturityDate": "2022-02-17T00:00:00",
        "TotalCreditAmount": 5209.96,
        "CreditAllocationAmount": 50,
        "InterestAmount": 174.96,
        "PackageAmount": 0,
        "LifeInsuranceAmount": 0,
        "InstallmentDateRange": {
            "StartDate": "2021-09-17T00:00:00",
            "EndDate": "2021-10-02T00:00:00"
        },
        "CommissionRate": 0,
        "CommissionAmount": 0
    }
}
```

### 4 -  Ödeme Planı Onaylama
Ödeme planı onaylanır.
> **POST**   /api/v1.0/PaymentPlan/SavePaymentPlan
#### Request
```json=
{
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Amount": 5000,
    "Maturity": 6,
    "IsInsuranceSelected": false
}
```
:::warning
"IsInsuranceSelected" nedir ?
:::


#### Response
```json=
{
    "State": "Appointment",
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Error": null,
    "HasError": false
}
```

### 5 - Kurye Uygun Zaman Aralıkları
>**POST** /api/v1.0/Appointment/GetAvailableTimeSlots
#### Request
```json=
{
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "UseMernisAddress": false,
    "Address": {
        "CityCode": 34,
        "CityName": "İSTANBUL",
        "TownCode": 2004,
        "TownName": "BAĞCILAR"
    }
}
```

#### Response
```json=
{
    "CourierCanProvideTimeSlots": false,
    "TimeSlots": [],
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Error": null,
    "HasError": false
}
```


### 6 - Adres Bilgileri Gönderimi 

Müşterinin adres bilgileri kayıt altına alınır.

> **POST**          /api/v1.0/Appointment/SaveAppointment

#### Request
```json
{
   {
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "UseMernisAddress": false,
    "HomeAddress": {
        "CountryCode": 90,
        "CityCode": 34,
        "CityName": "İSTANBUL",
        "TownCode": 2048,
        "TownName": "ARNAVUTKÖY",
        "DistrictName": "ARNAVUTKÖY MERKEZ Mah",
        "StreetName": "AHENK SOKAK",
        "AddressType": 1,
        "AddressDetail": "no:4",
        "PhoneNumber": "2124806765"
    },
    "WorkAddress": {
        "CountryCode": 90,
        "CityCode": 34,
        "CityName": "İSTANBUL",
        "TownCode": 2004,
        "TownName": "BAĞCILAR",
        "DistrictName": "İNÖNÜ Mah",
        "StreetName": "364 SOKAK",
        "AddressType": 2,
        "AddressDetail": "no:9",
        "OrganizationName": "testt 123",
        "OrganizationSectorCode": 35,
        "OrganizationSectorName": "Eğitim ve Kültür",
        "Email": "test242343@burgan.com.tr",
        "PhoneNumber": "2125343455"
    },
    "CourierVisitType": 2
}
```

:::danger

UseMernisAddress ?
:::

:::warning
**Aktif kullanılan opsiyonlar ?**
CourierVisitType 
:::

#### Response
```json
{
    "NotAvailableCourier": false,
    "State": "Document",
    "HasUtilizableApplication": false,
    "UtilizableApplicationProcessId": null,
    "IsCustomer": false,
    "EvaluationResultType": null,
    "Token": null,
    "IsCancelled": false,
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Error": null,
    "HasError": false
}
```


#### Test Senaryoları
* **CourierVisitType** farklı varyasyonlar için test edilir.
* Adres alanlarının ülke dışı olması da denenebilir mi?


### 7 - Kredi Başvurusu İçin Gerekli Dokümanları Listeleme 
> **GET** 
/api/v1.0/Document/GetRetailLoanDocuments?ProcessId={proccesId}


#### Response
```json=
{
    "Documents": [
        {
            "Id": "cff8e3dd-6df5-4492-a32d-4597a958af1e",
            "DocumentType": 60,
            "HtmlContent": "PHN0eWxlPg0KCS5yaWdodCAgew0KCQkJCXRleHQtYWxpZ246IHJpZ2h0ICFpbXBvcnRhbnQ7DQoJCQl9DQo8L3N0eWxlPg0KPHN0cm9uZz5BQkQgaWxlIGhlcmhhbmdpIGJpciBiYcSfbGFudMSxbSogYnVsdW5tYWTEscSfxLFuxLEgYmV5YW4gZWRlcmltLjwvc3Ryb25nPjxicj4NCijDh2lmdGUgVmF0YW5kYcWfbMSxaywgR3JlZW4gQ2FyZCBzYWhpcGxpxJ9pLCDDp2FsxLHFn21hIHZlL3ZleWEgb3R1cm1hIGl6bmksIERvxJ91bSDDvGxrZXNpLCBBZHJlcyB2ZS92ZXlhIHRlbGVmb24gc2FoaXBsacSfaSB2ZS92ZXlhIEFtZXJpa2FuIHZhdGFuZGHFn8SxIGlsZSB2ZWtpbC92ZWthbGV0IGlsacWfa2lzaSB2Yi4gYmlyIGJhxJ9sYW50xLFuxLF6IGJ1bHVubWFzxLEgZHVydW11bmRhIHRlcmNpaGluaXppICJIYXnEsXIiIG9sYXJhayBiZWxpcnRpbml6LikNCjxwIGNsYXNzPSdyaWdodCcgc3R5bGU9ImRpc3BsYXk6bm9uZSI+DQpEMTAgMDkvMjAxOCBWZXIuMQ0KPC9wPg0K"
        }
    ],
    "TaxPayerOptions": [
        {
            "Id": 10,
            "Name": "<strong>Sadece Türkiye'de vergi mükellefiyim</strong> Türkiye dışında başka ülkede vergi mükellefi değilseniz işaretleyiniz."
        },
        {
            "Id": 30,
            "Name": "<strong>Türkiye ve diğer ülke/ülkelerde vergi mükellefiyim.</strong> Türkiye dışında farklı bir ülkede daha vergi mükellefi olmanız durumunda işaretleyiniz."
        }
    ],
    "ApproveMessages": [
        {
            "Id": 1,
            "Name": "Amerika Birleşik Devletleri ile bağlantınız bulunması sebebi ile kredi başvurularınızı yalnızca şubelerimizden yapabilirsiniz. Yardıma ihtiyaç duymanız durumunda 0850 222 8 222 numaralı telefondan bizi 7/24  arayabilirsiniz."
        },
        {
            "Id": 2,
            "Name": "Türkiye dışında başka bir ülkede vergi mükellefi olmanız sebebi ile kredi başvurularınızı şubelerimizden veya 0850 222 8 222 numaralı telefondan bizimle iletişime geçerek tamamlayabilirsiniz."
        },
        {
            "Id": 3,
            "Name": "Amerika Birleşik Devletleri ile bağlantınız bulunması ve Türkiye dışında başka bir ülkede vergi mükellefi olmanız sebebi ile kredi başvurularınızı yalnızca şubelerimizden yapabilirsiniz.  Yardıma ihtiyaç duymanız durumunda 0850 222 8 222 numaralı telefondan bizi 7/24 arayabilirsiniz."
        }
    ],
    "RejectMessages": [
        {
            "Id": 1,
            "Name": "ŞUBEDEN DEVAM ET"
        },
        {
            "Id": 2,
            "Name": "BAŞVURUYU SONLANDIR"
        },
        {
            "Id": 3,
            "Name": "ŞUBEDEN DEVAM ET"
        }
    ],
    "InfoMessages": [
        {
            "Id": 1,
            "Name": "Ülkemizin taraf olduğu uluslararası anlaşmalarımız gereği yurt dışı ile bağlantılarınızı beyan ettikten sonra başvurunuzu tamamlayabilirsiniz."
        },
        {
            "Id": 2,
            "Name": "(Ülkemizin taraf olduğu uluslararası anlaşmalar gereği müşterilerimizden vergi mükellefiyetleri ile ilgili beyan almamız gerekmektedir.)"
        }
    ],
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Error": null,
    "HasError": false
}
``` 
--------

### 8 - Ziyaret Formu ve Kimlik Kartı Bilgilerini Gönderme
> **POST** 
/api/v1.0/Document/ApproveRetailLoanDocuments


#### Request
```json=
{
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "TaxPayerType": 10,
    "Documents": [
        {
            "Id": "cff8e3dd-6df5-4492-a32d-4597a958af1e",
            "ActionType": 40
        }
    ],
    "FatcaAndCrsSelection": 0,
    "CrsCountries": []
}
```

#### Response
```json=
{
    "IsFraud": false,
    "IsCancelled": false,
    "State": "DocumentAcquisition",
    "ProcessId": "cd9b1e4b-7839-4962-b1d6-42aba54ee66b",
    "Error": null,
    "HasError": false
}
``` 
**NOT:** Servis sonunda akış 'Belge edinim' adımına geçmiş olur.

--------
> **GET** 
/application/GetbyFilter?{CitizenshipNumber}

#### Response
```json=
{
    "TotalCount": 1,
    "Result": [
        {
            "Id": "6b66107b-decc-4dfb-a7fa-94d0d1711f23",
            "KycStatusName": "FlowKycControl_ApprovedCompleted",
            "FraudStatusName": "FlowFraudControl_ManualEvaluation",
            "KycStatus": 30,
            "FraudStatus": 10,
            "CitizenshipNumber": 41344969820,
            "Name": "MESUT",
            "SurName": "EKİNCİ",
            "ApplicationType": 10,
            "StatusName": "FlowRetailLoan_DocumentAcquisition",
            "Status": 10,
            "Description": "BelgeEdinim",
            "TaxNumber": null,
            "FormCitizenshipNumber": 41344969820,
            "EvaluationResultType": 10,
            "RequestedAmount": 11000,
            "RequestedMaturity": 15,
            "ApplicationNumber": 5555818,
            "ApplyDate": "2021-09-02T10:30:43.8617929",
            "CreatedByUserName": "EBT\\S00278",
            "OwnerChannelAffiliateCode": null,
            "OwnerChannelReferenceId": "CALL_CENTER_WEB",
            "ProductCodeReferenceId": "IHTKRED",
            "CampaignReferenceId": "DNMK",
            "SubmitterChannelReferenceId": "WEB",
            "SubmitterChannelIsDealer": false,
            "CompletionType": null,
            "CreatedByInstanceId": "3d5dbbfd-4266-49eb-bf3f-002f1e792f49",
            "IsDocumentsApproved": null,
            "IsCompletelyUtilized": false,
            "ManualEvaluationStatus": null,
            "MaxLimit": null,
            "HasWaitingInfo": null,
            "DocumentIds": [],
            "AddionalRequestTypes": null
        }
    ]
}
```
--------
 > **POST** 
/api/Document/SaveDocumentRLACourier
#### Request
```json=
{
    "WorkflowInstanceId": "f56af3ff-1796-4b40-91f5-a24dafb55593",
    "Documents": [
        {
            "Key": 50,
            "MimeType": "image/png",
            "VersionMajor": "WEB",
            "VersionMinor": 3,
            "Content": [
                255,
                216,
                255,
                224,
                0,
                16,
                74,
                70,
                73,
                70,
                "this is an image...",
                ...........
            ]
        }
    ]
}

```
### Response
```json=
{"State":"FlowRetailLoan_DocumentAcquisition"}
```

--------
 > **POST** 
/api/Document/SaveDocumentRLACourier

#### Request
```json=
{
    "WorkflowInstanceId": "f56af3ff-1796-4b40-91f5-a24dafb55593",
    "Documents": [
        {
            "Key": 40,
            "MimeType": "image/png",
            "VersionMajor": "1",
            "VersionMinor": 2,
            "Content": [
                255,
                216,
                255,
                224,
                0,
                16,
                74,
                70,
                73,
                70,
                "this is an image...",
                .............
            ]
        }
    ]
}

```
### Response
```json=
{"State":"FlowRetailLoan_DocumentAcquisition"}
```

--------

### 9 - Belge Yükleme Tamamlama
 > **POST** 
/api/application/CourrierCompleted/

#### Request
```json=
{"WorkflowInstanceId":"f56af3ff-1796-4b40-91f5-a24dafb55593"}
```

#### Response
```json=
{"State":"FlowRetailLoan_DocumentControl"}
```

--------
 > **GET** 
api/v1.0/Application/GetApplicationInfoByProcessId?{proccesId}



#### Response
```json=
{
    "ApplicationId": "c42bdefb-a58b-48f0-8743-d4de3873e4e1",
    "ApplicantFullName": "AHMET DİNDİN",
    "UtilizationProcessId": "ff69a85b-3076-4ee0-a4d2-84f30516ed03",
    "ApplicationStatus": 50,
    "IsEditable": false,
    "IsCustomer": false,
    "ApplicantCitizenshipNumber": "56341219618",
    "BusinessLine": null,
    "ApplicationType": 10,
    "State": "ApprovedCompleted",
    "RequestedTerm": {
        "Limit": {
            "Amount": 11000,
            "Maturity": 15
        },
        "ProductCode": "IHTKRED",
        "CampaignCode": "DNMK"
    },
    "ApprovedTerm": {
        "Limit": {
            "Amount": 5000,
            "Maturity": 6
        }
    },
    "Cancellation": null,
    "ProposedTerm": {
        "ValidTill": "2021-10-13T23:59:59",
        "Limits": [
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 35
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 26
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 16
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 9
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 25
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 7
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 29
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 32
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 12
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 31
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 22
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 18
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 6
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 14
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 36
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 10
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 28
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 24
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 11
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 21
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 15
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 33
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 19
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 5
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 13
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 23
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 34
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 8
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 4
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 27
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 30
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 17
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 20
            },
            {
                "AmountMin": 2500,
                "AmountMax": 10000,
                "Maturity": 3
            }
        ],
        "ProductCode": "IHTKRED",
        "CampaignCode": "DNMK",
        "DemandInsurance": false,
        "OverdraftAmount": 1000,
        "ExcludedMaturities": []
    },
    "ApplicationSettings": {
        "ProductCartCanChange": null,
        "ProductCartMaxItemCount": null,
        "AmountIsSelectable": true,
        "MaturityIsSelectable": true,
        "ProductPricingDefined": null,
        "OwnerChannelCode": "CALL_CENTER_WEB",
        "SubmitterChannelCode": "WEB",
        "SubmitterChannelDescription": "WEB",
        "IsDealer": false,
        "DealerPhoneNumber": null,
        "AcquirePhysicalRlaDocsFromCustomer": false,
        "DocumentAcquisitions": "Nüfus Cüzdanı",
        "IsEcommerce": null,
        "ShowCartItems": null,
        "IsCartItemsEditable": null,
        "SkipSmsOtp": null,
        "CancelApplicationWhenRequestedNotApproved": null,
        "UtilizationByNonApplicant": null,
        "ProductSelectionEnabled": null,
        "UtilizeOnlyRequestedAmount": null,
        "SupportCampaignSelection": null,
        "FreeFormatWorkAddressEnabled": null,
        "AmountIsDisabledAtApply": null,
        "CitizenshipNumberIsDisabledAtApply": null,
        "EmailIsDisabledAtApply": null,
        "PhoneNumberIsDisabledAtApply": null,
        "ShowCartItemsAtPaymentPlan": null,
        "DealerControlEnabled": null,
        "ValideCartOnApply": null,
        "HasProductCategoryCampaign": null,
        "ShowMernisAddressInAppointment": false,
        "ShowMonthlyOperations": true,
        "ShowProductInSms": null,
        "GetAddressBeforeEvaluation": false
    },
    "LoanProductCartItemDetails": [],
    "CourierName": "CallCenter Kurye",
    "OwnerChannelCode": "CALL_CENTER_WEB",
    "SubmitterChannelCode": "WEB",
    "CourierEnabled": true,
    "IsEkycCourier": false,
    "ProcessId": "944db0c6-dad2-4911-843a-dc590c7c8283",
    "Error": null,
    "HasError": false
}
```
--------



 > **POST** 
/api/Workflow/AssignMe
#### Request
```json=
{"WorkflowInstanceId":"f56af3ff-1796-4b40-91f5-a24dafb55593"}
```
### Response
```json=
{
    "AssignedTo": "EBT\\U05283",
    "IsSuccessfull": true,
    "WorkflowInstanceId": "f56af3ff-1796-4b40-91f5-a24dafb55593",
    "State": "FlowRetailLoan_DocumentControl"
}
```


--------

 > **GET** 
/api/Document/ByApplication/{applicationId}

### Response
```json=
{
    "Id": "47eef827-f0e3-4757-b2d1-98ed19973c02",
    "CreatedByInstanceState": "FlowRetailLoan_Application",
    "Applicant": {
        "Documents": [
            {
                "CreatedByUserName": "EBT\\S00280",
                "ControlItems": [],
                "Definition": {
                    "Key": 60,
                    "InteractionType": 10,
                    "FormReferenceId": null,
                    "DmsReferenceId": "1677",
                    "CheckList": [],
                    "MetaDataDefinitionList": [],
                    "VersionMajor": "WEB",
                    "VersionMinor": 1,
                    "Template": null,
                    "TemplateId": "056c3222-fd32-42b9-89f1-f121ef814046",
                    "IsOffline": null,
                    "IsPhysicalDocument": null,
                    "DocumentVersion": "D10 09/2018 Ver.1",
                    "WarningText": null,
                    "CreatedByInstanceState": null,
                    "CreatedByUserName": "systemUser",
                    "Id": "dd862595-0eb7-4278-9d13-afb43b25d857"
                },
                "IsPhysicalFileDelivered": null,
                "PhysicalFileDeliverNote": null,
                "DmsReferenceId": "6554834",
                "DefinitionId": "dd862595-0eb7-4278-9d13-afb43b25d857",
                "OwnerActionTime": "2021-10-18T11:43:23.0899628",
                "OwnerActionType": 40,
                "DmsStatus": 10,
                "AcquirerType": null,
                "CreatedByInstanceState": "FlowRetailLoan_Appointment",
                "Id": "5e936529-b084-49cd-85f8-1b7737716886"
            },
            {
                "CreatedByUserName": "EBT\\S00280",
                "ControlItems": [],
                "Definition": {
                    "Key": 10,
                    "InteractionType": 10,
                    "FormReferenceId": null,
                    "DmsReferenceId": "1617",
                    "CheckList": [],
                    "MetaDataDefinitionList": [],
                    "VersionMajor": "WEB",
                    "VersionMinor": 3,
                    "Template": null,
                    "TemplateId": "2ee9a3ac-8d82-4eaa-95b6-0d221f38e0f1",
                    "IsOffline": null,
                    "IsPhysicalDocument": null,
                    "DocumentVersion": "D3 09/2020 Ver.2",
                    "WarningText": null,
                    "CreatedByInstanceState": null,
                    "CreatedByUserName": "DB-PC-03",
                    "Id": "38de21e6-39bc-443d-a8b4-3ba371f0e585"
                },
                "IsPhysicalFileDelivered": null,
                "PhysicalFileDeliverNote": null,
                "DmsReferenceId": "6554828",
                "DefinitionId": "38de21e6-39bc-443d-a8b4-3ba371f0e585",
                "OwnerActionTime": "2021-10-18T11:43:05.0679105",
                "OwnerActionType": 40,
                "DmsStatus": 10,
                "AcquirerType": null,
                "CreatedByInstanceState": "FlowRetailLoan_Evaluation",
                "Id": "cb3775c0-fb8c-4234-9d96-69f14810ed92"
            },
            {
                "CreatedByUserName": "EBT\\S00809",
                "ControlItems": [
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "bf656fc5-ca5c-421f-9f94-0a0a6dc7cef3"
                    },
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "2fa6f122-e8aa-4eac-b6e0-21d9c25eccd8"
                    },
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "34006919-0dc6-4c15-8bc3-3f7f604b2164"
                    },
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "8362dfd8-04b5-4697-97cc-4f3a38781d1f"
                    },
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "a6c174d4-7bd0-4a72-879b-5c07eab374b7"
                    },
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "268e9c97-dba4-4fe3-b56d-5d338333c9c1"
                    },
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "4f57ea9e-b04a-4d03-a348-7f6206a4d257"
                    },
                    {
                        "DocumentId": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "b2f8ff8c-79aa-474d-8bfd-a22c80154843"
                    }
                ],
                "Definition": {
                    "Key": 40,
                    "InteractionType": 30,
                    "FormReferenceId": null,
                    "DmsReferenceId": "372",
                    "CheckList": [],
                    "MetaDataDefinitionList": [],
                    "VersionMajor": "1",
                    "VersionMinor": 2,
                    "Template": null,
                    "TemplateId": null,
                    "IsOffline": null,
                    "IsPhysicalDocument": null,
                    "DocumentVersion": null,
                    "WarningText": null,
                    "CreatedByInstanceState": null,
                    "CreatedByUserName": "systemUser",
                    "Id": "8b0a3b54-b997-4f3b-bffd-68e64f5fa207"
                },
                "IsPhysicalFileDelivered": null,
                "PhysicalFileDeliverNote": null,
                "DmsReferenceId": null,
                "DefinitionId": "8b0a3b54-b997-4f3b-bffd-68e64f5fa207",
                "OwnerActionTime": "2021-10-18T11:43:37.1077915",
                "OwnerActionType": 60,
                "DmsStatus": null,
                "AcquirerType": 50,
                "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                "Id": "1dc7267f-a2cc-47da-b9f6-98af8f4d4640"
            },
            {
                "CreatedByUserName": "EBT\\S00280",
                "ControlItems": [],
                "Definition": {
                    "Key": 30,
                    "InteractionType": 20,
                    "FormReferenceId": null,
                    "DmsReferenceId": "375",
                    "CheckList": [],
                    "MetaDataDefinitionList": [],
                    "VersionMajor": "VK9",
                    "VersionMinor": 1,
                    "Template": null,
                    "TemplateId": "b305e9c6-8912-4d4d-88fd-1c05e8939fe0",
                    "IsOffline": false,
                    "IsPhysicalDocument": null,
                    "DocumentVersion": null,
                    "WarningText": null,
                    "CreatedByInstanceState": null,
                    "CreatedByUserName": "systemUser",
                    "Id": "c39355a8-0c32-4852-a57f-9d800e4c4094"
                },
                "IsPhysicalFileDelivered": null,
                "PhysicalFileDeliverNote": null,
                "DmsReferenceId": null,
                "DefinitionId": "c39355a8-0c32-4852-a57f-9d800e4c4094",
                "OwnerActionTime": null,
                "OwnerActionType": 10,
                "DmsStatus": null,
                "AcquirerType": null,
                "CreatedByInstanceState": "FlowRetailLoan_Appointment",
                "Id": "40b46c56-838f-4ef7-a505-a7b5732dc827"
            },
            {
                "CreatedByUserName": "EBT\\S00280",
                "ControlItems": [],
                "Definition": {
                    "Key": 270,
                    "InteractionType": 10,
                    "FormReferenceId": null,
                    "DmsReferenceId": "1707",
                    "CheckList": [],
                    "MetaDataDefinitionList": [],
                    "VersionMajor": "WEB",
                    "VersionMinor": 2,
                    "Template": null,
                    "TemplateId": "4694fcb1-1f8f-4012-96dc-fc05010dfee9",
                    "IsOffline": null,
                    "IsPhysicalDocument": null,
                    "DocumentVersion": "D3 09/2020 Ver.2",
                    "WarningText": null,
                    "CreatedByInstanceState": null,
                    "CreatedByUserName": "systemUser",
                    "Id": "4af95a46-31a1-4735-a41b-053ad662978d"
                },
                "IsPhysicalFileDelivered": null,
                "PhysicalFileDeliverNote": null,
                "DmsReferenceId": "6554830",
                "DefinitionId": "4af95a46-31a1-4735-a41b-053ad662978d",
                "OwnerActionTime": "2021-10-18T11:43:05.0723793",
                "OwnerActionType": 40,
                "DmsStatus": 10,
                "AcquirerType": null,
                "CreatedByInstanceState": "FlowRetailLoan_Evaluation",
                "Id": "128eea89-fa19-4dd9-b480-aa3cead54bf5"
            },
            {
                "CreatedByUserName": "EBT\\S00280",
                "ControlItems": [],
                "Definition": {
                    "Key": 20,
                    "InteractionType": 10,
                    "FormReferenceId": null,
                    "DmsReferenceId": "1678",
                    "CheckList": [],
                    "MetaDataDefinitionList": [],
                    "VersionMajor": "WEB",
                    "VersionMinor": 1,
                    "Template": null,
                    "TemplateId": "89732d74-cf40-4576-8217-c3cd5d72be95",
                    "IsOffline": null,
                    "IsPhysicalDocument": null,
                    "DocumentVersion": "D4 09/2018 Ver.1",
                    "WarningText": null,
                    "CreatedByInstanceState": null,
                    "CreatedByUserName": "systemUser",
                    "Id": "df043c31-107c-4d85-badb-66a3e14eeea8"
                },
                "IsPhysicalFileDelivered": null,
                "PhysicalFileDeliverNote": null,
                "DmsReferenceId": "6554829",
                "DefinitionId": "df043c31-107c-4d85-badb-66a3e14eeea8",
                "OwnerActionTime": "2021-10-18T11:43:05.0776457",
                "OwnerActionType": 40,
                "DmsStatus": 10,
                "AcquirerType": null,
                "CreatedByInstanceState": "FlowRetailLoan_Evaluation",
                "Id": "d3fb361c-bf0b-4049-af03-e834c72a2b9e"
            },
            {
                "CreatedByUserName": "EBT\\S00809",
                "ControlItems": [
                    {
                        "DocumentId": "3ca5e000-321b-4ba2-9e0c-f5bb01b23bbb",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "96b61940-332e-4922-9857-6141eea95e46"
                    },
                    {
                        "DocumentId": "3ca5e000-321b-4ba2-9e0c-f5bb01b23bbb",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "37c770a8-7e84-48e5-a1dc-8ae0f6b05fea"
                    },
                    {
                        "DocumentId": "3ca5e000-321b-4ba2-9e0c-f5bb01b23bbb",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "dfa08ad7-7597-451b-ba29-a57e364818e7"
                    },
                    {
                        "DocumentId": "3ca5e000-321b-4ba2-9e0c-f5bb01b23bbb",
                        "ControlRule": null,
                        "ControlResult": 10,
                        "Note": null,
                        "ControlledByUserName": null,
                        "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                        "CreatedByUserName": "EBT\\S00809",
                        "Id": "f46caede-5c75-414e-aed1-ec75a1a33bf4"
                    }
                ],
                "Definition": {
                    "Key": 50,
                    "InteractionType": 30,
                    "FormReferenceId": null,
                    "DmsReferenceId": "1204",
                    "CheckList": [],
                    "MetaDataDefinitionList": [],
                    "VersionMajor": "WEB",
                    "VersionMinor": 3,
                    "Template": null,
                    "TemplateId": "fd3ed702-fcb8-4121-bd8c-554a11080085",
                    "IsOffline": null,
                    "IsPhysicalDocument": true,
                    "DocumentVersion": "D9 08/2020 Ver.3",
                    "WarningText": null,
                    "CreatedByInstanceState": null,
                    "CreatedByUserName": "systemUser",
                    "Id": "e5b38dd9-6223-4f9a-8697-f5768814c969"
                },
                "IsPhysicalFileDelivered": null,
                "PhysicalFileDeliverNote": null,
                "DmsReferenceId": null,
                "DefinitionId": "e5b38dd9-6223-4f9a-8697-f5768814c969",
                "OwnerActionTime": "2021-10-18T11:43:34.7634643",
                "OwnerActionType": 60,
                "DmsStatus": null,
                "AcquirerType": 50,
                "CreatedByInstanceState": "FlowRetailLoan_DocumentAcquisition",
                "Id": "3ca5e000-321b-4ba2-9e0c-f5bb01b23bbb"
            }
        ]
    }
}
```
--------
 > **POST** 
/api/application/SaveDocumentControl
#### Request
```json=
{
    "WorkflowInstanceId": "f56af3ff-1796-4b40-91f5-a24dafb55593",
    "DocumentId": "8e7b521f-67b7-4fbe-a2ef-f35d55bfdc5a",
    "DocumentDefinitionId": "e5b38dd9-6223-4f9a-8697-f5768814c969",
    "ControlResultList": [
        {
            "ControlItemId": "9d1556df-6e04-4bd3-be8d-16998476c8ba",
            "Result": 20,
            "Explanation": null
        },
        {
            "ControlItemId": "1211a651-4269-4a34-8e74-487bc95bc4d2",
            "Result": 20,
            "Explanation": null
        },
        {
            "ControlItemId": "ae81f024-9520-4767-864c-3314531f2695",
            "Result": 20,
            "Explanation": null
        },
        {
            "ControlItemId": "d6e7d232-daf1-435b-9df8-14bf6a37798c",
            "Result": 20,
            "Explanation": null
        }
    ],
    "DocumentMetaDatas": []
}
```
### Response
```json=
{"State":"FlowRetailLoan_DocumentControl"}
```


--------

 > **POST** 
/api/application/DocumentControlCompleted/
#### Request
```json=
{"WorkflowInstanceId":"3a539595-864c-48b9-bbfb-caa10e9982df"}
```
### Response
```json=
{"State":"FlowRetailLoan_DocumentCollection"}
```


--------
 > **GET** 
/api/v1.0/Document/GetActionableDocuments/?ProcessId={processId}

### Response
```json=
{
    "ProcessId": "e94cf414-8cdd-4f67-84cb-69d54c5b4303",
    "Documents": [
        {
            "Id": "22339a39-542b-4ad8-8a33-c43901e70111",
            "VersionMajor": "VK9",
            "VersionMinor": 1,
            "Key": 30,
            "Content": "<!doctype html>\r\n<html>\r\n<head>\r\n<meta charset=\"utf-8\" /> \r\n<title>Untitled =\"text-align:n</body>\r\n</html>",
            "DocumentVersion": null
        }
    ],
    "Id": "00000000-0000-0000-0000-000000000000",
    "IsCompleted": false,
    "ErrorMessage": null
}
```


--------
 > **GET** 
/api/v1.0/Utility/GetDate

### Response
```json=
{
  "2021-09-16T16:16:10.2437396+03:00"
}
```
--------


 > **POST** 
/api/v1.0/Document/ApproveOnlineDocuments


#### Request
```json=
{
"ProcessId" : "c4b69b6b-3e16-40de-a8f4-f3fc508d7b52",
"Documents" : [
{
"DocumentId" : "dca7f677-b731-4ca5-b881-de1037facc74",
"ActionType" : 20,
"ActionDate" : "2021-08-03T15:31:34.902+03:00"
}
]
}

```
### Response
```json=
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "isCompleted": true,
  "errorMessage": "string"
}
```

--------
> **GET** 
/api/application/?{applicationId}


### Response
```json=
{
    "Id": "47eef827-f0e3-4757-b2d1-98ed19973c02",
    "Status": {
        "RetailLoanApplication": null,
        "RetailLoanApplicationId": "47eef827-f0e3-4757-b2d1-98ed19973c02",
        "Name": "FlowRetailLoan_Customer",
        "Description": "Müşteri",
        "CompletedAt": null,
        "ApplyDate": "2021-10-18T11:43:00.1925509",
        "ApplicationNumber": 5560670,
        "Status": 10,
        "StateBeginningTime": "2021-10-18T11:52:19.2510044",
        "StateCreateTime": "2021-10-18T11:52:19.2510047",
        "StateResponsible": null,
        "ManualEvaluationResponsible": null,
        "DocumentControlResponsible": "EBT\\S00809"
    },
    "KycControl": {
        "Status": {
            "KycControl": null,
            "KycControlId": "d123d13e-d460-429d-bf28-28921a084d81",
            "Name": "FlowKycControl_ApprovedCompleted",
            "CompletedAt": "2021-10-18T11:43:23.8809059",
            "Status": 30,
            "Description": "Tamamlandı"
        },
        "ResultType": 20,
        "RiskAbbreviation": "LOW",
        "RiskName": "NoHit",
        "RiskLevel": 0,
        "CreatedByInstanceId": "97fba2b3-cdb7-4529-83aa-1ac8bde57689",
        "CreatedByUserName": "EBT\\S00280",
        "Id": "d123d13e-d460-429d-bf28-28921a084d81"
    },
    "FraudControl": {
        "Status": {
            "FraudControl": null,
            "FraudControlId": "124b7996-0dbe-4c49-a64b-3f3fee39219f",
            "Name": "FlowFraudControl_ManualEvaluation",
            "CompletedAt": null,
            "Status": 10,
            "Description": "ManuelDeğerlendirme"
        },
        "ResultType": 10,
        "HasMatch": true,
        "FraudCheckType": 10,
        "MatchDescription": null,
        "CreatedByInstanceId": "7ef6917d-fa87-4a0c-be97-858ce6108431",
        "CreatedByUserName": "EBT\\S00280",
        "Id": "124b7996-0dbe-4c49-a64b-3f3fee39219f"
    },
    "CreatedByInstanceId": "3afdcdce-5572-461d-a329-a1f843bf7b83",
    "CompletionType": null,
    "ManualEvaluation": {
        "Status": null
    },
    "Applicant": {
        "KPSIdentity": {
            "BirthDate": "1981-11-21T00:00:00",
            "MaritalStatusDescription": "Bekâr"
        },
        "CitizenshipNumber": 29998810286,
        "TaxNumber": null,
        "Name": "ERCAN",
        "Surname": "YAVUZ",
        "EducationStatus": 6,
        "PersonType": 10,
        "CurrentJobWorkingStartDate": "2013-09-01T00:00:00",
        "WorkingType": 4,
        "ProfessionReferenceId": "0",
        "CurrentSectorWorkingStartDate": null,
        "MontlyIncome": 20000,
        "MontlyExpense": null,
        "ResidenceType": 1,
        "PersonalInfoUsePermitted": true,
        "CustomerType": 10,
        "Gender": 1,
        "HasFatca": false,
        "HasOpenConsent": true,
        "TaxPayerType": 10,
        "BhsEngagementReferenceId": null,
        "CreatedByInstanceId": "3afdcdce-5572-461d-a329-a1f843bf7b83",
        "CreatedByUserName": "EBT\\S00809",
        "Id": "586bb937-10df-4372-85ec-1dc20e9bdaac",
        "Emails": [
            {
                "Person": null,
                "Email": "1634546577980_MICDJZMM@mert.com",
                "EmailType": 1,
                "VerifiedByUser": false,
                "VerifiedByAdvertisement": false,
                "MarkettingPermitted": true,
                "Id": "9b475436-8bbd-4cca-93f1-c8436bf41513"
            }
        ],
        "Phones": [
            {
                "Person": null,
                "CountryCode": "90",
                "PhoneType": 3,
                "Prefix": "534",
                "Number": "0210504",
                "ByMernis": null,
                "ByKkb": true,
                "VerifiedByOTP": true,
                "VerifiedByOTPChannel": null,
                "MarkettingPermitted": true,
                "VerifiedByCustomer": null,
                "ValidationOtpSendCount": 0,
                "Id": "60b61a39-e241-489d-8a65-21a72ccce3a0"
            },
            {
                "Person": null,
                "CountryCode": null,
                "PhoneType": 1,
                "Prefix": "212",
                "Number": "4806766",
                "ByMernis": null,
                "ByKkb": null,
                "VerifiedByOTP": false,
                "VerifiedByOTPChannel": null,
                "MarkettingPermitted": true,
                "VerifiedByCustomer": null,
                "ValidationOtpSendCount": 0,
                "Id": "18cf1f26-37b0-4bd8-850d-54c7eb897288"
            },
            {
                "Person": null,
                "CountryCode": null,
                "PhoneType": 2,
                "Prefix": "212",
                "Number": "5343456",
                "ByMernis": null,
                "ByKkb": null,
                "VerifiedByOTP": false,
                "VerifiedByOTPChannel": null,
                "MarkettingPermitted": true,
                "VerifiedByCustomer": null,
                "ValidationOtpSendCount": 0,
                "Id": "4510b28b-3676-4b17-b68c-d94d0d938581"
            }
        ],
        "IsWorking": false
    },
    "ApplicationType": 10,
    "ApplicationNumber": 5560670,
    "Form": {
        "RequestedAmount": 11000,
        "RequestedMaturity": 15,
        "CitizenshipNumber": 29998810286,
        "PhonePrefix": null,
        "PhoneNumber": "5340210504",
        "SourcesOfIncome": "2,3",
        "PreferredProductTypes": "",
        "OperationCapacity": 1,
        "OperationCount": 1
    },
    "ApplyDate": "2021-10-18T11:43:00.1925509",
    "Cancellation": {
        "CancellationReason": null
    },
    "CreatedByUserName": "EBT\\S00809",
    "OwnerChannelAffiliateCode": null,
    "OwnerChannel": {
        "Id": "4b6b5e4c-d46c-4bc1-8231-ad737f25bc53",
        "ChannelReferenceId": "CALL_CENTER_WEB"
    },
    "SubmitterChannel": {
        "Id": "8e0e05e4-b7ee-4d66-8638-5b6f5f0760e8",
        "IsDealer": false,
        "IsVirtual": true,
        "ChannelReferenceId": "WEB",
        "Settings": {
            "SkipSmsOtp": false,
            "CancelApplicationWhenRequestedNotApproved": false,
            "ProductCartCanChange": null,
            "ProductCartMaxItemCount": null,
            "AmountIsSelectable": true,
            "MaturityIsSelectable": true,
            "AmountIsSelectableAtUtilization": true,
            "MaturityIsSelectableAtUtilization": true,
            "ProductPricingDefined": null,
            "AcquirePhysicalRlaDocsFromCustomer": false,
            "UtilizationByNonApplicant": false,
            "ProductSelectionEnabled": false,
            "IsEcommerce": null,
            "ShowCartItems": null,
            "IsCartItemsEditable": null,
            "UtilizeOnlyRequestedAmount": null,
            "CanApplyBehalfOf": null,
            "SupportCampaignSelection": null,
            "FreeFormatWorkAddressEnabled": null,
            "AmountIsDisabledAtApply": null,
            "CitizenshipNumberIsDisabledAtApply": null,
            "EmailIsDisabledAtApply": null,
            "PhoneNumberIsDisabledAtApply": null,
            "RequireAddressInfoFromCustomer": null,
            "RequirePaymentPlanSimulationFromCustomer": null,
            "RequireDocumentApprovalFromCustomer": null,
            "ShowCartItemsAtPaymentPlan": null,
            "DealerControlEnabled": null,
            "ValideCartOnApply": null,
            "HasProductCategoryCampaign": null,
            "HasUpperLimitApproval": null,
            "ShowMernisAddressInAppointment": false,
            "ShowMonthlyOperations": true,
            "ShowProductInSms": null,
            "EkycEnabled": null,
            "GetAddressBeforeEvaluation": false,
            "CreatedByInstanceId": null,
            "CreatedByUserName": "DB-PC-03",
            "Id": "77567daa-5b2b-4e77-9848-15f462f7d0bd"
        }
    },
    "ContactInfoWhenSmsValidated": null,
    "UpdatedContactInfoWhenSmsValidated": {
        "Person": null,
        "Type": "Bireysel Kontak",
        "BusinessLine": "X",
        "ChannelNumber": "1050",
        "HasInternetBankingUser": null,
        "ContactNumber": 5003175165,
        "CustomerNumber": null,
        "DebitAccount": null,
        "LoanAccount": null,
        "PortfolioCode": "1050X001",
        "IsBankStaff": false,
        "MatchingPhoneNumberWith": [],
        "MatchingPhoneNumberQueryDate": "2021-10-18T11:52:06.1142422",
        "Name": "ERCAN  YAVUZ",
        "RegisteredCountryCode": null,
        "RegisteredCountryCodeName": null,
        "AtmCustomerGroup": "001",
        "IsPrivateBanking": false,
        "FirmName": null,
        "MainBranchCode": "1050",
        "CreatedByInstanceId": "3afdcdce-5572-461d-a329-a1f843bf7b83",
        "CreatedByUserName": "EBT\\S00280",
        "Id": "3af50822-be62-45ab-a9ef-6dacc5499d61"
    },
    "ContactInfoAtCompletion": null,
    "Evaluation": {
        "ScoreCardScore": "508",
        "ResultType": 10,
        "PcsmResultType": "Accept",
        "ProposedLimits": null,
        "EffectiveCampaignReferenceId": "DNMK",
        "IsPreApproved": false,
        "PcsmFraudControlStatus": null,
        "HunterSimBlackListStatus": null,
        "HunterStateOfEmergencyStatus": null,
        "KkbMobilePhoneControlResult": null,
        "KkbMobilePhoneMatchResult": null,
        "OverdraftAmount": 1000,
        "LimitApprovalLevelRequired": "2",
        "Order": 3,
        "ByKkb": true,
        "RequireEvaluationBeforeUtilization": false,
        "RiskCategory": null,
        "CanReactivate": null,
        "CreatedByInstanceId": "3afdcdce-5572-461d-a329-a1f843bf7b83",
        "CreatedByUserName": "EBT\\S00280",
        "Id": "ee3fda99-494d-4c6b-99e4-57fac65c0f9a"
    },
    "PreFraudControl": {
        "HasMatch": false,
        "MatchedCitizenshipNumber": false,
        "MatchedIp": false,
        "MatchedPhone": false,
        "MatchedEmail": false,
        "Description": null,
        "CreatedByInstanceId": "3afdcdce-5572-461d-a329-a1f843bf7b83",
        "CreatedByUserName": "EBT\\S00280",
        "Id": "5a80e98d-b3e0-4a58-b321-7b8e9e675c68"
    },
    "ProposedTerm": {
        "IsDocumentsApproved": null
    },
    "BehalfOfApplicant": null,
    "WaitingAdditionalDocumentControls": [],
    "WaitingAdditionalInfo": {
        "HasWaitingInfo": null
    },
    "IsManualEvaluationEnabled": false
}
```
--------


 > **POST** 
/api/application/FraudApprove/


#### Request
```json=
{"WorkflowInstanceId":"2b804439-e175-4ed7-8c98-ea935d41366c"}
```
### Response
```json=
{"State":"FlowFraudControl_ApprovedCompleted"}
```

--------


## İnternet Bankacılığı Kredi Başvuru

### 1 - İnternet Bankacılığına Giriş 
### 2 - İnternet Bankacılığına Kredi Başvurusu 

İnternet Bankacılığına giriş yapan müşteri krediler sekmesindeki formunu doldurarak başvuru yapar.

> **POST** /api/v1.0/Application/ApplyLoanWithProfile

#### Request
```json
{
    "ProcessId": "2e49f260-d620-4201-9208-ac1305945c72"
}
```

:::danger
ApplicationType ?
:::


#### Response
```json
{
    "UtilizationProcessId": "21b24820-0095-4577-bcf9-045a70cb8306",
    "State": "FlowUtilization_PaymentPlan"
}
```

:::danger
EvaluationResultType : Nedir? 
:::

### 3 - İnternet Bankacılığına Kredi Başvurusu 

İnternet Bankacılığına giriş yapan müşteri krediler sekmesindeki formunu doldurarak başvuru yapar.

> **POST** /api/v1.0/Application/StartUtilization

#### Request
```json
{
    "RequestedAmount": 8000,
    "CitizenshipNumber": "41656720966",
    "RequestedMaturity": 11,
    "Email": "sjfshfj88@fmail.com",
    "MobilePhoneNumber": "5389526263",
    "OwnerChannelCode": "INTERNET",
    "SubmitterChannelCode": "WEB",
    "ProductCode": "IHTKRED",
    "CampaignCode": "DNMK",
    "ApplicationType": 10,
    "MarkettingCommunicationPermitted": true,
    "MarkettingCommunicationVersionMajor": "WEB",
    "MarkettingCommunicationVersionMinor": 3,
    "PersonalDataAgreementPermitted": true,
    "PersonalDataAgreementVersionMajor": "WEB",
    "PersonalDataAgreementVersionMinor": 1,
    "OverdraftApplicationPermitted": false,
    "PersonalInfo": {
        "EducationType": 6,
        "WorkingType": 4,
        "ResidenceType": 1,
        "MonthlyIncome": 10000
    }
}
```

:::danger
ApplicationType ?
:::

### 4 - İnternet Bankacılığına Kredi Başvurusu 

İnternet Bankacılığına giriş yapan müşteri krediler sekmesindeki formunu doldurarak başvuru yapar.

> **POST** /api/v1.0/PaymentPlan/UtilizationPaymentPlan

#### Request
```json
{
    "UtilizationProcessId": "21b24820-0095-4577-bcf9-045a70cb8306",
    "ProcessId": "2e49f260-d620-4201-9208-ac1305945c72",
    "Amount": 8000,
    "Maturity": 11,
    "IsInsuranceSelected": false
}
```

#### Response
```json
{
    "PaymentPlanResponse": {
        "CreditAmount": 8000,
        "Maturity": 11,
        "InterestRate": 1.19,
        "YearlyInterestRate": 14.28,
        "InstallmentAmount": 791.06,
        "TotalAmount": 8701.62,
        "AllocationAmount": 84,
        "YearlyCostRate": 21.143,
        "FirstInstallmentDate": "2021-09-10T00:00:00",
        "LastInstallmentDate": "2022-07-13T00:00:00",
        "InsuranceAmount": 0,
        "PaymentPlanResponseDetails": [
            {
                "SeqNum": 1,
                "InstallmentDate": "2021-09-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 676.82,
                "InterestAmount": 95.2,
                "KkdfAmount": 14.28,
                "BsmvAmount": 4.76
            },
            {
                "SeqNum": 2,
                "InstallmentDate": "2021-10-11T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 686.48,
                "InterestAmount": 87.15,
                "KkdfAmount": 13.07,
                "BsmvAmount": 4.36
            },
            {
                "SeqNum": 3,
                "InstallmentDate": "2021-11-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 696.28,
                "InterestAmount": 78.98,
                "KkdfAmount": 11.85,
                "BsmvAmount": 3.95
            },
            {
                "SeqNum": 4,
                "InstallmentDate": "2021-12-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 706.24,
                "InterestAmount": 70.69,
                "KkdfAmount": 10.6,
                "BsmvAmount": 3.53
            },
            {
                "SeqNum": 5,
                "InstallmentDate": "2022-01-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 716.32,
                "InterestAmount": 62.29,
                "KkdfAmount": 9.34,
                "BsmvAmount": 3.11
            },
            {
                "SeqNum": 6,
                "InstallmentDate": "2022-02-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 726.55,
                "InterestAmount": 53.76,
                "KkdfAmount": 8.06,
                "BsmvAmount": 2.69
            },
            {
                "SeqNum": 7,
                "InstallmentDate": "2022-03-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 736.91,
                "InterestAmount": 45.12,
                "KkdfAmount": 6.77,
                "BsmvAmount": 2.26
            },
            {
                "SeqNum": 8,
                "InstallmentDate": "2022-04-11T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 747.44,
                "InterestAmount": 36.35,
                "KkdfAmount": 5.45,
                "BsmvAmount": 1.82
            },
            {
                "SeqNum": 9,
                "InstallmentDate": "2022-05-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 758.12,
                "InterestAmount": 27.45,
                "KkdfAmount": 4.12,
                "BsmvAmount": 1.37
            },
            {
                "SeqNum": 10,
                "InstallmentDate": "2022-06-10T00:00:00",
                "InstallmentAmount": 791.06,
                "PrincipalAmountPerInstallment": 768.95,
                "InterestAmount": 18.43,
                "KkdfAmount": 2.76,
                "BsmvAmount": 0.92
            },
            {
                "SeqNum": 11,
                "InstallmentDate": "2022-07-13T00:00:00",
                "InstallmentAmount": 791.02,
                "PrincipalAmountPerInstallment": 779.89,
                "InterestAmount": 9.28,
                "KkdfAmount": 1.39,
                "BsmvAmount": 0.46
            }
        ],
        "MaturityDate": "2022-07-13T00:00:00",
        "TotalCreditAmount": 8701.62,
        "CreditAllocationAmount": 80,
        "InterestAmount": 584.7,
        "PackageAmount": 0,
        "LifeInsuranceAmount": 0,
        "InstallmentDateRange": {
            "StartDate": "2021-09-10T00:00:00",
            "EndDate": "2021-09-25T00:00:00"
        },
        "CommissionRate": 0,
        "CommissionAmount": 0
    },
    "PaymentPlanWithInsuranceResponse": null,
    "UtilizationProcessId": "21b24820-0095-4577-bcf9-045a70cb8306",
    "Error": null,
    "HasError": false
}
```

### 5 - İnternet Bankacılığına Kredi Başvurusu 

İnternet Bankacılığına giriş yapan müşteri krediler sekmesindeki formunu doldurarak başvuru yapar.

> **POST** ssohermes.burgan.com.tr/connect/token

#### Request
```json
{
    yok
}
```

#### Response
```json
{
    "token_type": "Bearer",
    "access_token": "0BfTVv2xWLWU3WJLvMm4QZrZqPE5IB0D_wjwqQ17bPQ",
    "expires_in": 600,
    "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkNERkRBRkYwMTYwQjlDNzQyMzg4RUQzQjI2RTY5NjNENjZBNUExRjciLCJ0eXAiOiJKV1QifQ.eyJjbGllbnRfaWQiOiJJYldlYiIsImhhc19jb3Jwb3JhdGVfdXNlciI6IkZhbHNlIiwiaXNfY29ycG9yYXRlX3VzZXIiOiJGYWxzZSIsInN1YiI6ImNlYzE0N2UzLTIwY2YtNDNiMi04NTRlLTEwMGRmMDc2YmJjMyIsImxvZ29uX2lwIjoiMTAuMTgyLjE5Ny45OCIsInVzZXJuYW1lIjoiNDE2NTY3MjA5NjYiLCJuYW1lIjoiNDE2NTY3MjA5NjYiLCJnaXZlbl9uYW1lIjoiQUzEsCDEsEhTQU4iLCJmYW1pbHlfbmFtZSI6IsOHQVZHQSIsImlzX2JhbmtfcGVyc29uZWwiOiJGYWxzZSIsImJ1c2luZXNzX2xpbmUiOiJYIiwiZ2VuZGVyIjoiTWFuIiwiZmlyc3RfZmFjdG9yX3ZhbGlkYXRpb25fdHlwZSI6IldpdGhVc2VyTmFtZUFuZFBhc3N3b3JkTG9naW4iLCJpc19wcml2YXRlX2JhbmtpbmciOiJGYWxzZSIsImlzX29uYmFua191c2VyIjoiRmFsc2UiLCJoYXNfY29sbGVjdGlvbl9yZXN0cmljdGlvbiI6IkZhbHNlIiwibG9jYWxlIjoidHItVFIiLCJlbWFpbCI6InNqZnNoZmo4OEBmbWFpbC5jb20iLCJwaG9uZV9udW1iZXIiOiI5MDUzODk1MjYyNjMiLCJyb2xlIjoiRnVsbEF1dGhvcml6ZWQiLCJjcmVkZW50aWFscyI6WyJJc0Fub255bW91cyMjIzEiLCJJc0ludGVybmV0Q3VzdG9tZXIjIyMxIl0sImlzX2JpcnRoX2RhdGUiOiJGYWxzZSIsInNlc3Npb25faWQiOiI3NmQ3MTg4Zi00NTMxLTQyY2EtOTRjMS05Yjc3ZjRiYjA3YmEiLCJjdXN0b21lcl9udW1iZXIiOiIyMDE4NjgwNCIsInRva2VuX3VzYWdlIjoiaWRfdG9rZW4iLCJqdGkiOiJmYTJhMmE0NS1jNDlmLTQzZDYtYTkwMS05YjQxZTI2MjIwZWUiLCJhdWQiOiJJYldlYiIsImF0X2hhc2giOiJrUmhEUk9EcE52NnVBTFpvcWxTWTJ3IiwiYXpwIjoiSWJXZWIiLCJuYmYiOjE2Mjg2MDEyMTMsImV4cCI6MTYyODYwODQxMywiaWF0IjoxNjI4NjAxMjEzLCJpc3MiOiJodHRwczovL3Nzb2hlcm1lcy5idXJnYW4uY29tLnRyLyJ9.DaDYWHFAxbtI-g8Pzdw3qVxCOHvpje-hmktjRR8AemBu7WGywljYmxTC30YmFreG_wygQchCz8N8SeNkpCxD0qvbVw8RGTEtHqJSmmj_mVN5fgfHviML3kHE_ARi9YTnd9PS7seIqTvxbUCovVGhpA59sRFFPujezg93LdAyXUI3HTPgPKJWcd_TjwXmeKIxaQr3k_0ynlc3p6N1kldRjvQU_FH826pXvX0uyzjIk4GCEgwYLs4yDnRwbb3hMog4akgfUJh2Cj5_huTz0bYkF9ykx3RpzxzzVuL0o5ydgilcDxmUMtSCsUp52tZplDLFg1_duDQCubBqGh6s_4s27g"
}
```

### 6 - İnternet Bankacılığına Kredi Başvurusu 

İnternet Bankacılığına giriş yapan müşteri krediler sekmesindeki formunu doldurarak başvuru yapar.

> **POST** /api/v1.0/PaymentPlan/CompletePaymentPlan

#### Request
```json
{
    "UtilizationProcessId": "21b24820-0095-4577-bcf9-045a70cb8306",
    "IsInsuranceSelected": false
}
```

#### Response
```json
{
    "UtilizationProcessId": "21b24820-0095-4577-bcf9-045a70cb8306",
    "Error": null,
    "HasError": false
}
```

### 7 - İnternet Bankacılığına Kredi Başvurusu 

İnternet Bankacılığına giriş yapan müşteri krediler sekmesindeki formunu doldurarak başvuru yapar.

> **POST** /api/v1.0/Document/ApproveUtilizationDocuments

#### Request
```json
{
    "UtilizationProcessId": "21b24820-0095-4577-bcf9-045a70cb8306",
    "Documents": [
        {
            "Id": "3293598a-74cd-4ec8-be5f-1e54cf5344d8",
            "ActionType": 20,
            "ActionDate": "2021-08-10T16:40:19.8324767+03:00"
        },
        {
            "Id": "dcb8fd0c-b6bc-45e0-a248-7723878d17d7",
            "ActionType": 20,
            "ActionDate": "2021-08-10T16:40:25.9207367+03:00"
        },
        {
            "Id": "ca30998a-a25e-43c9-b0ff-51496f01135b",
            "ActionType": 20,
            "ActionDate": "2021-08-10T16:40:33.3516598+03:00"
        },
        {
            "Id": "dd47b824-28a6-4682-8f50-bd3459b63438",
            "ActionType": 20,
            "ActionDate": "2021-08-10T16:40:38.2855982+03:00"
        },
        {
            "Id": "559fef3e-31cf-456e-8365-5e2f87aa6da9",
            "ActionType": 20,
            "ActionDate": "2021-08-10T16:43:55.74699+03:00"
        },
        {
            "Id": "458ae4bb-1624-490f-b416-278a0dac586e",
            "ActionType": 40,
            "ActionDate": "2021-08-10T16:43:59.5450996+03:00"
        }
    ]
}
```

#### Response
```json
{
    "IsFraudDetected": true,
    "IsFraudRejectedCompleted": false,
    "IsCancelled": false,
    "IsDocumentsApproved": false,
    "UtilizationProcessId": "21b24820-0095-4577-bcf9-045a70cb8306",
    "Error": null,
    "HasError": false
}
```
## Application 
|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| ---------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/Application​/ApplyLoan| {​"RequestedAmount":10000,​"CitizenshipNumber":"30097769832",​"RequestedMaturity":12,​"Email":"demo@burgan.com.tr",​"MobilePhoneNumber":"5321214433",​"OwnerChannelCode":"CALL_CENTER_WEB",​"SubmitterChannelCode":"WEB",​"ProductCode":"IHTKRED",​"CampaignCode":"DNMK",​"ApplicationType":10,​"MarkettingCommunicationPermitted":true,​"MarkettingCommunicationVersionMajor":"WEB",​"MarkettingCommunicationVersionMinor":3,​"PersonalDataAgreementPermitted":true,​"PersonalDataAgreementVersionMajor":"WEB",​"PersonalDataAgreementVersionMinor":1,​"OverdraftApplicationPermitted":false​}|   {​"RequestedAmount":11111,​"CitizenshipNumber":"39649686832",​"RequestedMaturity":6,​"Email":"asdq@test.com",​"MobilePhoneNumber":"5512812225",​"OwnerChannelCode":"WEB",​"SubmitterChannelCode":"WEB",​"ProductCode":"IHTKRED",​"CampaignCode":"DNMK",​"AffiliateCode":"organic",​"utmCampaign":"organic",​"UtmContent":"",​"UtmSource":"",​"ApplicationType":10,​"MarkettingCommunicationPermitted":true,​"MarkettingCommunicationVersionMajor":"WEB",​"MarkettingCommunicationVersionMinor":3,​"PersonalDataAgreementPermitted":true,​"PersonalDataAgreementVersionMajor":"WEB",​"PersonalDataAgreementVersionMinor":1,​"OverdraftApplicationPermitted":false}​|{"RequestedAmount":5000,​"CitizenshipNumber":"13193165166",​"RequestedMaturity":6,​"Email":"mudokredibasvuru123@burgan.com.tr",​"MobilePhoneNumber":"5444444444",​"OwnerChannelCode":"MUDOMASLAK",​"SubmitterChannelCode":"MUDO",​"ProductCode":"IHTKRED",​"CampaignCode":"MUDO",​"ApplicationType":10,​"MarkettingCommunicationPermitted":true,​"MarkettingCommunicationVersionMajor":"BAYI",​"MarkettingCommunicationVersionMinor":3,​"PersonalDataAgreementPermitted":false,​"OverdraftApplicationPermitted":false,​"CartItems":[{"CategoryId":"bfabfc50-e1c6-4929-9e73-e42611513d98",​"CategoryName":"Mobilya",​"Quantity":1,"Amount":5000}],​"ProductDeliveryDate":"2021-08-20"}||
|POST|/api​/v1.0​/Application​/StartUtilization|{"ProcessId":"c4b69b6b-3e16-40de-a8f4-f3fc508d7b52"}  | | |{"ProcessId":"2e49f260-d620-4201-9208-ac1305945c72"}
|POST|/api​/v1.0​/Application​/ApplyLoanWithProfile| ||{"ProcessId":"80808099-72d4-4600-a1d2-625f2fdfbd62"}|{​"RequestedAmount":8000,​"CitizenshipNumber":"41656720966",​"RequestedMaturity":11,​"Email":"sjfshfj88@fmail.com",​"MobilePhoneNumber":"5389526263",​"OwnerChannelCode":"INTERNET",​"SubmitterChannelCode":"WEB",​"ProductCode":"IHTKRED",​"CampaignCode":"DNMK",​"ApplicationType":10,​"MarkettingCommunicationPermitted":true,​"MarkettingCommunicationVersionMajor":"WEB",​"MarkettingCommunicationVersionMinor":3,​"PersonalDataAgreementPermitted":true,​"PersonalDataAgreementVersionMajor":"WEB",​"PersonalDataAgreementVersionMinor":1,​"OverdraftApplicationPermitted":false,​"PersonalInfo":​{​"EducationType":6,​"WorkingType":4,​"ResidenceType":1,​"MonthlyIncome":10000​}​}


## Appointment
|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| -------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/Appointment​/SaveAppointment | {"ProcessId":"c4b69b6b-3e16-40de-a8f4-f3fc508d7b52",​"UseMernisAddress":false,​"HomeAddress":{"CountryCode":90,​​"CityCode":34,​"CityName":"İSTANBUL",​"TownCode":2004,​"TownName":"BAĞCILAR",​"DistrictName":"BAĞLAR Mah",​"StreetName":"12 SOKAK",​"AddressType":1,​"AddressDetail":"no:5",​"PhoneNumber":"2124443344"},​"WorkAddress":{"CountryCode":90,​"CityCode":34,​"CityName":"İSTANBUL",​"TownCode":2048,​"TownName":"ARNAVUTKÖY",​"DistrictName":"BAKLALI Mah",​"StreetName":"AKKUZU SOKAK",​"AddressType":2,​"AddressDetail":"no:5",​"OrganizationName":"test",​"OrganizationSectorCode":36,​"OrganizationSectorName":"Hizmet",​"Email":"demo@burgan.com.tr",​"PhoneNumber":"5321214433"},​"CourierVisitType":2}|{"ProcessId":"80808099-72d4-4600-a1d2-625f2fdfbd62",​"UseMernisAddress":false,​"HomeAddress":{"CountryCode":90,​"CityCode":26,​"CityName":"ESKİŞEHİR",​"TownCode":2047,​TownName":"TEPEBAŞI",​"DistrictName":"AŞAĞI SÖĞÜTÖNÜ Mah",​"StreetName":"1005.SOKAK SOKAK",​"AddressType":1,​"AddressDetail":"NO: 348",​"PhoneNumber":"2164567899"}}




## Document

|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| -------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/Document​/ApproveRetailLoanDocuments |{"ProcessId":"c4b69b6b-3e16-40de-a8f4-f3fc508d7b52",​"TaxPayerType":10,​"Documents":[{"Id":"66498798-1f31-40ac-87ff-7b8ea28510d1",​"ActionType":40}],​"FatcaAndCrsSelection":0,​"CrsCountries":[]}||{"ProcessId":"80808099-72d4-4600-a1d2-625f2fdfbd62",​"TaxPayerType":10,​"Documents":[{"Id":"856fc072-69d6-44a9-a28c-727e6b59017b",​"ActionType":40}],​"FatcaAndCrsSelection":0,​"CrsCountries":[]}|
|POST|/api​/v1.0​/Document​/ApproveUtilizationDocuments|||{"UtilizationProcessId":"8510530c-404c-47cc-a7a8-cfd455229b2c",​"Documents":[{"Id":"683851a0-2f99-47fa-a571-135233dedf1d",​"ActionType":20,​"ActionDate":"2021-08-11T11:10:19.2563192+03:00"},{"Id":"43aecf73-2ea2-4dd1-bbe4-6c704c78451e",​"ActionType":20,​"ActionDate":"2021-08-11T11:10:20.9059792+03:00"},​{"Id":"316a91c8-999b-421c-9d02-410e7b1170b7",​"ActionType":20,​"ActionDate":"2021-08-11T11:10:24.9411181+03:00"},​{"Id":"035057a6-da3a-47ab-9d94-c43c55bceebc",​"ActionType":20,"ActionDate":"2021-08-11T11:10:27.5658584+03:00"},​{"Id":"4806ef8c-f835-4646-838a-7f8c7c087503",​"ActionType":50}]}|​{​"UtilizationProcessId":"21b24820-0095-4577-bcf9-045a70cb8306",​"Documents":[{"Id":"3293598a-74cd-4ec8-be5f-1e54cf5344d8",​"ActionType":20,"ActionDate":"2021-08-10T16:40:19.8324767+03:00"},​{"Id":"dcb8fd0c-b6bc-45e0-a248-7723878d17d7",​"ActionType":20,​"ActionDate":"2021-08-10T16:40:25.9207367+03:00"},​{"Id":"ca30998a-a25e-43c9-b0ff-51496f01135b",​"ActionType":20,​"ActionDate":"2021-08-10T16:40:33.3516598+03:00"},​{"Id":"dd47b824-28a6-4682-8f50-bd3459b63438",​"ActionType":20,​"ActionDate":"2021-08-10T16:40:38.2855982+03:00"},​{"Id":"559fef3e-31cf-456e-8365-5e2f87aa6da9",​"ActionType":20,​"ActionDate":"2021-08-10T16:43:55.74699+03:00"},​{"Id":"458ae4bb-1624-490f-b416-278a0dac586e",​"ActionType":40,​"ActionDate":"2021-08-10T16:43:59.5450996+03:00"​}​]}|
|POST|/api​/v1.0​/Document​/ApproveOverdraftCompletionDocuments
|POST|/api​/v1.0​/Document​/ApproveOnlineDocuments |{"ProcessId" : "c4b69b6b-3e16-40de-a8f4-f3fc508d7b52","Documents" : [{"DocumentId" : "dca7f677-b731-4ca5-b881-de1037facc74","ActionType" : 20,"ActionDate" : "2021-08-03T15:31:34.902+03:00"}]}|
|POST|/api​/v1.0​/Document​/SaveDocumentsForEnabledCustomer
|POST|/api​/v1.0​/Document​/RemoveDocumentForEnabledCustomer

## Ecommerce

|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| -------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/Ecommerce​/EcommerceOrder

## Otp

|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| -------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/Otp​/VerifyOtp​|{"ProcessId":"c4b69b6b-3e16-40de-a8f4-f3fc508d7b52",​"Otp":"996530",​"PersonalInfo":{"EducationType":5,​"WorkingType":1,​"ResidenceType":1,​"ProfessionId":65,​"MonthlyIncome":4800,​"CurrentWorkTime":{"Year":2016,​"Month":4},​"SourcesOfIncome":"2,3,4",​"PreferredProductTypes":"",​"OperationCount":2,​"OperationCapacity":2}​}​|​{​"ProcessId":"8ff79ecf-2b94-4d75-8fc5-cc2757a6aacb",​"Otp":"209845",​"PersonalInfo":{"EducationType":5,​"WorkingType":4,​"ResidenceType":1,​"MonthlyIncome":10000,​"SourcesOfIncome":"1,2,4,3,5,6",​"PreferredProductTypes":"",​"OperationCount":1,​"OperationCapacity":2}}|{"ProcessId":"80808099-72d4-4600-a1d2-625f2fdfbd62",​"Otp":"123456",​"PersonalInfo":{"EducationType":6,​"WorkingType":8,​"ResidenceType":1,​"SourcesOfIncome":"2,3",​"PreferredProductTypes":""}}|
|POST|/api​/v1.0​/Otp​/ResendOtp| {"ProcessId":"a3853379-8349-4a9d-8f39-181d1d790d9f"}|{"ProcessId":"4017aff6-a04f-4658-a006-ad6c2d59f8ee"}|

## PaymentPlan


|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| -------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/PaymentPlan​/SimulatePaymentPlan |{​"OwnerChannelCode":"CALL_CENTER_WEB",​"SubmitterChannelCode":"WEB",​"CreditAmount":10000,​"Maturity":12,​"CampaignCode":"DNMKS",​"ProductCode":"IHTKRED"​} |{​"OwnerChannelCode":"WEB",​"SubmitterChannelCode":"WEB",​"CreditAmount":9000,​"Maturity":11,​"CampaignCode":"DNMKS",​"ProductCode":"IHTKRED",​"FirstInstallmentDate":"2021-09-17"​}|
|POST|/api​/v1.0​/PaymentPlan​/RetailLoanPaymentPlan||| {"ProcessId":"80808099-72d4-4600-a1d2-625f2fdfbd62",​"Amount":5000,​"Maturity":6}|
|POST|/api​/v1.0​/PaymentPlan​/UtilizationPaymentPlan|||{"UtilizationProcessId":"8510530c-404c-47cc-a7a8-cfd455229b2c",​"ProcessId":"80808099-72d4-4600-a1d2-625f2fdfbd62",​"Amount":5000,​"Maturity":6,​"IsInsuranceSelected":false}|​{"UtilizationProcessId":"21b24820-0095-4577-bcf9-045a70cb8306",​"ProcessId":"2e49f260-d620-4201-9208-ac1305945c72",​"Amount":8000,​"Maturity":11,​"IsInsuranceSelected":false}|
|POST|/api​/v1.0​/PaymentPlan​/SavePaymentPlan |{"ProcessId":"c4b69b6b-3e16-40de-a8f4-f3fc508d7b52",​"Amount":5000,​"Maturity":8,​"IsInsuranceSelected":false}||{"ProcessId":"80808099-72d4-4600-a1d2-625f2fdfbd62",​"Amount":5000,​"Maturity":6,​"IsInsuranceSelected":false}|
|POST|/api​/v1.0​/PaymentPlan​/CompletePaymentPlan|||{"UtilizationProcessId":"8510530c-404c-47cc-a7a8-cfd455229b2c",​"IsInsuranceSelected":false}|​{"UtilizationProcessId":"21b24820-0095-4577-bcf9-045a70cb8306",​"IsInsuranceSelected":false}|


## Security


|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| -------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/Security​/SendCode|||{"CitizenshipNumber":"13193165166",​"ClientId":"Dashboard"}||
|POST|/api​/v1.0​/Security​/ValidateCode|||{"CitizenshipNumber":"13193165166",​"Otp":"407392"}||
|POST|/api​/v1.0​/Security​/GetToken|||||
|POST|/api​/v1.0​/Security​/GetAnonymousToken||{"clientId":"JetKredi"}|||
|POST|/api​/v1.0​/Security​/GetClientToken|||||

## Utility

|  | Servis | Backoffice Request Body |Dijital Request Body | Bayi Request Body | IB Request Body|
| -------- | -------- | -------- |-------| -------- |-------|
|POST|/api​/v1.0​/Utility​/ModifyMarkettingPermission
|POST|/api​/v1.0​/Utility​/UnshortenUrl
|POST|/api​/v1.0​/Utility​/ShortenUrl
|POST|/api​/v1.0​/Utility​/VerifyEmailAddress
|POST|/api​/v1.0​/Utility​/CreateEmailVerificationCode
|POST|/api​/v1.0​/Utility​/CreateBuildMarkettingExitUrl
|POST|/api​/v1.0​/Utility​/GetShortenUrlInfo
