Stara različica tega dokumenta!
Izvoz naročil (JSON, v1)
Obvezni parametri za vsako zahtevo
Izvoz glav naročil. Brez dodatnih parametrov se izvozi zadnjih 10 naročil.
Parametri
Primer
URL/getDocumentHeaders?Client-Id=
<UUID1>&Application-Id=
<UUID2>
URL/getDocumentHeaders?Client-Id=
<UUID1>&Application-Id=
<UUID2>&page=2
Odgovor:
[
{
"documentID": 10060,
"documentName": "2016\/9",
"documentDate": "2016-06-06 12:50:26",
"deliveryNoteID": null,
"supplierName": "DOBAVITELJ 1234",
"supplierVATID": "SI12345678",
"orderValue": "10.51840000",
"orderItemCount": 1,
"flags": []
},
...
]
Polja
documentID(int): ID naročila (uporabno npr. pri zahtevi getDocument)
documentName(string): Nabis naziv naročila
documentDate(string): datum in čas oddaje naročila
deliveryNoteID(string|null): Številka dobavnice (ali NULL v primeru da dobavitelj ni podal podatka)
supplierName(string): Naziv dobavitelja
supplierVATID(string): ID za DDV s predpono (SI, AT, …) ali davčna številka
orderValue(decimal): vrednost naročila, brez DDV
orderItemCount(int): število postavk na naročilu
getDocument
Izvoz posameznega naročila.
Parametri
Primer
URL/getDocument?Client-Id=
<UUID1>&Application-Id=
<UUID2>&documentID=10060
Odgovor:
{
"documentID": 10063,
"documentName": "2017\/1",
"documentDate": "2017-02-12 19:37:18",
"deliveryNoteID": null,
"supplierName": "Dobavitelj 1234",
"supplierVATID": "SI12345678",
"flags": [],
"supplierAddress": "NAVADNA ULICA 15",
"supplierZipCode": "1000",
"supplierCity": "LJUBLJANA",
"supplierOrderNotes": "",
"items": [
{
"eanCode": null,
"code": "2285",
"productName": "BELA \u0160TRUCA 1,00 KG",
"unit": "KOS",
"amount": "5",
"salesGrossPrice": "0.82366666",
"discountPercentage": "10",
"netPrice": "0.7413",
"taxPercentage": "9.5",
"salesTaxPercentage": null
},
{
"eanCode": null,
"code": "2270",
"productName": "POLBELA \u0160TRUCA 1,00 KG",
"unit": "KOS",
"amount": "5",
"salesGrossPrice": "0.87844444",
"discountPercentage": "10",
"netPrice": "0.7906",
"taxPercentage": "9.5",
"salesTaxPercentage": null
},
...
]
}
Polja
Polja ki so identična s polji iz getDocumentHeaders imajo enako vsebino in tip
supplierAddress(string): naslov dobavitelja
supplierZipCode(string): poštna številka dobavitelja
supplierCity(string): kraj dobavitelja
supplierOrderNotes(string): opombe naročila ki jih je vpisal dobavitelj. Lahko več vrstic, ločilo: \n
items: seznam postavk naročila:
eanCode: EAN šifra ali NULL
code(string): dobaviteljeva šifra artikla
productName(string): naziv artikla
unit(string): enota mere
amount(decimal): naročena količina
salesGrossPrice(decimal|null): cena brez rabata in brez DDV ali NULL
discountPercentage(decimal|null): rabat % ali NULL
netPrice(decimal|null): neto cena ali NULL
taxPercentage(decimal|null): DDV % ali NULL