Facturări și avize
20 de rute, cu exemplu de cerere pentru fiecare.
Adresa de bază: https://app.ilustromania.com/nucleu. Autentificarea, formatul și erorile sunt în Prezentarea API-ului.
Modulul facturi
GET/v1/facturi
Facturile din DLS
Facturile citite din casa DLS pentru firma activă.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
actualizat | string | da | moment ISO 8601 |
numar | object | da | — |
numar.total | integer | da | între 0 și 9007199254740991 |
numar.facturi | integer | da | între 0 și 9007199254740991 |
numar.proforme | integer | da | între 0 și 9007199254740991 |
facturi | object[] | da | — |
facturi[].id | string | da | nevid |
facturi[].tip | string | da | una din: factura, proforma |
facturi[].numar | string | da | nevid |
facturi[].stadiu | string | da | nevid |
facturi[].client | string | da | nevid |
facturi[].total | number | da | — |
facturi[].tva | number | da | — |
facturi[].moneda | string | da | nevid |
facturi[].emisa | string | da | dată AAAA-LL-ZZ |
facturi[].scadenta | string | da | dată AAAA-LL-ZZ |
facturi[].platita | string | da | dată AAAA-LL-ZZ |
facturi[].stare | string | nu | una din: incasata, neincasata, storno, anulata |
facturi[].incasat | number | nu | — |
facturi[].rest | number | nu | — |
totaluri | object[] | nu | — |
totaluri[].moneda | string | da | nevid |
totaluri[].valoare | number | da | — |
totaluri[].incasat | number | da | — |
totaluri[].neincasat | number | da | — |
curl https://app.ilustromania.com/nucleu/v1/facturi \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/facturi", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/facturi",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"actualizat": "2026-11-12T09:30:00.000Z",
"numar": {
"total": 1,
"facturi": 1,
"proforme": 1
},
"facturi": [
{
"id": "text",
"tip": "factura",
"numar": "text",
"stadiu": "text",
"client": "text",
"total": 12.5,
"tva": 12.5,
"moneda": "text",
"emisa": "2026-11-12",
"scadenta": "2026-11-12",
"platita": "2026-11-12",
"stare": "incasata"
}
],
"totaluri": [
{
"moneda": "text",
"valoare": 12.5,
"incasat": 12.5,
"neincasat": 12.5
}
]
}Modulul avize
GET/v1/avize
Avizele de însoțire
Lista avizelor firmei, filtrate pe zi, interval sau client (drept avize.citeste).
curl https://app.ilustromania.com/nucleu/v1/avize \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl -X POST https://app.ilustromania.com/nucleu/v1/avize \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/avize",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/avize/{id}
Un aviz
Detaliul unui aviz; 404 negăsit.
| Nume | Tip | Descriere |
|---|---|---|
id | string | identificatorul resursei |
curl https://app.ilustromania.com/nucleu/v1/avize/{id} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/{id}", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize/{id}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PATCH/v1/avize/{id}
Modifică un aviz
Schimbă câmpurile unui aviz (drept avize.emite); 404 negăsit, 409 dacă avizul e anulat.
| Nume | Tip | Descriere |
|---|---|---|
id | string | identificatorul resursei |
curl -X PATCH https://app.ilustromania.com/nucleu/v1/avize/{id} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/{id}", {
method: "PATCH",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.patch(
"https://app.ilustromania.com/nucleu/v1/avize/{id}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()POST/v1/avize/{id}/anuleaza
Anulează un aviz
Marchează avizul ca anulat; 404 negăsit.
| Nume | Tip | Descriere |
|---|---|---|
id | string | identificatorul resursei |
curl -X POST https://app.ilustromania.com/nucleu/v1/avize/{id}/anuleaza \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/{id}/anuleaza", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/avize/{id}/anuleaza",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/avize/clienti \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/clienti", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize/clienti",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl -X POST https://app.ilustromania.com/nucleu/v1/avize/clienti \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/clienti", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/avize/clienti",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()PATCH/v1/avize/clienti/{id}
Modifică un client de avize
Schimbă câmpurile unui client de avize; 404 negăsit.
| Nume | Tip | Descriere |
|---|---|---|
id | string | identificatorul resursei |
curl -X PATCH https://app.ilustromania.com/nucleu/v1/avize/clienti/{id} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/clienti/{id}", {
method: "PATCH",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.patch(
"https://app.ilustromania.com/nucleu/v1/avize/clienti/{id}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/avize/emitent
Emitentul avizelor
Datele firmei care emite avizele; 404 dacă nu sunt completate.
curl https://app.ilustromania.com/nucleu/v1/avize/emitent \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/emitent", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize/emitent",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl -X PUT https://app.ilustromania.com/nucleu/v1/avize/emitent \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/emitent", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/avize/emitent",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()POST/v1/avize/genereaza-zi
Generează avizele zilei
Emite avizele pentru ziua și punctele de livrare alese.
curl -X POST https://app.ilustromania.com/nucleu/v1/avize/genereaza-zi \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/genereaza-zi", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/avize/genereaza-zi",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/avize/meniu-camine/{zi}
Meniul căminelor pe zi
Liniile de meniu ale căminelor pentru ziua dată.
| Nume | Tip | Descriere |
|---|---|---|
zi | string | valoarea din cale |
curl https://app.ilustromania.com/nucleu/v1/avize/meniu-camine/{zi} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/meniu-camine/{zi}", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize/meniu-camine/{zi}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/avize/meniu-camine/{zi}
Salvează meniul căminelor pe zi
Înlocuiește liniile de meniu ale căminelor pentru ziua dată.
| Nume | Tip | Descriere |
|---|---|---|
zi | string | valoarea din cale |
curl -X PUT https://app.ilustromania.com/nucleu/v1/avize/meniu-camine/{zi} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/meniu-camine/{zi}", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/avize/meniu-camine/{zi}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/avize/puncte \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/puncte", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize/puncte",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl -X POST https://app.ilustromania.com/nucleu/v1/avize/puncte \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/puncte", {
method: "POST",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.post(
"https://app.ilustromania.com/nucleu/v1/avize/puncte",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()PATCH/v1/avize/puncte/{id}
Modifică un punct de livrare
Schimbă câmpurile unui punct de livrare; 404 negăsit.
| Nume | Tip | Descriere |
|---|---|---|
id | string | identificatorul resursei |
curl -X PATCH https://app.ilustromania.com/nucleu/v1/avize/puncte/{id} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/puncte/{id}", {
method: "PATCH",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.patch(
"https://app.ilustromania.com/nucleu/v1/avize/puncte/{id}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/avize/serie \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/serie", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize/serie",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/avize/serie
Setează ultimul număr din serie
Mută seria avizelor la ultimul număr dat; emiterea sare numerele folosite.
curl -X PUT https://app.ilustromania.com/nucleu/v1/avize/serie \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/serie", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ … }),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/avize/serie",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()GET/v1/avize/serie/urmator
Următorul număr de aviz
Numărul propus pentru formularul de emitere (aceleași drepturi ca emiterea).
curl https://app.ilustromania.com/nucleu/v1/avize/serie/urmator \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/avize/serie/urmator", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/avize/serie/urmator",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()