Čia matote skirtumus tarp pasirinktos versijos ir esamo dokumento.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
lt:xmlcore [2021/12/16 16:25] ignas [2.4. HTML forma] |
lt:xmlcore [2022/04/08 13:58] modesta [3. Atsakymų kodai] |
||
---|---|---|---|
Linija 187: | Linija 187: | ||
- | ==== 2.4. Pavyzdys PHP kalba ==== | + | === 2.5. Pavyzdys PHP kalba === |
Į servisą galima kreiptis bet kokia kalba, jeigu ta programavimo kalba yra galimybė padaryti https request‘ą, pateikiame pavyzdį PHP kalba: | Į servisą galima kreiptis bet kokia kalba, jeigu ta programavimo kalba yra galimybė padaryti https request‘ą, pateikiame pavyzdį PHP kalba: | ||
Linija 257: | Linija 257: | ||
</code> | </code> | ||
+ | |||
+ | === 2.6. Postman === | ||
+ | [[https://www.postman.com/|Postman]] aplinkos išvestį ir įvestį galima atsisiųsti [[https://wiki.directo.ee/_media/et/directo.demo.postman_collection.json|čia]], tada importuoti kaip kolekciją į Postman ir ten išbandyti. | ||
+ | |||
+ | ==== 3. Atsakymų kodai ==== | ||
+ | |||
+ | | **kodas** |**Atsakymo tekstas** |**Pastaba**|**Paaiškinimas**|Description | | ||
+ | | 0 | Created | |Dokumentas sėkmingai sukurtas |Document successfully created| | ||
+ | | 0 | Updated | (if document update feature is used) |Dokumentas sėkmingai atnaujintas (jei naudojamas automatinis dokumentų atnaujinimas)| Document successfully updated (if document update feature is used)| | ||
+ | | 0 | Confirmed | (if auto document confirmation is used) |Dokumentas sėkmingai patvirtintas (jei naudojamas automatinis dokumentų patvirtinimas)|Document successfully confirmed (if auto document confirmation is used)| | ||
+ | | | | ||
+ | | 2 | Too secure location | | Informuokite Directo|Please inform Directo| | ||
+ | | 3 | Database is moved to a new server. Takes about 15 minutes | |Duomenų bazė perkelta į kitą serverį, prašome palaukti 15 minučių|Database has been transferred to another server, please wait 15 minutes| | ||
+ | | 4 | Database is closed - user count is zero | |Duomenų bazė uždaryta | Database closed| | ||
+ | | 5 | Unauthorized | | Neteisingas raktas ar neteisingai paduotas raktas (key)|Incorrect key or incorrect given key| | ||
+ | | 6 | Invalid user given | | Neegzistuojantis darbuotojas| Non-existent user| | ||
+ | | 7 | Invalid IP source given | | Neegzistuojantis arba apribotas darbuotojas|Non-existent or restricted user| | ||
+ | | 8 | Invalid xml given: ... | | Klaidingas ar neteisingos struktūros XML (skaityti pranešimo tekstą)|Invalid, incorrectly structured XML (please read the message | | ||
+ | | 9 | Error on import: ... | | Klaida susijusi su procedūra, informuokite Directo|An error is related to the procedure, please inform Directo| | ||
+ | | 11 | Duplicate | | Toks dokumentas jau egzistuoja| Document already exists| | ||
+ | | 12 | Missing document identificator | | Nenustatytas dokumento unikalus laukas|Document unique field has not been set | | ||
+ | | 13 | Missing customer code / Missing customer regno | (if code is not used) | Nenusiųstas arba nenustatytas pirkėjo unikalus laukas|Customer unique field has not been sent or set| | ||
+ | | 14 | Update not allowed | (if document is commited or has related documents) | Negalima atnaujinti dokumento (greičiausiai su dokumentu yra kitų susijusių dokumentų)|Unable to renew document (it is possible the document has been linked with other documents)| | ||
+ | | | | ||
+ | | 17 | Document insert failed | |Dokumentas nesukurtas, nes nerasta numeracija (nenurodyta, nenustatyta, pasibaigusi,...) |Document not created, this is because the number has not been found (not identified, not set up, expired...)| | ||
+ | | 18 | uniqueid field not found | (needs to be set up correctly in transport parameters) | Nenustatytas unikalus laukas, reikalingi nustatymai transporto parametruose|Unique field has not been set up, please check transports parameters| | ||
+ | | 19 | Removal of document not allowed | | Dokumento ištrinti nepavyko (gali būti patvirtintas, yra susijusių dokumentų,...)|Failed to delete document (can be confirmed, it has related documents,...)| | ||
+ | | 29 | Not confirmed: ... | (if auto document confirmation is used) | Dokumentas nepatvirtintas, jei naudojamas automatinis patvirtinimas, priežastis pateikta atsakyme|Document not confirmed, reason given in response| | ||
+ | | | | ||
+ | | 30 | Created | (creation of related document like customer, payment etc.) |Antrinis dokumentas sukurtas sėkmingai (susijusio dokumento: pirkėjo, apmokėjimo,...)|Related document created successfully| | ||
+ | | 30 | Updated | (update of related document like customer, payment etc.) |Antrinis dokumentas atnaujintas sėkmingai (susijusio dokumento: pirkėjo, apmokėjimo,...)|Related document updated successfully| | ||
+ | | 30 | Confirmed | (confirmed related document like payment etc.) | Antrinis dokumentas patvirtintas sėkmingai (susijusio dokumento: pirkėjo, apmokėjimo,...)|Related document confirmed successfully| | ||
+ | | 31 | ... not found | (prerequisite of creation of related document like customer, payment etc. not met) |Klaidos priežastis nurodyta atsakyme (neįvykdyta būtina sąlyga norint sukurti susijusį dokumentą, pvz., klientas, apmokėjimas ir pan.) |The reason for the error is given in the response ((prerequisite of creation of related document like customer, payment etc. not met)| | ||
+ | | 39 | ... not confirmed: ... | (if auto document confirmation for related document is in use) | Antrinio dokumento patvirtinti nepavyko (jei naudojamas susijusio dokumento automatinis dokumento patvirtinimas), priežastis nurodyrta atsakyme|The related document could not be confirmed (if auto document confirmation for related document is in use), reason is given in the reply| | ||
+ | | | | ||
+ | | 99 | No processable XML data found for document: ... | |Informuokite Directo|Please inform Directo| |