> For the complete documentation index, see [llms.txt](https://docs.payengine.co/payengine-api-v2.5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payengine.co/payengine-api-v2.5/onboarding/update-merchant-setting.md).

# Update Merchant Setting

## Get merchant

<mark style="color:purple;">`PATCH`</mark> `https://<Platform-host>/merchant/:merchantId/settings`

Retrieve the details of a merchant.

#### Path Parameters

| Name                                           | Type   | Description                   |
| ---------------------------------------------- | ------ | ----------------------------- |
| merchant\_id<mark style="color:red;">\*</mark> | string | The ID of the merchant to get |

#### Request Body

| Name                                          | Type   | Description                                                                                                                                                                  |
| --------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| override\_minimum\_disbursement\_availability | string | Values - yes \| no. If yes, the value provided in the minimum\_disbursement\_availability field will override the default value set for minimum\_disbursement\_availability  |
| minimum\_disbursement\_availability           | string | it is in milliseconds. This delay will be added to the availability of fund disbursement. This value is required if override\_minimum\_disbursement\_availability is present |

{% tabs %}
{% tab title="200 Returns a merchant object" %}

```javascript
{
    "message": "success"
}
```

{% endtab %}
{% endtabs %}

### Sample Request&#x20;

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

```javascript
{
  "override_minimum_disbursement_availability": "yes",
  "minimum_disbursement_availability":3020 // milliseconds
}
```

{% endtab %}
{% endtabs %}
