> For the complete documentation index, see [llms.txt](https://doc.paynet.com.tr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.paynet.com.tr/english/card-save/sending-otp.md).

# Sending OTP

If OTP verification is necessary in member workplace card storage services, it sends an OTP code to the relevant number (last user) by using this service.

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

{% tabs %}
{% tab title="Request Parameters" %}

| Parameter Name       | Type   | Required | Description                                                                                                                  |
| -------------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **user\_gsm**        | string | Yes      | Phone number to send OTP.                                                                                                    |
| **otp\_session\_id** | string | Yes      | The unique value that will be associate with the OTP. This value is associated with the card information that will be saved. |
| {% endtab %}         |        |          |                                                                                                                              |

{% tab title="Response Parameters" %}

| Parameter Name  | Type     | Description                                                                                            |
| --------------- | -------- | ------------------------------------------------------------------------------------------------------ |
| **otp\_expire** | datetime | OTP's expiration time ,should not be run again before this time.                                       |
| **code**        | string   | Code of response result. [Expr](https://doc.paynet.com.tr/genel-bilgiler/hata-kodlari/doenues-kodlari) |
| **message**     | string   | Response result message.                                                                               |
| {% endtab %}    |          |                                                                                                        |

{% tab title="Request" %}

```
{  
   "user_gsm":"5xxxyyzz",
   "otp_session_id":"otp_session_id"
}
```

{% endtab %}

{% tab title="Response" %}

```
{  
   "otp_expire":"2017-07-17T15:30:15.0581408+03:00",
   "code":0,
   "message":"Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service URL" %}

| System          | URL                                                                                                                                                                                                  |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Live System** | [https://api.paynet.com.tr\[/v1/card/send\\\_otp](https://doc.paynet.com.tr/english/card-save/https:/api.paynet.com.tr\[/v1/card/send\\_otp)]\(<https://api.paynet.com.tr/v1/card/send_otp>)         |
| **Test System** | [https://pts-api.paynet.com.tr\[/v1/card/send\\\_otp](https://doc.paynet.com.tr/english/card-save/https:/pts-api.paynet.com.tr\[/v1/card/send\\_otp)]\(<https://api.paynet.com.tr/v1/card/send_otp>) |
| {% endtab %}    |                                                                                                                                                                                                      |
| {% endtabs %}   |                                                                                                                                                                                                      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.paynet.com.tr/english/card-save/sending-otp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
