> For the complete documentation index, see [llms.txt](https://tri.gitbook.io/tri-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tri.gitbook.io/tri-doc/liquidity-pool/delete-mastercard-card.md).

# Delete MasterCard Card

### Liquidity Pool

<mark style="color:red;">`DELETE`</mark> <https://sandbox.triangle.digital/api/v2/liquidity\\_pool/clients/{client\\_id}/mastercard>

Removes the MasterCard card of one holder — an employee or an individual consumption, exactly one of `employee_id` and `individual_consumption_id`.

The consent is revoked at MasterCard first, and the card is cleared on this side only if that succeeded. A failed revoke is answered as a refusal, so the call can be repeated rather than leaving a consent alive with nothing pointing at it. A consent MasterCard no longer knows about counts as revoked — the end state is the same.

A Stripe card on the same holder is independent and stays. A new MasterCard card is enrolled with [Start MasterCard Enrolment](/tri-doc/liquidity-pool/add-mastercard-card/start-mastercard-enrolment.md).

**Path parameters**

<table data-full-width="true" data-search="false"><thead><tr><th width="230">Name</th><th width="110">Type</th><th>Description</th><th width="210">Where to take it from</th></tr></thead><tbody><tr><td><code>client_id</code></td><td>integer</td><td><strong>Required.</strong> The client the holder belongs to.</td><td><a href="/tri-doc/liquidity-pool/get-clients.md">Get Clients</a> — <code>client_id</code></td></tr></tbody></table>

**Headers**

<table data-full-width="true"><thead><tr><th>Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/json</code></td></tr></tbody></table>

**Query parameters**

<table data-full-width="true" data-search="false"><thead><tr><th width="250">Name</th><th width="110">Type</th><th>Description</th><th width="260">Example</th></tr></thead><tbody><tr><td><code>hash</code></td><td>string</td><td><strong>Required.</strong> API key.</td><td>fk5f0iuy-rr06-j4x3-i75b-fy2s67s4ilo1</td></tr><tr><td><code>employee_id</code></td><td>integer</td><td>The employee whose card is removed. Exactly one of <code>employee_id</code> and <code>individual_consumption_id</code> is required. From <a href="/tri-doc/liquidity-pool/get-employees.md">Get Employees</a> — <code>employee_id</code>.</td><td>345</td></tr><tr><td><code>individual_consumption_id</code></td><td>uuid</td><td>The individual consumption whose card is removed; Business clients only. Exactly one of <code>employee_id</code> and <code>individual_consumption_id</code> is required. From <a href="/tri-doc/liquidity-pool/get-individual-consumptions.md">Get Individual Consumptions</a> — <code>individual_consumption_id</code>.</td><td>68117898-4278-499f-b96b-78173f3d2040</td></tr></tbody></table>

**Response fields**

<table data-full-width="true" data-search="false"><thead><tr><th width="300">Field</th><th width="110">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>message</code></td><td>string</td><td>Human-readable result of the call.</td></tr><tr><td><code>success</code></td><td>boolean</td><td>Whether the card was removed; a refused call answers HTTP 400.</td></tr><tr><td><code>data</code></td><td>object</td><td>Empty — the holder was named in the request and the removed card has no identifier to report.</td></tr><tr><td><code>operations_count</code></td><td>integer</td><td>Always <code>1</code>.</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}
{% code fullWidth="false" %}

```json
{
    "message": "MasterCard card removed successfully.",
    "success": true,
    "data": {},
    "operations_count": 1
}
```

{% endcode %}
{% endtab %}

{% tab title="400" %}
The card is still there. The `message` says what exactly: `No MasterCard card on file.`; `Missing consent id for this MasterCard card.` — the card was stored without a consent id and cannot be revoked; `Unable to revoke the MasterCard card. Please try again.` — MasterCard did not confirm the revoke; `Provide either employee_id or individual_consumption_id.` or `Provide either employee_id or individual_consumption_id, not both.`; `'employee_id' must be a positive integer.`; `Employee not found for this client.` or `Individual consumption not found for this client.`; `This client is not a Business account.` — an individual consumption was named for a non-Business client.

```json
{
    "message": "No MasterCard card on file.",
    "success": false,
    "data": {},
    "operations_count": 1
}
```

{% endtab %}
{% endtabs %}
