# 3. Update

## Update

<mark style="color:$warning;">`PUT`</mark> `{{Base Address}}/api/v1/fraud/blacklist`

It is sufficient to send a request to the address provided above. You can use the **Base Address** as needed for both the test and live environments.

{% hint style="info" %}
**Important:** To use the **Fraud – Blacklist – Update** service, you must include the **apikeyprivate** and **apiclientprivate** parameters in the **Header**.\
\
[<mark style="color:green;">**FraudAPI Address**</mark>](/payment-orchestration-integration-document/environment.md)
{% endhint %}

#### The header information to be sent to the service is as follows:

<table><thead><tr><th width="243">Parameter</th><th width="106.33333333333331">Type</th><th width="164.09375">Compulsory</th><th>Description</th></tr></thead><tbody><tr><td>apikeyprivate</td><td>string</td><td>Yes</td><td>The <strong>Private Key</strong> obtained from the merchant panel.</td></tr><tr><td>apiclientprivate</td><td>string</td><td>Yes</td><td>The <strong>Private Client</strong> obtained from the merchant panel.</td></tr></tbody></table>

**Information to be sent to the service:**

<table><thead><tr><th width="117.3359375">Parameter</th><th width="107.81380208333331">Type</th><th>Compolsory</th><th>Description</th></tr></thead><tbody><tr><td>EntryType</td><td>int</td><td>Yes</td><td><p>The type of the data to be added to the blacklist</p><p><br>See: <a href="/pages/Ov38LvW3laEjrQO07Xj9">Typles</a></p></td></tr><tr><td>Value</td><td>int</td><td>Yes</td><td>The value of the data to be added to the blacklist</td></tr><tr><td>ExpiresAt</td><td>DateTime?</td><td>No</td><td>The data to be added to the blacklist</td></tr><tr><td>IsActive</td><td>bool</td><td>Yes</td><td>Represents the active status of the data in the blacklist</td></tr></tbody></table>

{% tabs %}
{% tab title="JSON" %}
{% code lineNumbers="true" %}

```csharp
{
    "EntryType": 1,
    "Value": "xxxx@gmail.com",
    "ExpiresAt": "2026-12-12T05:57:52",
    "IsActive": true
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

**Response returned from the service:**

<table><thead><tr><th width="156">Parameter</th><th width="83.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>Body</td><td>object</td><td>JSON containing detailed balance information (optional)</td></tr><tr><td>ErrorCode</td><td>int</td><td>Error code. Returns '0' if the operation is successful</td></tr><tr><td>Result</td><td>bool</td><td>Returns true or false. If the operation is successful, it returns true</td></tr><tr><td>Message</td><td>string</td><td>If the operation fails, it returns the relevant error message and provides language support based on the locale parameter</td></tr></tbody></table>

{% tabs %}
{% tab title="JSON" %}
{% code overflow="wrap" lineNumbers="true" %}

```json5
{
    "Value": {
        "Updated": true,
        "Message": "Blacklist entry updated successfully"
    },
    "IsFailure": false,
    "IsSuccess": true,
    "Error": null
}
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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.paywall.one/payment-orchestration-integration-document/fraud-service/blacklist/3.-update.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.
