> 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/payment-network.md).

# Payment Network

### Liquidity Pool

<mark style="color:green;">`POST`</mark>  <https://sandbox.triangle.digital/api/v2/liquidity\\_pool/clients/{client\\_id}/assets/purchase\\_assets\\_network&#x20>;

**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"><thead><tr><th width="168.6328125">Name</th><th width="89.60546875">Type</th><th width="299.1796875">Description</th><th>Example</th></tr></thead><tbody><tr><td><code>hash</code></td><td>string</td><td>API key</td><td>fk5f0iuy-rr06-j4x3-i75b-fy2s67s4ilo1</td></tr><tr><td><code>invoice_ids</code></td><td>array</td><td>Invoice IDs</td><td>[61]</td></tr><tr><td><code>payment_provider</code></td><td>string</td><td>enter "mtn" if paying via Payment Provider Multi-Token Network (MTN) </td><td>mtn</td></tr><tr><td><code>transaction_id</code></td><td>string</td><td>specify Transaction ID if paying via Payment Provider Multi-Token Network (MTN)</td><td>0x4e5a3b2f1....</td></tr></tbody></table>

**Response**

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

```json
{
    "message": "Purchase completed successfully.",
    "success": true,
    "data": {
        "purchase_successful": [
            {
                "invoice_id": 61,
                "invoice_number": "56WFFS23",
                "employee_id": 18,
                "employee_number": "D2354324",
                "carbon_type": "Air Travel",
                "co2": 1.0,
                "notional": 120.0,
                "pool_price": 120.0,
                "credit_card_last4": "4242",
                "status": "paid"
            }
        ],
        "purchase_failed": []
    },
    "operations_count": 1
}
```

{% endcode %}
{% endtab %}

{% tab title="400" %}

```json
{
  "message": "Error! No such hash.",
  "success": false,
}
```

{% endtab %}
{% endtabs %}
