API
Last updated
Last updated
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
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"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>{"name":"Forbidden","message":"","code":0,"status":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>
GET
https://invoicing.esempla.systems/api/v1/invoice/
[
{
"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>{"name":"Unauthorized","message":"Your request was made with invalid credentials.","code":0,"status":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>
GET
https://invoicing.esempla.systems/api/v1/invoice?service={{service_code}}&project={{project_name}}
[
{
"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>
GET
https://invoicing.esempla.systems/api/v1/invoice/{{code}}
{{code}} - codul invoisului
{
"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>{"name":"Unauthorized","message":"Your request was made with invalid credentials.","code":0,"status":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>
GET
https://invoicing.esempla.systems/api/v1/service
[
{
"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>{"name":"Unauthorized","message":"Your request was made with invalid credentials.","code":0,"status":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>
GET
https://invoicing.esempla.systems/api/v1/service?amount=100
100 - criteriul de selectare
[
{
"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>
GET
https://invoicing.esempla.systems/api/v1/service/{{code}}
{{code}} - codul serviciului
{
"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>{"name":"Unauthorized","message":"Your request was made with invalid credentials.","code":0,"status":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>
POST
https://invoicing.esempla.systems/api/v1/extras
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|