# API

## Crearea unui Invois

<mark style="color:green;">`POST`</mark> `https://invoicing.esempla.systems/api/v1/invoice`

1\. Indicam Identificatorul de la Provaiderul din SSO, in cimpul "SYSTEM\_ID:" din docker-compose.yml si indeplinim comanda "docker-compose up"\
2\. Indeplinim "Authorization", pentru a importa organizatia si proectul din SSO in Invoicing\
3\. Adaugam "Headers", "Body Parameters" si cream Invoices

#### Path Parameters

| Name          | Type   | Description                                                                    |
| ------------- | ------ | ------------------------------------------------------------------------------ |
| Authorization | string | <p>indicam tokenul generat prin metoda: /api/v1/login in aplicatia SSO<br></p> |

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| Content-Type | string | application/json |

#### Request Body

| Name    | Type   | Description                                         |
| ------- | ------ | --------------------------------------------------- |
| idno    | string | idno -ul clientului                                 |
| service | string | adugam numarul, codului, serviciului, din Invoicing |

{% tabs %}
{% tab title="200 Exemplul rezultatului corect, a fost creat Invoices" %}

```javascript
{
    "id": "0ee63c41-ea0a-4d09-a840-bb40798bf711"
}
```

{% endtab %}

{% tab title="400 1. Organizatia si Proectul din SSO au fost importate in Invoicing
2\. Dupa import, cauza in datele indicate incorect "Body", "Headers"" %}

```
{
    "name": "Bad Request",
    "message": "{\"idno\":[\"IDNO cannot be blank.\"],\"service\":[\"Service ID cannot be blank.\"]}",
    "code": 405,
    "status": 400,
    "type": "yii\\web\\HttpException"
}
```

{% endtab %}

{% tab title="401 Incorect setat identificatorul de la provaider in cimpul "SYSTEM\_ID:" din docker-compose.yml" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Unauthorized (#401)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Unauthorized (#401)</h1>
        <h2>{&quot;name&quot;:&quot;Forbidden&quot;,&quot;message&quot;:&quot;&quot;,&quot;code&quot;:0,&quot;status&quot;:403}</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 12:51:23    </div>
    </body>
</html>
```

{% endtab %}

{% tab title="404 Problema cu metodata, este indicata incorect" %}

```javascript
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 13:56:04    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

## Vizionarea listei Invoices

<mark style="color:blue;">`GET`</mark> `https://invoicing.esempla.systems/api/v1/invoice/`

#### Path Parameters

| Name          | Type   | Description     |
| ------------- | ------ | --------------- |
| Authorization | string | indicam Tokenul |

{% tabs %}
{% tab title="200 Exemplu rezultatului corect" %}

```
[
    {
        "code": "cc8bb444-a05f-4ae6-bbd7-558d33a2506b",
        "project": "SSOProject",
        "service": "123456789",
        "sender": "1234567891011",
        "beneficiary": "123456789",
        "amount": 24990,
        "tva": 4998,
        "total": 29988
    },
    {
        "code": "0ee63c41-ea0a-4d09-a840-bb40798bf711",
        "project": "SSOProject",
        "service": "123456789",
        "sender": "1234567891011",
        "beneficiary": "123456789",
        "amount": 24990,
        "tva": 4998,
        "total": 29988
    },
    {
        "code": "17af5c96-f4eb-4bd9-a569-52c46f59bd76",
        "project": "SSOProject",
        "service": "123456789",
        "sender": "1234567891011",
        "beneficiary": "123456789",
        "amount": 24990,
        "tva": 4998,
        "total": 29988
    }
]


eroare: metodata este indicata incorect
{
    "message": "Not found"
}
```

{% endtab %}

{% tab title="401 Tokenul a fost indicat gresit, sau nu este valabil" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Unauthorized (#401)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Unauthorized (#401)</h1>
        <h2>{&quot;name&quot;:&quot;Unauthorized&quot;,&quot;message&quot;:&quot;Your request was made with invalid credentials.&quot;,&quot;code&quot;:0,&quot;status&quot;:401}</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 14:25:59    </div>
    </body>
</html>
```

{% endtab %}

{% tab title="404 Problema cu metodata, este indicata incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 14:33:08    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

## Filtram Invoisurile din lista, dupa anumite criterii

<mark style="color:blue;">`GET`</mark> `https://invoicing.esempla.systems/api/v1/invoice?service={{service_code}}&project={{project_name}}`

#### Path Parameters

| Name    | Type   | Description                       |
| ------- | ------ | --------------------------------- |
| Params  | string | filtru                            |
| service | string | filtram dupa denmirea servisului  |
| project | string | filtram dupa denumirea proectului |

#### Request Body

| Name          | Type   | Description     |
| ------------- | ------ | --------------- |
| Authorization | string | indicam Tokenul |

{% tabs %}
{% tab title="200 Exemplul rezultatului corect" %}

```
[
    {
        "code": "cc8bb444-a05f-4ae6-bbd7-558d33a2506b",
        "project": "SSOProject",
        "service": "123456789",
        "sender": "1234567891011",
        "beneficiary": "123456789",
        "amount": 24990,
        "tva": 4998,
        "total": 29988
    },
    {
        "code": "0ee63c41-ea0a-4d09-a840-bb40798bf711",
        "project": "SSOProject",
        "service": "123456789",
        "sender": "1234567891011",
        "beneficiary": "123456789",
        "amount": 24990,
        "tva": 4998,
        "total": 29988
    },
    {
        "code": "17af5c96-f4eb-4bd9-a569-52c46f59bd76",
        "project": "SSOProject",
        "service": "123456789",
        "sender": "1234567891011",
        "beneficiary": "123456789",
        "amount": 24990,
        "tva": 4998,
        "total": 29988
    }
]


eroare: metoda este indicata incorect
eroare: criteriile de filtru din "Params" sunt indicate incorect
[]
```

{% endtab %}

{% tab title="401 Tokenul este gresit, sau nu este valabil" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Unauthorized (#401)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Unauthorized (#401)</h1>
        <h2>Token is expired!</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 14:56:51    </div>
    </body>
</html>
```

{% endtab %}

{% tab title="404 Problema cu metoda, este indicata incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 15:05:10    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

## Selectam si vizionam datele despre Invois dupa "Code"

<mark style="color:blue;">`GET`</mark> `https://invoicing.esempla.systems/api/v1/invoice/{{code}}`

{{code}} - codul invoisului

#### Path Parameters

| Name          | Type   | Description     |
| ------------- | ------ | --------------- |
| Authorization | string | indicam Tokenul |

{% tabs %}
{% tab title="200 Exemplul rezultatului corect" %}

```
{
    "code": "17af5c96-f4eb-4bd9-a569-52c46f59bd76",
    "project": 3,
    "amount": 24990,
    "tva": 4998,
    "total": 29988,
    "beneficiary": "123456789",
    "sender": "1234567891011",
    "service": "InvoicingServices1"
}


eroare: codul serviciului nu exista
{
    "message": "Not found"
}
```

{% endtab %}

{% tab title="401 Tokenul este indicat incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Unauthorized (#401)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Unauthorized (#401)</h1>
        <h2>{&quot;name&quot;:&quot;Unauthorized&quot;,&quot;message&quot;:&quot;Your request was made with invalid credentials.&quot;,&quot;code&quot;:0,&quot;status&quot;:401}</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 15:13:50    </div>
    </body>
</html>
```

{% endtab %}

{% tab title="404 Problema cu metodata, este indicata incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 15:22:07    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

## Vizionam lista Serviciilor

<mark style="color:blue;">`GET`</mark> `https://invoicing.esempla.systems/api/v1/service`

#### Path Parameters

| Name          | Type   | Description     |
| ------------- | ------ | --------------- |
| Authorization | string | indicam Tokenul |

{% tabs %}
{% tab title="200 Exemplul rezultatului corect" %}

```
[
    {
        "code": "1234",
        "name": "1",
        "amount": 1234,
        "description": "fasdfasdfasdf",
        "override": true,
        "target": "afdfdf",
        "project": "SSOProject"
    },
    {
        "code": "123456789",
        "name": "InvoicingServices1",
        "amount": 24990,
        "description": "d wf qwef qwef wq e fq",
        "override": true,
        "target": " eqwe fqwef qwf qwf qwe",
        "project": "SSOProject"
    }
]
```

{% endtab %}

{% tab title="401 Tokenul este indicata incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Unauthorized (#401)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Unauthorized (#401)</h1>
        <h2>{&quot;name&quot;:&quot;Unauthorized&quot;,&quot;message&quot;:&quot;Your request was made with invalid credentials.&quot;,&quot;code&quot;:0,&quot;status&quot;:401}</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 15:35:39    </div>
    </body>
</html>
```

{% endtab %}

{% tab title="404 Problema cu metodata, este indicata incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 15:40:13    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

## Selectarea Serviciilor dupa suma

<mark style="color:blue;">`GET`</mark> `https://invoicing.esempla.systems/api/v1/service?amount=100`

100 - criteriul de selectare

#### Path Parameters

| Name          | Type   | Description                                        |
| ------------- | ------ | -------------------------------------------------- |
| amount        | string | se indica suma dupa care va fi efectuat selectarea |
| Authorization | string | indicam Tokinul                                    |

{% tabs %}
{% tab title="200 Exemplul rezultatului corect" %}

```
[
    {
        "code": "1234",
        "name": "1",
        "amount": 1234,
        "description": "fasdfasdfasdf",
        "override": true,
        "target": "afdfdf",
        "project": "SSOProject"
    }
]


eroare: nu exista asa suma
[]
```

{% endtab %}

{% tab title="401 Tokenul este indicat incorect, sau nu e valabil" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Unauthorized (#401)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Unauthorized (#401)</h1>
        <h2>Token is expired!</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 16:03:16    </div>
    </body>
</html>
```

{% endtab %}

{% tab title="404 Probleme cu metoda, este indicata incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-19 16:08:44    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

## Selectam si vizionam datele despre servis dupa "Code"

<mark style="color:blue;">`GET`</mark> `https://invoicing.esempla.systems/api/v1/service/{{code}}`

{{code}} - codul serviciului

#### Path Parameters

| Name          | Type   | Description     |
| ------------- | ------ | --------------- |
| Authorization | string | indicam Tokenul |

{% tabs %}
{% tab title="200 Exemplul rezultatuliu corect" %}

```
{
    "code": "1234",
    "name": "1",
    "amount": 1234,
    "description": "fasdfasdfasdf",
    "override": true,
    "target": "afdfdf",
    "project": "SSOProject"
}


eroare: nu exista srvis cu codul imdicat
{
    "message": "Not found"
}
```

{% endtab %}

{% tab title="401 Tokenult este indicat incorect sau nu e valabil" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Unauthorized (#401)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Unauthorized (#401)</h1>
        <h2>{&quot;name&quot;:&quot;Unauthorized&quot;,&quot;message&quot;:&quot;Your request was made with invalid credentials.&quot;,&quot;code&quot;:0,&quot;status&quot;:401}</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-20 07:14:29    </div>
    </body>
</html>
```

{% endtab %}

{% tab title="404 Problema cu metodata, este indicata incorect" %}

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-03-20 07:16:41    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

## Crearea tranzactiei

<mark style="color:green;">`POST`</mark> `​https://invoicing.esempla.systems/api/v1/extras`

#### Path Parameters

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Authorization | string | Indicam Tokenul bancar |

#### Headers

| Name         | Type   | Description                      |
| ------------ | ------ | -------------------------------- |
| Content-Type | string | indicam rindul: application/json |

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

```
```

{% endtab %}
{% endtabs %}
