# Transactions

Transactions are all the deposits and withdrawals from your bank account synced in your Lancerkit account. Use the transactions API to list, create or update contacts within your Lancerkit account.&#x20;

## API endpoints

## List transactions

<mark style="color:blue;">`GET`</mark> `https://api.lancerkit.com/transactions`

List all the transactions on your account

#### Query Parameters

| Name   | Type   | Description                             |
| ------ | ------ | --------------------------------------- |
| search | String | A query to filter the transactions list |
| page   | Number |                                         |

{% tabs %}
{% tab title="200: OK All the transactions matching your search " %}

```javascript
{
    // Response


}
```

{% endtab %}
{% endtabs %}

## Get a transaction

<mark style="color:blue;">`GET`</mark> `https://api.lancerkit.com/transactions/:id`

Get a specific transaction from your account

#### Path Parameters

| Name | Type   | Description                             |
| ---- | ------ | --------------------------------------- |
| id   | String | <p></p><p>The id of the transaction</p> |

{% tabs %}
{% tab title="200: OK The specified transaction" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Delete transactions

<mark style="color:red;">`DELETE`</mark> `https://api.lancerkit.com/transactions`

Delete some transactions from your account

#### Request Body

| Name | Type   | Description                           |
| ---- | ------ | ------------------------------------- |
| ids  | String | The ids of the transactions to delete |

{% tabs %}
{% tab title="200: OK The number of transactions deleted" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Edit a transaction

<mark style="color:green;">`POST`</mark> `https://api.lancerkit.com/transactions/:id`

Edit an existing transaction

#### Path Parameters

| Name | Type   | Description               |
| ---- | ------ | ------------------------- |
| id   | String | The id of the transaction |

#### Request Body

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| date        | String |             |
| currency    | String |             |
| amount      | String |             |
| counterpart | String |             |
| description | String |             |

{% tabs %}
{% tab title="200: OK The edited document" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

##
