> 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/create-individual-consumption.md).

# Create Individual Consumption

### Liquidity Pool

<mark style="color:green;">`POST`</mark> <https://sandbox.triangle.digital/api/v2/liquidity\\_pool/clients/{client\\_id}/individual\\_consumptions>

Adds an Individual Consumption of the client. Business accounts only. All validation problems are returned at once in `data.errors`.

**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 Individual Consumption 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>

**Body**

<table data-full-width="true" data-search="false"><thead><tr><th width="200">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>first_name</code></td><td>string</td><td>First name.</td><td>John</td></tr><tr><td><code>last_name</code></td><td>string</td><td>Last name.</td><td>Smith</td></tr><tr><td><code>email</code></td><td>string</td><td><strong>Required.</strong> Unique among the client's Individual Consumptions.</td><td>support@triangle.digital</td></tr><tr><td><code>telephone</code></td><td>string</td><td>Telephone.</td><td>+1 (555) 555-0199</td></tr></tbody></table>

```json
{
    "hash": "fk5f0iuy-rr06-j4x3-i75b-fy2s67s4ilo1",
    "first_name": "John",
    "last_name": "Smith",
    "email": "support@triangle.digital",
    "telephone": "+1 (555) 555-0199"
}
```

**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 record was created; a refused call answers HTTP 400.</td></tr><tr><td><code>data.individual_consumption_id</code></td><td>uuid</td><td>The created record. Use it wherever an <code>individual_consumption_id</code> is expected (<a href="/tri-doc/liquidity-pool/buy-carbon-pool.md">Buy Carbon Pool</a>, <a href="/tri-doc/liquidity-pool/get-carbon-transactions.md">Get Carbon Transactions</a>, <a href="/tri-doc/liquidity-pool/add-credit-card-for-individual-consumption.md">Add Credit Card For Individual Consumption</a>, <a href="/tri-doc/liquidity-pool/balance.md">Balance</a>).</td></tr><tr><td><code>data.first_name</code> / <code>last_name</code> / <code>email</code> / <code>telephone</code></td><td>string</td><td>The stored values, as entered.</td></tr><tr><td><code>data.credit_card</code></td><td>boolean</td><td>Whether a card is attached; <code>false</code> for a new record.</td></tr><tr><td><code>data.master_card</code></td><td>boolean</td><td>Whether the client's master card covers this record; <code>false</code> for a new record.</td></tr><tr><td><code>data.last_pay_error</code></td><td>boolean</td><td>Whether the last payment failed; <code>false</code> for a new record.</td></tr><tr><td><code>data.last_pay_at</code></td><td>string</td><td>When the last payment happened, MM/DD/YYYY HH:MM:SS UTC +00:00; empty for a new record.</td></tr><tr><td><code>data.errors</code></td><td>array</td><td>400 only — every validation problem, one per entry.</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="201" %}
{% code fullWidth="false" %}

```json
{
    "message": "Individual consumption created successfully.",
    "success": true,
    "data": {
        "individual_consumption_id": "bc924eb0-afa6-4b8c-b52b-e9a86cbc0a60",
        "first_name": "John",
        "last_name": "Smith",
        "email": "support@triangle.digital",
        "telephone": "+1 (555) 555-0199",
        "credit_card": false,
        "master_card": false,
        "last_pay_error": false,
        "last_pay_at": ""
    },
    "operations_count": 1
}
```

{% endcode %}
{% endtab %}

{% tab title="400" %}
A field is missing or not valid, or the client is not a Business account; `data.errors` lists every problem.

```json
{
    "message": "Email already exists",
    "success": false,
    "data": {
        "errors": [
            "Email already exists"
        ]
    },
    "operations_count": 1
}
```

{% endtab %}
{% endtabs %}
