# Mani.link

## Mani.link Oluştur

<mark style="color:green;">`POST`</mark> `https://api.manikod.com/v1/manilink`

Kendi uygulamanız içerisinde mani.link üreterek müşteriye sms ile iletilmesini sağlar.&#x20;

#### Headers

| Name           | Type   | Description                                                                  |
| -------------- | ------ | ---------------------------------------------------------------------------- |
| Authentication | string | Kimlik denetimi başlığıdır. Detaylar için kimlik denetimi sayfasına bakınız. |

#### Request Body

| Name        | Type    | Description                                                                                                                                                  |
| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| amount      | string  | Ödenecek tutar                                                                                                                                               |
| description | string  | Ödeme açıklaması                                                                                                                                             |
| channel\_id | integer | Ödeme almak istediğiniz kanaldır. Eğer kanal belirtilmez ise ödeme ana kanala alınır.                                                                        |
| callback    | string  | Ödeme sonucunun iletileceği geri dönüş adresidir. Bu adrese işlem sonucu POST ile gönderilir.                                                                |
| customer    | object  | JSON object tipinde müşteri bilglerini içeren veridir. Eğer gönderilirse ilgili müşteriye sms ile üretilen link gönderilir. Detayları aşağıda açıklanmıştır. |
| params      | object  | JSON object tipinde yapılacak satış ile ilgili eklemek istediğiniz özel alanlardır.                                                                          |
| save        | boolean | Üretilen link'i sürekli olarak kullanmaya devam etmek için kaydedebilirsiniz. true gönderildiğinde link üretilip kaydedilir.                                 |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "status": "success",
    "uuid": "769397d8-723d-4eb6-b9e6-089de7773147",
    "manilink": "http://mani.link/1jb",
    "qr_url": "https://manikod.com/qr.svg?link=1jb",
    "saved": true,
    "hash": "1d8f6aeeb803071d830b7433b8facb2aeefc09c9bac7a1b1a63272928f3169b60cd646cd7a374f49ae597084c1698b1db02d394d9f54f3ba13854848f05a558d"
}
```

{% endtab %}

{% tab title="403 " %}

```javascript
{
    "status": "error",
    "message": "Kaydedilen link için bir başlık girmelisiniz",
    "hash": "157202587a71d3afb42f3427e1c3955dc662d37d3f879f9f7e2a1f871e8b0cab486192aa3db455479be9c79829ee25ce7b823d48f6ad1ba005d4c67bb2c34781"
}
```

{% endtab %}
{% endtabs %}

#### customer JSON OBJECT

| Başlık | Veri Tipi | Zorunlu | Açıklama                                                       |
| ------ | --------- | ------- | -------------------------------------------------------------- |
| name   | string    | Evet    | Müşteri adı                                                    |
| phone  | numeric   | Evet    | Müşteri telefon numarasıdır. 5554443344 formatında gönderilir. |


---

# 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://developer.manikod.com/services/manilink.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.
