# Manage Payment Settings

This set of APIs allows you to get or set your payment settings, including the callback URL and the HTTP method to be used when Paymento sends payment status updates to your server.

> This IPN (callback) URL only needs to be set once, It is a persistent store-level configuration. You do not need to set it every time you request a payment token. Once configured, it remains active for all subsequent payments created under that store.

### Set Payment Settings API

<mark style="color:green;">`POST`</mark> <https://api.paymento.io/v1/payment/settings> \<Description of the endpoint>

**Headers**

<table><thead><tr><th width="301">Name</th><th>Value</th></tr></thead><tbody><tr><td>Api-Key</td><td>Your Merchant API Key</td></tr><tr><td>Content Type</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td><code>text/plain</code></td></tr></tbody></table>

**Body**

| Name                                | Type   | Nullable | Description                           |
| ----------------------------------- | ------ | -------- | ------------------------------------- |
| [`IPN_Url`](#user-content-fn-1)[^1] | string | false    |                                       |
| IPN\_`Method`                       | int    | false    | <p>HttpPost = 1</p><p>HttpPut = 2</p> |

**Response**

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

```json
{
  "success": true,
  "message": "",
  "body": {
    "IPN_Url ": "https://yoursite.com/api/paymento/payment-status",
    "ipN_Method": 1
  }
}

```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

## Get Payment Settings API

<mark style="color:green;">`GET`</mark> <https://api.paymento.io/v1/payment/settings&#x20>;

**Headers**

| Name         | Value                 |
| ------------ | --------------------- |
| Api-Key      | Your Merchant API Key |
| Content Type | `application/json`    |
| Accept       | `text/plain`          |

**Response**

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

```json
{
  "success": true,
  "message": "",
  "body": {
    "IPN_URL": "https://yoursite.com/api/paymento/payment-status",
    "IPN_Method": 1
  }
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

[^1]:


---

# 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://docs.paymento.io/api-documention/additional-apis/manage-payment-settings.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.
