11 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 firma-date
GET/v1/firma/{firmaId}/date
Datele firmei
Datele de identificare ale firmei (CUI, adresă, logo).
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | UUID |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
nume | string | da | între 1 și 200 caractere |
cui | string | da | — |
cif | string | da | între 1 și 20 caractere |
regCom | string | da | între 1 și 40 caractere |
euid | string | da | între 1 și 60 caractere |
duns | string | da | — |
infiintata | string | da | — |
capital | string | da | între 1 și 40 caractere |
caenPrincipal | string | da | — |
caenSecundare | string[] | da | cel mult 50 elemente |
sediu | string | da | între 1 și 500 caractere |
telefon | string | da | între 1 și 40 caractere |
email | string | da | între 1 și 200 caractere |
emailSecundar | string | da | adresă de email |
site | string | da | între 1 și 200 caractere |
titular | string | da | între 1 și 200 caractere |
iban | string | da | — |
banca | string | da | între 1 și 200 caractere |
bic | string | da | între 1 și 20 caractere |
valuta | string | da | între 1 și 10 caractere |
firmaId | string | da | UUID |
logo | string | da | — |
curl https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/date \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/date", {
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/firma/{firmaId}/date",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"nume": "text",
"cui": "text",
"cif": "text",
"regCom": "text",
"euid": "text",
"duns": "text",
"infiintata": "text",
"capital": "text",
"caenPrincipal": "text",
"caenSecundare": [
"text"
],
"sediu": "text",
"telefon": "text"
}PUT/v1/firma/{firmaId}/date
Salvează datele firmei
Scrie datele de identificare ale firmei; 409 la conflict.
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | UUID |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
nume | string | da | între 1 și 200 caractere |
cui | string | da | — |
cif | string | da | între 1 și 20 caractere |
regCom | string | da | între 1 și 40 caractere |
euid | string | da | între 1 și 60 caractere |
duns | string | da | — |
infiintata | string | da | — |
capital | string | da | între 1 și 40 caractere |
caenPrincipal | string | da | — |
caenSecundare | string[] | da | cel mult 50 elemente |
sediu | string | da | între 1 și 500 caractere |
telefon | string | da | între 1 și 40 caractere |
email | string | da | între 1 și 200 caractere |
emailSecundar | string | da | cel mult 200 caractere |
site | string | da | între 1 și 200 caractere |
titular | string | da | între 1 și 200 caractere |
iban | string | da | — |
banca | string | da | între 1 și 200 caractere |
bic | string | da | între 1 și 20 caractere |
valuta | string | da | între 1 și 10 caractere |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
nume | string | da | între 1 și 200 caractere |
cui | string | da | — |
cif | string | da | între 1 și 20 caractere |
regCom | string | da | între 1 și 40 caractere |
euid | string | da | între 1 și 60 caractere |
duns | string | da | — |
infiintata | string | da | — |
capital | string | da | între 1 și 40 caractere |
caenPrincipal | string | da | — |
caenSecundare | string[] | da | cel mult 50 elemente |
sediu | string | da | între 1 și 500 caractere |
telefon | string | da | între 1 și 40 caractere |
email | string | da | între 1 și 200 caractere |
emailSecundar | string | da | adresă de email |
site | string | da | între 1 și 200 caractere |
titular | string | da | între 1 și 200 caractere |
iban | string | da | — |
banca | string | da | între 1 și 200 caractere |
bic | string | da | între 1 și 20 caractere |
valuta | string | da | între 1 și 10 caractere |
firmaId | string | da | UUID |
logo | string | da | — |
curl -X PUT https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/date \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{
"nume": "text",
"cui": "text",
"cif": "text",
"regCom": "text",
"euid": "text",
"duns": "text",
"infiintata": "text",
"capital": "text",
"caenPrincipal": "text",
"caenSecundare": [
"text"
],
"sediu": "text",
"telefon": "text"
}'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/date", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"nume": "text",
"cui": "text",
"cif": "text",
"regCom": "text",
"euid": "text",
"duns": "text",
"infiintata": "text",
"capital": "text",
"caenPrincipal": "text",
"caenSecundare": [
"text"
],
"sediu": "text",
"telefon": "text"
}),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/date",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={
"nume": "text",
"cui": "text",
"cif": "text",
"regCom": "text",
"euid": "text",
"duns": "text",
"infiintata": "text",
"capital": "text",
"caenPrincipal": "text",
"caenSecundare": [
"text",
],
"sediu": "text",
"telefon": "text",
},
)
date = raspuns.json(){
"nume": "text",
"cui": "text",
"cif": "text",
"regCom": "text",
"euid": "text",
"duns": "text",
"infiintata": "text",
"capital": "text",
"caenPrincipal": "text",
"caenSecundare": [
"text"
],
"sediu": "text",
"telefon": "text"
}DELETE/v1/firma/{firmaId}/logo
Șterge logoul firmei
Scoate logoul și întoarce datele firmei.
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | UUID |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
nume | string | da | între 1 și 200 caractere |
cui | string | da | — |
cif | string | da | între 1 și 20 caractere |
regCom | string | da | între 1 și 40 caractere |
euid | string | da | între 1 și 60 caractere |
duns | string | da | — |
infiintata | string | da | — |
capital | string | da | între 1 și 40 caractere |
caenPrincipal | string | da | — |
caenSecundare | string[] | da | cel mult 50 elemente |
sediu | string | da | între 1 și 500 caractere |
telefon | string | da | între 1 și 40 caractere |
email | string | da | între 1 și 200 caractere |
emailSecundar | string | da | adresă de email |
site | string | da | între 1 și 200 caractere |
titular | string | da | între 1 și 200 caractere |
iban | string | da | — |
banca | string | da | între 1 și 200 caractere |
bic | string | da | între 1 și 20 caractere |
valuta | string | da | între 1 și 10 caractere |
firmaId | string | da | UUID |
logo | string | da | — |
curl -X DELETE https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/logo \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/logo", {
method: "DELETE",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.delete(
"https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/logo",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"nume": "text",
"cui": "text",
"cif": "text",
"regCom": "text",
"euid": "text",
"duns": "text",
"infiintata": "text",
"capital": "text",
"caenPrincipal": "text",
"caenSecundare": [
"text"
],
"sediu": "text",
"telefon": "text"
}PUT/v1/firma/{firmaId}/logo
Încarcă logoul firmei
Logo PNG, JPEG sau WebP ca data-URL, cel mult 200 KB (413 prea mare).
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | UUID |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
logo | string | da | nevid |
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
nume | string | da | între 1 și 200 caractere |
cui | string | da | — |
cif | string | da | între 1 și 20 caractere |
regCom | string | da | între 1 și 40 caractere |
euid | string | da | între 1 și 60 caractere |
duns | string | da | — |
infiintata | string | da | — |
capital | string | da | între 1 și 40 caractere |
caenPrincipal | string | da | — |
caenSecundare | string[] | da | cel mult 50 elemente |
sediu | string | da | între 1 și 500 caractere |
telefon | string | da | între 1 și 40 caractere |
email | string | da | între 1 și 200 caractere |
emailSecundar | string | da | adresă de email |
site | string | da | între 1 și 200 caractere |
titular | string | da | între 1 și 200 caractere |
iban | string | da | — |
banca | string | da | între 1 și 200 caractere |
bic | string | da | între 1 și 20 caractere |
valuta | string | da | între 1 și 10 caractere |
firmaId | string | da | UUID |
logo | string | da | — |
curl -X PUT https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/logo \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{
"logo": "text"
}'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/logo", {
method: "PUT",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"logo": "text"
}),
});
const date = await raspuns.json();import os
import requests
raspuns = requests.put(
"https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/logo",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={
"logo": "text",
},
)
date = raspuns.json(){
"nume": "text",
"cui": "text",
"cif": "text",
"regCom": "text",
"euid": "text",
"duns": "text",
"infiintata": "text",
"capital": "text",
"caenPrincipal": "text",
"caenSecundare": [
"text"
],
"sediu": "text",
"telefon": "text"
}Modulul firma-conturi
GET/v1/firma/{firmaId}/conturi
Conturile bancare ale firmei
Lista conturilor bancare ale firmei (administratorul ei).
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | valoarea din cale |
curl https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi", {
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/firma/{firmaId}/conturi",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()POST/v1/firma/{firmaId}/conturi
Adaugă un cont bancar
Adaugă un cont bancar pe firmă (administratorul ei).
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | valoarea din cale |
curl -X POST https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi", {
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/firma/{firmaId}/conturi",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()DELETE/v1/firma/{firmaId}/conturi/{contId}
Șterge un cont bancar
Scoate contul bancar de pe firmă; 404 negăsit.
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | valoarea din cale |
contId | string | valoarea din cale |
curl -X DELETE https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi/{contId} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi/{contId}", {
method: "DELETE",
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.delete(
"https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi/{contId}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/firma/{firmaId}/conturi/{contId}
Modifică un cont bancar
Schimbă datele unui cont bancar al firmei.
| Nume | Tip | Descriere |
|---|---|---|
firmaId | string | valoarea din cale |
contId | string | valoarea din cale |
curl -X PUT https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi/{contId} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/firma/{firmaId}/conturi/{contId}", {
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/firma/{firmaId}/conturi/{contId}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()Modulul conturi-conectate
curl https://app.ilustromania.com/nucleu/v1/conturi-conectate \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/conturi-conectate", {
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/conturi-conectate",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()Modulul setari-ordine
GET/v1/setari/ordine
Ordinea grupurilor din Setări
Grupurile și ordinea lor în pagina Setări, pentru omul logat; null fără salvare.
curl https://app.ilustromania.com/nucleu/v1/setari/ordine \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/setari/ordine", {
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/setari/ordine",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()PUT/v1/setari/ordine
Salvează ordinea din Setări
Scrie ordinea grupurilor din Setări; doar administratorul.
curl -X PUT https://app.ilustromania.com/nucleu/v1/setari/ordine \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE" \
-H "Content-Type: application/json" \
-d '{ … }'const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/setari/ordine", {
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/setari/ordine",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
json={ … },
)
date = raspuns.json()