# 3. Delete Card

## Delete Saved Card

<mark style="color:red;">`DELETE`</mark> `{{Base Adres}}/paywall/card/insurance`

{% hint style="info" %}
Important: Card transactions are high-security operations. Therefore, you must send the '**apikeyprivate**' and '**apiclientprivate**' parameters in the 'Header' section.

\
[<mark style="color:green;">**CardWallAPI Address**</mark>](https://developer.paywall.one/payment-orchestration-integration-document/environment)
{% endhint %}

**The parameters to be sent to the service (HEADERS) are as follows:**

<table><thead><tr><th width="176">Parameter</th><th width="109">Type</th><th width="137">Compulsory</th><th width="403">Description</th></tr></thead><tbody><tr><td>apikeyprivate</td><td>string</td><td>Yes</td><td>The Private Key obtained from the merchant's admin panel.</td></tr><tr><td>apiclientprivate</td><td>string</td><td>Yes</td><td>The Private Client obtained from the merchant's admin panel.</td></tr></tbody></table>

**The parameters to be sent to the service (BODY) are as follows:**

<table><thead><tr><th width="193">Parameter</th><th width="112">Type</th><th width="148">Compulsory</th><th width="336">Description</th><th></th></tr></thead><tbody><tr><td>RelationalId1</td><td>string</td><td>Yes</td><td>The unique information associated with the card.</td><td></td></tr><tr><td>RelationalId2</td><td>string</td><td>No</td><td>The second unique information associated with the card.</td><td></td></tr><tr><td>RelationalId3</td><td>string</td><td>No</td><td>The third unique information associated with the card.</td><td></td></tr><tr><td>UniqueCode</td><td>string</td><td>Yes</td><td>The unique information (identity) of the saved card.</td><td></td></tr></tbody></table>

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

```json5
{
    "RelationalId1": "1000923",
    "RelationalId2": "",
    "RelationalId3": "",
    "UniqueCode": "921245xQN85D0+Zuf7oAJv5@@@@@G86eN7RA4cX8L4hHo7Ma3hg7AW7Bq232yPyw2iVPkrt1qEw=="
}
```

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

**The parameters returned by the service are as follows:**

<table><thead><tr><th width="189">Parameter</th><th width="124.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>ErrorCode</td><td>int</td><td>Error code. If the transaction is successful, it returns the value '0'.</td></tr><tr><td>Result</td><td>bool</td><td>It returns a true or false value. If the transaction is successful, it returns the value 'true'.</td></tr><tr><td>Message</td><td>string</td><td>If the transaction is erroneous, this is the message related to the error, and it provides language support based on the locale parameter.</td></tr><tr><td>Body</td><td>object</td><td>If the transaction is erroneous, this is the detailed object related to the error.</td></tr></tbody></table>

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

```json
{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": null
}
```

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