> For the complete documentation index, see [llms.txt](https://docs.paymento.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paymento.io/api-documentation/additional-apis/manage-payment-settings.md).

# 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>

**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>application/json</code></td></tr></tbody></table>

**Body**

| Name         | Type   | Nullable | Description                                                                                               |
| ------------ | ------ | -------- | --------------------------------------------------------------------------------------------------------- |
| `ipN_URL`    | string | false    | The URL Paymento sends payment status callbacks to.                                                       |
| `ipN_Method` | int    | false    | <p>HttpPost = 1</p><p>HttpPut = 2</p><p>Any other value, including 0, is sent as PUT. Use 1 for POST.</p> |

```json
{
  "ipN_URL": "https://yoursite.com/api/paymento/payment-status",
  "ipN_Method": 1
}
```

**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 / 401 — API key" %}

```json
{
  "success": false,
  "message": "The 'Api-Key' value is invalid or does not match a merchant store.",
  "code": "API_KEY_INVALID"
}
```

{% endtab %}
{% endtabs %}

## Get Payment Settings API

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

**Headers**

| Name    | Value                 |
| ------- | --------------------- |
| Api-Key | Your Merchant API Key |
| Accept  | `application/json`    |

**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 / 401 — API key" %}

```json
{
  "success": false,
  "message": "The 'Api-Key' value is invalid or does not match a merchant store.",
  "code": "API_KEY_INVALID"
}
```

{% endtab %}
{% endtabs %}
