# Receipt

## Creates a receipt

<mark style="color:green;">`POST`</mark> `https://demo.icure.cloud/rest/v2/receipt`

#### Request Body

| Name                                   | Type    | Description |
| -------------------------------------- | ------- | ----------- |
| body<mark style="color:red;">\*</mark> | Receipt |             |

{% tabs %}
{% tab title="200 " %}

{% endtab %}
{% endtabs %}

## Deletes receipts

<mark style="color:green;">`POST`</mark> `https://demo.icure.cloud/rest/v2/receipt/delete/batch`

#### Request Body

| Name                                   | Type      | Description |
| -------------------------------------- | --------- | ----------- |
| body<mark style="color:red;">\*</mark> | ListOfIds |             |

{% tabs %}
{% tab title="200 " %}

{% endtab %}
{% endtabs %}

## Gets a receipt

<mark style="color:blue;">`GET`</mark> `https://demo.icure.cloud/rest/v2/receipt/{receiptId}`

#### Path Parameters

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| receiptId<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200 " %}

{% endtab %}
{% endtabs %}

## Get an attachment

<mark style="color:blue;">`GET`</mark> `https://demo.icure.cloud/rest/v2/receipt/{receiptId}/attachment/{attachmentId}`

#### Path Parameters

| Name                                           | Type   | Description |
| ---------------------------------------------- | ------ | ----------- |
| receiptId<mark style="color:red;">\*</mark>    | String |             |
| attachmentId<mark style="color:red;">\*</mark> | String |             |

#### Query Parameters

| Name                                      | Type   | Description |
| ----------------------------------------- | ------ | ----------- |
| enckeys<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200 " %}

{% endtab %}
{% endtabs %}

## Gets a receipt

<mark style="color:blue;">`GET`</mark> `https://demo.icure.cloud/rest/v2/receipt/byRef/{ref}`

#### Path Parameters

| Name                                  | Type   | Description |
| ------------------------------------- | ------ | ----------- |
| ref<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200 " %}

{% endtab %}
{% endtabs %}

## Updates a receipt

<mark style="color:orange;">`PUT`</mark> `https://demo.icure.cloud/rest/v2/receipt`

#### Request Body

| Name                                   | Type    | Description |
| -------------------------------------- | ------- | ----------- |
| body<mark style="color:red;">\*</mark> | Receipt |             |

{% tabs %}
{% tab title="200 " %}

{% endtab %}
{% endtabs %}

## Creates a receipt's attachment

<mark style="color:orange;">`PUT`</mark> `https://demo.icure.cloud/rest/v2/receipt/{receiptId}/attachment/{blobType}`

#### Path Parameters

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| receiptId<mark style="color:red;">\*</mark> | String |             |
| blobType<mark style="color:red;">\*</mark>  | String |             |

#### Query Parameters

| Name    | Type   | Description |
| ------- | ------ | ----------- |
| enckeys | String |             |

#### Request Body

| Name                                   | Type   | Description |
| -------------------------------------- | ------ | ----------- |
| body<mark style="color:red;">\*</mark> | Object |             |

{% tabs %}
{% tab title="200 " %}

{% endtab %}
{% endtabs %}
