# Lista metodelor

SSO / Invoicing / SNS

SSO

* [ ] <https://sso.esempla.systems>/api/v1/login
* [ ] <https://sso.esempla.systems>/api/v1/checkToken
* [ ] <https://sso.esempla.systems>/api/v1/getOrganizations
* [ ] <https://sso.esempla.systems>/api/v1/getProjects
* [ ] <https://sso.esempla.systems>/api/v1/getProvider
* [ ] <https://sso.esempla.systems>/api/v1/createOrganization
* [ ] <https://sso.esempla.systems>/api/v1/createProject
* [ ] <https://sso.esempla.systems>/api/v1/assignProvider
* [ ] <https://sso.esempla.systems>/api/v1/get/ProvidersByProject

Invoicing

* [ ] <https://invoicing.esempla.systems>/api/v1/service
* [ ] <https://invoicing.esempla.systems>/api/v1/service/{{code}}
* [ ] <https://invoicing.esempla.systems>/api/v1/service?amaunt="suma"
* [ ] <https://invoicing.esempla.systems>/api/v1/invoice
* [ ] ​[https://invoicing.esempla.systems](https://invoicing.esempla.systems/)/api/v1/extras
* [ ] <https://invoicing.esempla.systems>/api/v1/invoice?service={{service\_code}}\&project={{project\_name}}
* [ ] <https://invoicing.esempla.systems>/api/v1/invoice/{{code}}
* [ ] <https://invoicing.esempla.systems>/api/v1/invoices

SNS

* [ ] <https://sns.esempla.systems>/api/v1/login
* [ ] <https://sns.esempla.systems>/api/v1/login baerer
* [ ] <https://sns.esempla.systems>/api/v1/getTemplate
* [ ] <https://sns.esempla.systems>/api/v1/getSchemaExample
* [ ] <https://sns.esempla.systems>/api/v1/checkTemplate
* [ ] <https://sns.esempla.systems>/api/v1/getLogs
* [ ] <https://sns.esempla.systems>/api/v1/sendMail
* [ ] <https://sns.esempla.systems>/api/v1/send/Notify
* [ ] <https://sns.esempla.systems>/api/v1/sendSMS
* [ ] <https://sns.esempla.systems>/api/v1/sendNotify
* [ ] <https://sns.esempla.systems>/api/v1/getActiveMethods
* [ ] <https://sns.esempla.systems>/api/v1/sendWebPush
* [ ] <https://sns.esempla.systems>/api/v1/message/queue?period\_start=2019/01/01\&period\_end=02/20/2019
* [ ] <https://sns.esempla.systems>/api/v1/message/crashed?period\_start=2019/01/01\&period\_end=02/20/2019
* [ ] <https://sns.esempla.systems>api/v1/message/sent?period\_start=2019/01/01\&period\_end=02/20/2019
* [ ] <https://sns.esempla.systems>/api/v1/message/sent?period\_start=2019/01/01\&period\_end=02/20/2019
* [ ] <https://sns.esempla.systems>/api/v1/message/check?identification=000001-0014-0017-000002


# Description


# FAQ


# Description


# API

Descrierea metodelor

## Generarea Token

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

#### Path Parameters

| Name          | Type   | Description                                    |
| ------------- | ------ | ---------------------------------------------- |
| Authorization | string | <p>Metoda de audentificare<br>"Basic Auth"</p> |

#### Request Body

| Name     | Type   | Description                   |
| -------- | ------ | ----------------------------- |
| Username | string | Numele Secret al Organizatiei |
| Password | string | Tokenul Secret al Proectului  |

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

```javascript
{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6IjEifQ.eyJpc3MiOiIxIiwiYXVkIjoiMSIsImp0aSI6IjEiLCJpYXQiOjE1NTI5MDQwNzgsIm5iZiI6MTU1MjkwNDA3OCwiZXhwIjoxNTUyOTA3Njc4fQ.a0mJq1GZH6N4Tx3Gzrc5m8l7MlXvtfi4NlmcKca1Rm4"
}
```

{% endtab %}

{% tab title="401 Problema in autorizarea
Este setat incorect Username, Password." %}

```
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
```

{% endtab %}

{% tab title="404 Problema in metoda, este setata incorect." %}

```javascript
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/logi\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

## Inspectam Organizatia si Proectul care apartine tokinului

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

#### Path Parameters

| Name          | Type   | Description                                      |
| ------------- | ------ | ------------------------------------------------ |
| Authorization | string | <p>Metoda de audentificare<br>"Bearer Token"</p> |

#### Request Body

| Name  | Type   | Description                                                  |
| ----- | ------ | ------------------------------------------------------------ |
| Token | string | indicam tokenul care a fos creat prin metoda "/api/v1/login" |

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

```
{
    "status": true,
    "organization": {
        "name": "TES1",
        "idno": "123",
        "status_id": 1,
        "description": "",
        "project": "test"
    }
}
```

{% endtab %}

{% tab title="401 Problema in Token, este setat incorect." %}

```
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
```

{% endtab %}

{% tab title="404 Problema in metoda, este setata incorect." %}

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/checkToke\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}


# API Admin

Descrierea metodelor

## Activarea Provaiderilor unui proect

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

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

#### Request Body

| Name         | Type   | Description                             |
| ------------ | ------ | --------------------------------------- |
| project\_id  | string | id -ul proectului                       |
| provider\_id | string | id -ul provaiderului care va fi activat |

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

```javascript
provaiderul a fost activat
{
    "status": true
}


eroarea apare cin project_id sau provider_id sunt indicate incorect
{
    "status": false,
    "errors": "Incorrect project_id or provider_id"
}
```

{% endtab %}

{% tab title="403 Eroarea apare cin  provaiderul este deja activat, sau indicat incorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

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

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/assignProvide\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

## Crearea Organizatiei

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

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

#### Request Body

| Name        | Type   | Description                                |
| ----------- | ------ | ------------------------------------------ |
| name        | string | denumirea Organizatiei                     |
| idno        | string |                                            |
| status\_id  | string | indicam cifra " 1 ", indica statutul activ |
| description | string | descrierea Organizatiei                    |

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

```
Organizaria a fost creata
{
    "status": true,
    "organization_id": 3,
    "secret_name": "Gm0ofdKWtRCA-3QjEgtECwNATp495zbB",
    "organization": "test123"
}


status_id a fost indicat incorect
{
    "status": false,
    "errors": {
        "status_id": [
            "Status ID is invalid."
        ]
    }
}
```

{% endtab %}

{% tab title="403 Eroarea apare cind provaiderul este indicat incorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

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

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/createOrganizatio\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

## Crearea Proectului

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

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

#### Request Body

| Name             | Type   | Description                                          |
| ---------------- | ------ | ---------------------------------------------------- |
| name             | string | denumirea Proectului                                 |
| organization\_id | string | id -ul organizatiei care va apartinea acestui proect |
| status\_id       | string | indicam cifra " 1 ",  statutul va fi activ           |
| description      | string | descrierea provaiderului                             |

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

```
Proectul a fost creat
{
    "status": true,
    "project_id": 3,
    "project": "test123",
    "secret_token": "tA7wpJUu8Wk6vsVLPD0jhfDNjeqRE-zC"
}


status_id a fost indicat incorect
{
    "status": false,
    "errors": {
        "status_id": [
            "Status ID is invalid."
        ]
    }
}


organization_id a fost indicat incorect
{
    "status": false,
    "errors": {
        "organization_id": [
            "Organization ID is invalid."
        ]
    }
}
```

{% endtab %}

{% tab title="403 Provaiderul a fost indicat incorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

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

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/createProjec\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}


# FAQ


# API Partner

Descrierea metodelor

## Inspectam Statutul Organizatiei

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

#### Path Parameters

| Name          | Type   | Description                                        |
| ------------- | ------ | -------------------------------------------------- |
| Authorization | string | <p>Metoda de audentificare<br>"Bearer Token"</p>   |
| Token         | string | indicam Tokenul, creat prin metoda "/api/v1/login" |

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

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

```javascript
{
    "organization": {
        "name": "TES1",
        "idno": "123",
        "status_id": 1,
        "description": "",
        "project": "test"
    },
    "status": true
}
```

{% endtab %}

{% tab title="401 Probleme in Token, este setat incorect." %}

```
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
```

{% endtab %}

{% tab title="403 Problema in Identificator, este setat incorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

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

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/checkToke\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

## Inspectam Organizatia, care apartine anumitui Provaider

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

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

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

```
"Rezultatul - 1"
{
    "status": true,
    "organizations": []
}

"Rezultatul - 2"
{
    "status": true,
    "organizations": {
        "testOrganization2": {
            "name": "testOrganization2",
            "idno": "12345",
            "status": true,
            "description": "aDQADCWAWAEWEFDWAEFASFFfsafdgsdgvv"
        }
    }
}
```

{% endtab %}

{% tab title="403 Problema cu Identificatorul, este setat incorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

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

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getOrganization\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

## &#x20;Inspectam Proectul, care apartine animitui Provaider

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

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

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

```
"Rezultatul - 1"
{
    "status": true,
    "projects": []
}

"Rezultatul -2"
{
    "status": true,
    "projects": {
        "testProject2": {
            "name": "testProject2",
            "organization": "testOrganization2",
            "organization_idno": "12345",
            "description": "dcvsvcsdevseve",
            "status": true
        }
    }
}
```

{% endtab %}

{% tab title="403 Problema cu Identificatorul, este setat ioncorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

{% tab title="404 Problema cu metoda, esta setata incorect" %}

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getProject\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

## Vizionam lista Provaiderilor

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

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

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

```
{
    "tetsProvider2": {
        "provider_id": 3,
        "relation_class_attributes": null,
        "description": ""
    },
    "tetsProvider1": {
        "provider_id": 1,
        "relation_class_attributes": null,
        "description": ""
    },
    "test with attribute": {
        "provider_id": 2,
        "relation_class_attributes": {
            "test": null
        },
        "description": ""
    }
}
```

{% endtab %}

{% tab title="403 Problema cu Identificatorul, este setat incorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

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

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getProvider\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

## Vizionam Provaiderii care ii apartin unei Organizatii

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

#### Headers

| Name      | Type   | Description                   |
| --------- | ------ | ----------------------------- |
| partnerid | string | Identificatorul Provaiderului |

#### Request Body

| Name        | Type   | Description         |
| ----------- | ------ | ------------------- |
| Project\_id | string | Id -ul organizatiei |

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

```
lista provaiderilor care apartin unei organizatii
{
    "status": true,
    "providers": {
        "tetsProvider1": {
            "provider": "tetsProvider1",
            "relation_class": null,
            "status": true
        },
        "tetsProvider2": {
            "provider": "tetsProvider2",
            "relation_class": null,
            "status": true
        }
    }
}

rezultatul, cin nu exista organizatie cu proect_id indicat
{
    "status": true,
    "providers": []
}
```

{% endtab %}

{% tab title="403 Problema cu partnerid, este setat incorect" %}

```
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
```

{% endtab %}

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

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getProvidersByProjec\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}


# Description

Sistem centralizat de gestiune atat a  Invoice-urilor  cat si clearingului ulterior cu BANCI si FISC

## Nivel de acoperire

Scopul acestui serviciul a fost acoperirea proceselor financiare care sunt prezente in fiecare proiect de tip SaaS. Astfel, serviciul a fost divizat pe urmatoare procese:

* Generare Invoice
* Gestiune servicii taxabile
* Gestiunea fluxului de bani intrat pe anumit cont a anumitei organizatii (fiecare organizatie poate avea proiecte cu conturi diferite)
* Realizarea procesului de clearing - acoperirea Invoice-urilor cu bani din cont (sau intrare)
* Realizarea intergrarii cu 1C (pentru a evita munca manuala in 1C)
* Realizarea gestiune Cont spre plata
* Realizare gestiune Factura electronica
* Realizare raport Fiscal

{% hint style="info" %}
&#x20;La etapa curenta a fost acoperit crearea facturi si gestiunea incomingului de la banci
{% endhint %}

## Wizard de integrare

{% tabs %}
{% tab title="Obtinerea datelor de access" %}
Gestiunea datelor da access pentru toate sub proiecte este una centralizata si o numim SSO.

link este <https://sso.esempla.systems>

* [ ] Se creeaza organizatia
* [ ] Se creeaza proiect
* [ ] Se asigneaza ce serviciul va folosi (SNS, Invoice)
* [ ] se verifica logare&#x20;
* [ ] se verifica tokenul obtinut
  {% endtab %}

{% tab title="Configurare Invoice" %}
Odata organiatie creata e nevoie sa creem ce servcii presteaza proiect si care este tariful lor

{% hint style="success" %}
Daca serviciul are un pret fix, el se seteaza la serviciu, si invoiceuri create automat vor obtine pret cu adaugare suma TVA.
{% endhint %}

{% hint style="info" %}
In cazul in care pret a fost setat ca fix, el nu poate fi transmis in invoice
{% endhint %}
{% endtab %}

{% tab title="Creare invoice" %}
Cu tokenul obtinut la logare, prin apelarea metodei POST Invoice se creeaza invoicei

Pentur exemple, vezi pagina API . [**https://invoicing.esempla.systems**](https://invoicing.esempla.systems)**/api/v1/invoice**
{% endtab %}
{% endtabs %}


# 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 %}


# FAQ


# Description


# API

## Generam token

<mark style="color:blue;">`GET`</mark> `https://admin.duae.esempla.srl/api/v1/login`

#### Path Parameters

| Name          | Type   | Description                       |
| ------------- | ------ | --------------------------------- |
| Authorization | string | Metoda de autorizare "Basic Auth" |

#### Request Body

| Name     | Type   | Description                             |
| -------- | ------ | --------------------------------------- |
| Username | string | Numele secret al Organizatiei (din sso) |
| Password | string | Tokenul secret al Proectului (din sso)  |

{% tabs %}
{% tab title="200 Exemplul rezultatului corect, am generat tokenul" %}

```
{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6IjEifQ.eyJpc3MiOiIxIiwiYXVkIjoiMSIsImp0aSI6IjEiLCJpYXQiOjE1NTQ3MTE2NjgsIm5iZiI6MTU1NDcxMTY2OCwiZXhwIjoxNTU0NzE1MjY4LCJ0ZXRzUHJvdmlkZXIxIjpudWxsfQ.ANTAox50qRJLRnLU6EPv7dY6gGRATAjaRaJyz0ICXM8"
}
```

{% endtab %}

{% tab title="401 Problema cu autorizarea,
Username, Password sun indicate incorect" %}

```
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
```

{% endtab %}

{% tab title="404 Metoda este setata incorect, sau variabilele din SNS pentru conectarea la SSO sunt indicate incorect" %}

```
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/loginn\".",
        "code": 0
    }
}
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://admin.duae.esempla.srl/api/v1/getDuaeTemplate`

#### Path Parameters

| Name          | Type   | Description                         |
| ------------- | ------ | ----------------------------------- |
| Authorization | string | Metoda de autorizare "Bearer Token" |

#### Request Body

| Name  | Type   | Description     |
| ----- | ------ | --------------- |
| Token | string | Indicam tokenul |

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

```
{
    "payload": {
        "template": "[{\"object\":\"Object\",\"value\":[{\"simple\":\"item\"}]},{\"simple\":\"item\"}]"
    },
    "error": null
}
```

{% endtab %}

{% tab title="401 tokenul incoerct" %}

```
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401,
    "type": "yii\\web\\UnauthorizedHttpException"
}
```

{% endtab %}

{% tab title="404 api metoda incorecta" %}

```
<!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-06-27 08:55:22    </div>
    </body>
</html>
```

{% endtab %}
{% endtabs %}

<mark style="color:blue;">`GET`</mark> `https://admin.duae.esempla.srl/api/v1/getOrganization?user_id=999999999`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

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

```
```

{% endtab %}
{% endtabs %}


# API Partner


# API Admin


# FAQ


# Untitled


