# 1.3.Kart Kaydetme Servisi

Ödeme esnasında kartı Paynet sistemlerine kaydetmek istiyorsanız ve Auth servisinde belirlenmiş parametreler gönderilmemiş ise bu servisi kullanabilirsiniz. Kart açıklamasını gönderirseniz gönderdiğiniz açıklama ile işlem yapılır. göndermeseniz Paynet’in ekranında karta isim verebilirmek için alan çıkar.

{% hint style="success" %}
[https://api.paynet.com.tr/v1/paynetj/save\_card](https://api.paynet.com.tr/v1/paynetj/savecard)
{% endhint %}

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

| Parametre İsmi  | Tip    | Zorunlu | Açıklama                                                                                                                                                      |
| --------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **session\_id** | string | Evet    | Auth servisiyle ilgili alınan session bilgisi                                                                                                                 |
| **card\_desc**  | string | Hayır   | Eğer kart açıklaması gönderilmez ise Paynet'in ekranı açıklama alır. Paynet kart saklama üyelik sözl. Vs ve okudum anladım çıkar.                             |
| **user\_gsm**   | string | Hayır   | 5XXXXXXXXX formatında kart sahibinin gsm nosu. OTP zorunlu ise zorunlu olacak. OTP zorunlu ve auth servisinde göndermediyseniz bu servisde göndermek zorunlu. |
| {% endtab %}    |        |         |                                                                                                                                                               |

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

| Parametre İsmi   | Tip    | Açıklama                                    |
| ---------------- | ------ | ------------------------------------------- |
| **session\_id**  | string | Auth ile başlatılan session                 |
| **object\_name** | string | Dönen cevabın nesne adı                     |
| **code**         | string | İşlemin cevap kodu 0 ise işlem başarılıdır. |
| **message**      | string | İşlemin cevap koduna göre mesaj barındırır. |
| {% endtab %}     |        |                                             |

{% tab title="Request" %}

```
{  
   session_id:"js_EAAAAMb2/RMGqozzIWMQWUTL5pJrdQvi/aD5qZ4A1LaDfo8g",
   card_desc:"onur ozdemir"
}
```

{% endtab %}

{% tab title="Response" %}

```
{
    "session_id": "js_EAAAALCbsO8tRNkc4NjA8tU2*2eDZfKhh6fSHHpGzKrc7T6q",
    "code": 0,
    "message": "Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                                                                                                                                                                                                             |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Canlı Sistem** | [https://api.paynet.com.tr\[/v1/paynetj/save\\\_card](https://doc.paynet.com.tr/uornek/servisler/kart-saklama/1.oedeme-sirasinda-kart-saklama/https:/api.paynet.com.tr\[/v1/paynetj/save\\_card)]\(<https://api.paynet.com.tr/v1/paynetj/savecard>)             |
| **Test Sistemi** | [https://pts-api.paynet.com.tr​​\[/v1/paynetj/save\\\_card](https://doc.paynet.com.tr/uornek/servisler/kart-saklama/1.oedeme-sirasinda-kart-saklama/https:/pts-api.paynet.com.tr​​\[/v1/paynetj/save\\_card)]\(<https://api.paynet.com.tr/v1/paynetj/savecard>) |
| {% 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/kart-saklama/1.oedeme-sirasinda-kart-saklama/untitled-1.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.
