Esempla
  • Lista metodelor
  • Description
  • FAQ
  • SSO
    • Description
    • API
    • API Admin
    • FAQ
    • API Partner
  • Invoicing
    • Description
    • API
    • FAQ
  • SNS
    • Description
    • API
    • API Partner
    • API Admin
    • FAQ
  • VOIP
    • Untitled
Powered by GitBook
On this page
  • Crearea unui Invois
  • Vizionarea listei Invoices
  • Filtram Invoisurile din lista, dupa anumite criterii
  • Selectam si vizionam datele despre Invois dupa "Code"
  • Vizionam lista Serviciilor
  • Selectarea Serviciilor dupa suma
  • Selectam si vizionam datele despre servis dupa "Code"
  • Crearea tranzactiei

Was this helpful?

  1. Invoicing

API

Crearea unui Invois

POST 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

indicam tokenul generat prin metoda: /api/v1/login in aplicatia SSO

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

{
    "id": "0ee63c41-ea0a-4d09-a840-bb40798bf711"
}
{
    "name": "Bad Request",
    "message": "{\"idno\":[\"IDNO cannot be blank.\"],\"service\":[\"Service ID cannot be blank.\"]}",
    "code": 405,
    "status": 400,
    "type": "yii\\web\\HttpException"
}
<!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>
<!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>

Vizionarea listei Invoices

GET https://invoicing.esempla.systems/api/v1/invoice/

Path Parameters

Name
Type
Description

Authorization

string

indicam Tokenul

[
    {
        "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"
}
<!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>
<!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>

Filtram Invoisurile din lista, dupa anumite criterii

GET 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

[
    {
        "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
[]
<!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>
<!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>

Selectam si vizionam datele despre Invois dupa "Code"

GET https://invoicing.esempla.systems/api/v1/invoice/{{code}}

{{code}} - codul invoisului

Path Parameters

Name
Type
Description

Authorization

string

indicam Tokenul

{
    "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"
}
<!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>
<!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>

Vizionam lista Serviciilor

GET https://invoicing.esempla.systems/api/v1/service

Path Parameters

Name
Type
Description

Authorization

string

indicam Tokenul

[
    {
        "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"
    }
]
<!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>
<!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>

Selectarea Serviciilor dupa suma

GET 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

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


eroare: nu exista asa suma
[]
<!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>
<!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>

Selectam si vizionam datele despre servis dupa "Code"

GET https://invoicing.esempla.systems/api/v1/service/{{code}}

{{code}} - codul serviciului

Path Parameters

Name
Type
Description

Authorization

string

indicam Tokenul

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


eroare: nu exista srvis cu codul imdicat
{
    "message": "Not found"
}
<!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>
<!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>

Crearea tranzactiei

POST ​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

PreviousDescriptionNextFAQ

Last updated 6 years ago

Was this helpful?