# Cari Hesap

Bayiler kur servisi sayesinde Paynet üzerinden istedikleri kur üzerinden işlem yapabilmelerine ve cari hesapları hakkında bilgi almalarına olanak sağlayan yapıdır.

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

| Parametre İsmi    | Tip    | Zorunlu | Açıklama                  |
| ----------------- | ------ | ------- | ------------------------- |
| **company\_code** | string |         | Paynet ana firma kodu     |
| **agent\_id**     | string |         | Paynet bayi kodu          |
| **reference\_no** | string |         | Bayinin referans numarası |
| {% endtab %}      |        |         |                           |

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

| Parametre İsmi            | Tip      | Açıklama                                                                                                            |
| ------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- |
| **date**                  | datetime | İşlem zamanı bilgisi                                                                                                |
| **company\_code**         | string   | Paynet ana firma kodu                                                                                               |
| **agent\_id**             | string   | Paynet bayi kodu                                                                                                    |
| **reference\_no**         | string   | Referans numarası                                                                                                   |
| **first\_column\_title**  | string   | 100 ile çarpılmış şekilde string formatta setlenmeli                                                                |
| **second\_column\_title** | string   | 100 ile çarpılmış şekilde string formatta setlenmeli                                                                |
| **note**                  | string   | Açıklama                                                                                                            |
| **Para Birimleri\[]**     |          | TRY,USD,EUR                                                                                                         |
| **->kur**                 | string   | &#xD;O anki TRY cinsinden hesaplanmış kur bilgisi. Fakat bunu 100 ile çarpılmış şekilde string formatta setlenmeli. |
| {% endtab %}              |          |                                                                                                                     |

{% tab title="Request" %}

```
{  
   "agent_id":"53983",
   "company_code":"1000",
   "reference_no":"12471"
}
```

{% endtab %}

{% tab title="Response" %}

```
{  
 "date":"2018-10-12 08:53:00",
   "company_code":"1000",
   "agent_id":"52000",
   "reference_no":"12471",
 "first_column_title":" Bakiye",
 "second_column_title":" V.D. Borç",

 "note":" Ödemeleriniz Pazartesi günü aktarılır. *V.D: Vadesi Dolan"

   "ParaBirimleri":[  
      {  
    “is_default” : true,
         "para_birimi":"USD",
         "kur":"6.954"
      },
      {  
    “is_default” : false,
         "para_birimi":"EUR",
         "kur":"6.954"
      },
      {  
    “is_default” : false,
         "para_birimi":"TRY",
         "kur":"1"
      }
   ],

   "Bakiye":[  
      {  
         "para_birimi":"USD",
         "first_column_value":"34546.95",
    "second_column_value":"34546.95"
   },
   {  
     "para_birimi":"EUR",
     "first_column_value":"0",
     "second_column_value":"34546.95"
     },
   {  
      "para_birimi":"TL",
      "first_column_value":"-56.000",
      "second_column_value":"34546.95"
   }
  ] 
}


```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                             |
| ---------------- | ------------------------------- |
| **Canlı Sistem** | <https://api.paynet.com.tr>     |
| **Test Sistemi** | <https://pts-api.paynet.com.tr> |
| {% endtab %}     |                                 |
| {% endtabs %}    |                                 |

{% hint style="info" %}
**Dikkat edilmesi gereken hususlar:**

1. Response değerindeki tüm tutar bilgileri 100 ile çarpılmış şekilde ve string formatında olmalı.
2. &#x20;Başarısız olunan durumlarda Http status code 200 dışında herhangi bir parameter kodu ile dönülmeli( 500 gibi ).
3. Servis istekleri maximum 10 saniyede data dönmeli.
   {% endhint %}


---

# 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/cari-hesap.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.
