Ανάλυση πεδίων EMDI web API
Η σελίδα εξηγεί κάθε πεδίο JSON του EMDI web API (αγγλικά ονόματα), με τον ίδιο τρόπο που η ανάλυση βάσης δεδομένων περιγράφει τους πίνακες Firebird.
- Auth:
?user=+?key=(ή κεφαλίδαX-API-Key) - Λίστα:
GET /apps/api/list/{type}.json - Μία εγγραφή:
GET /apps/api/{type}/{id}.json - Αποθήκευση:
POST /apps/api/save/{type}.json— τα πεδία μπαίνουν στοdata - Οδηγός API + διαδραστική τεκμηρίωση: EMDI web API
- Παραστατικά:
documents= όλα τα πεδίαpvlhseis·document_lines= όλα τα πεδίαgrammesμέσα στοlines. Στο list βάλε?include_lines=1.
Στον πίνακα: Πόρος = τύπος API, Πεδίο = κλειδί JSON, Περιγραφή, Τύπος.
| Πόρος | Πεδίο | Περιγραφή | Τύπος |
|---|---|---|---|
contacts |
Περιέχει τις επαφές, τους πελάτες, τους προμηθευτές (pelates). |
||
contacts |
id |
Κωδικός γραμμής | integer |
contacts |
code |
Κωδικός | string |
contacts |
name |
Όνομα | string |
contacts |
surname |
Επίθετο | string |
contacts |
company |
Επωνυμία | string |
contacts |
phone |
Τηλέφωνο | string |
contacts |
mobile |
Κινητό | string |
contacts |
fax |
Fax | string |
contacts |
email |
string | |
contacts |
url |
URL | string |
contacts |
address |
Διεύθυνση | string |
contacts |
area |
Περιοχή | string |
contacts |
postal_code |
Τ.Κ. | string |
contacts |
floor |
Τ.Θ. / Όροφος | string |
contacts |
vat_number |
ΑΦΜ. Δεν αλλάζει αν η επαφή χρησιμοποιείται σε παραστατικό. | string |
contacts |
notes |
Σημειώσεις | string |
contacts |
department |
Αστυνομικό τμήμα | string |
contacts |
installation_number |
Αριθμός εγκατάστασης | string |
contacts |
id_issue_date |
Ημερομηνία έκδοσης | string (date) |
contacts |
city_id |
Πόλη (κωδικός), σύνδεση με poleis | integer |
contacts |
city |
Όνομα πόλης (ετικέτα) | string |
contacts |
tax_office_id |
ΔΟΥ (κωδικός) | integer |
contacts |
tax_office |
Τίτλος ΔΟΥ | string |
contacts |
occupation_id |
Επάγγελμα (κωδικός) | integer |
contacts |
occupation |
Επάγγελμα (ετικέτα) | string |
contacts |
relation_id |
Σχέση (κωδικός), σύνδεση με sxeseis | integer |
contacts |
relation |
Σχέση (ετικέτα) | string |
contacts |
payment_method_id |
Τρόπος πληρωμής (κωδικός) | integer |
contacts |
payment_method |
Τρόπος πληρωμής (ετικέτα) | string |
contacts |
user_id |
Χρήστης (κωδικός) | integer |
contacts |
user |
Όνομα χρήστη | string |
contacts |
price_list_id |
Τιμοκατάλογος (κωδικός) | integer |
contacts |
price_list |
Τιμοκατάλογος (ετικέτα) | string |
contacts |
parent_contact_id |
Κεντρικός πελάτης / επαφή | integer |
contacts |
active |
Κατάσταση [1,0] ενεργός | integer |
contacts |
vat_obligation |
Υποχρέωση ΦΠΑ [0,1,2] κανονικό/μειωμένο/χωρίς | integer |
contacts |
tax_list |
Υποχρέωση ΜΥΦ [1,0] | integer |
contacts |
no_loyalties |
Εξαίρεση επιβράβευσης [1,0] | integer |
contacts |
credit_limit |
Όριο | number |
contacts |
purchases_value |
Αξία αγορών | number |
contacts |
sales_value |
Αξία πωλήσεων | number |
contacts |
stored_balance |
Υπόλοιπο αποθηκευμένο στο πεδίο Ypoloipo | number |
contacts |
balance |
Υπόλοιπο υπολογισμένο (χρεώσεις − πιστώσεις), προαιρετικά date_from/date_to | number |
contacts |
accounting_number |
Λογαριασμός λογιστικής | string |
contacts |
accounting_code |
Κωδικός λογιστικής | integer |
contacts |
company_number |
Αριθμός εταιρείας | string |
contacts |
latitude |
Γεωγραφικό πλάτος | number |
contacts |
longitude |
Γεωγραφικό μήκος | number |
contacts |
last_move |
Τελευταίο παραστατικό | string (date) |
contacts |
created |
Εγγραφή | string (date) |
contacts |
modified |
Ημερομηνία τροποποίησης | string (datetime) |
contacts |
custom1…custom20 |
Προσαρμοσμένα πεδία 1–20 | string |
items |
Περιέχει τα είδη και τις υπηρεσίες (apouhkh). |
||
items |
id |
Κωδικός γραμμής | integer |
items |
code |
Κωδικός είδους / Barcode | string |
items |
secondary_code |
Κωδικός αγοράς | string |
items |
description |
Περιγραφή | string |
items |
retail_price |
Καθαρή τιμή (Lianikh) | number |
items |
wholesale_price |
Αξία αγοράς (Timh_s) | number |
items |
unit_id |
Μονάδα μέτρησης (κωδικός) | integer |
items |
unit |
Μονάδα μέτρησης (ετικέτα) | string |
items |
unit2_id |
Μονάδα μέτρησης 2 | integer |
items |
unit2 |
Μονάδα 2 (ετικέτα) | string |
items |
unit3_id |
Μονάδα μέτρησης 3 | integer |
items |
unit3 |
Μονάδα 3 (ετικέτα) | string |
items |
quantity2 |
Ποσότητα 2ης μονάδας | number |
items |
quantity3 |
Ποσότητα 3ης μονάδας | number |
items |
subcategory_id |
Υποκατηγορία (κωδικός omades) | integer |
items |
category |
Υποκατηγορία (ετικέτα) | string |
items |
main_category_id |
Κύρια κατηγορία (κωδικός) | integer |
items |
main_category |
Κύρια κατηγορία (ετικέτα) | string |
items |
vat_rate |
Ποσοστό ΦΠΑ | number |
items |
supplier_id |
Προμηθευτής (επαφή) | integer |
items |
user_id |
Χρήστης | integer |
items |
user |
Όνομα χρήστη | string |
items |
length |
Πλάτος (P) | number |
items |
height |
Ύψος (Y) | number |
items |
width |
Βάθος (B) | number |
items |
area |
Εμβαδό | number |
items |
weight |
Βάρος | number |
items |
volume |
Όγκος | number |
items |
order |
Σειρά | integer |
items |
color |
Χρώμα | integer |
items |
min_quantity |
Ελάχιστη διαθεσιμότητα | number |
items |
profit_percent |
Ποσοστό κέρδους | number |
items |
profit_amount |
Ποσό κέρδους | number |
items |
sales_qty |
Πωλήσεις (ποσότητα) | number |
items |
income |
Έσοδα | number |
items |
expense |
Έξοδα | number |
items |
internet |
E-shop [1,0] | integer |
items |
scale |
Ζυγαριά [1,0] | integer |
items |
sync |
Συγχρονισμός [0,1] | integer |
items |
photo |
Φωτογραφία | string |
items |
url |
URL | string |
items |
notes |
Αναλυτική περιγραφή | string |
items |
taric |
Taric | string |
items |
active |
Κατάσταση [1,0] | integer |
items |
stock_qty |
Διαθεσιμότητα | number |
items |
price_changed |
Αλλαγή τιμής | string (date) |
items |
created |
Εγγραφή | string (date) |
items |
barcodes |
Barcode είδους | array of string |
items |
modified |
Τροποποίηση | string (datetime) |
items |
custom1…custom50 |
Προσαρμοσμένα πεδία 1–50 | string |
calendar |
Περιέχει τις υπενθυμίσεις και τα ραντεβού (rantevou). |
||
calendar |
id |
Κωδικός γραμμής | integer |
calendar |
contact_id |
Πελάτης / κύρια επαφή | integer |
calendar |
event_type_id |
Τύπος ραντεβού (κωδικός) | integer |
calendar |
event_type |
Τύπος ραντεβού (ετικέτα) | string |
calendar |
user_id |
Χρήστης | integer |
calendar |
user |
Όνομα χρήστη | string |
calendar |
assigned_to_id |
Προς χρήστη | integer |
calendar |
assigned_to |
Προς χρήστη (ετικέτα) | string |
calendar |
start |
Ημερομηνία έναρξης | string (datetime) |
calendar |
end |
Έως | string (datetime) |
calendar |
alarm |
Υπενθύμιση | string (datetime) |
calendar |
created |
Καταχωρήθηκε | string (datetime) |
calendar |
min_time |
Έναρξη (υπολογισμένο εύρος) | string (datetime) |
calendar |
max_time |
Λήξη (υπολογισμένο εύρος) | string (datetime) |
calendar |
comment |
Σημείωση | string |
calendar |
repeat |
Επανάληψη | string |
calendar |
modified |
Τροποποίηση | string (datetime) |
calendar |
contact1_id…contact10_id |
Επιπλέον επαφές 1–10 | integer |
documents |
Παραστατικά (pvlhseis, όλα τα πεδία). Γραμμές στο lines (grammes). Στο list: include_lines=1. |
||
documents |
id |
Κωδικός γραμμής παραστατικού | integer |
documents |
series |
Σειρά | string |
documents |
number |
Αρ. παρ. | integer |
documents |
date |
Ημερομηνία | string (datetime) |
documents |
time_from |
Ώρα από | string (time) |
documents |
time_to |
Ώρα έως | string (time) |
documents |
delivery_date |
Ημερομηνία παράδοσης | string (date) |
documents |
doc_type_id |
Παραστατικό (είδος, eidhpar) | integer |
documents |
doc_type |
Τίτλος είδους παραστατικού | string |
documents |
contact_id |
Πελάτης | integer |
documents |
delivery_contact_id |
Πελάτης παράδοσης | integer |
documents |
assignor_id |
Εντολέας | integer |
documents |
payment_method_id |
Πληρωμή 1 | integer |
documents |
payment_method |
Πληρωμή 1 (ετικέτα) | string |
documents |
payment_method2_id |
Πληρωμή 2 | integer |
documents |
payment_method2 |
Πληρωμή 2 (ετικέτα) | string |
documents |
shipping_method_id |
Τρόπος αποστολής | integer |
documents |
shipping_method |
Τρόπος αποστολής (ετικέτα) | string |
documents |
purpose_id |
Σκοπός διακίνησης | integer |
documents |
purpose |
Σκοπός (ετικέτα) | string |
documents |
user_id |
Χρήστης | integer |
documents |
user |
Όνομα χρήστη | string |
documents |
comment |
Σχόλιο | string |
documents |
shipping_place |
Τόπος αποστολής | string |
documents |
loading_place |
Τόπος φόρτωσης | string |
documents |
plate |
Αριθμός οχήματος | string |
documents |
related_docs |
Σχετικά παραστατικά (κείμενο) | string |
documents |
related_document_id |
Σχετικό παραστατικό (κωδικός) | integer |
documents |
schedule_id |
Ραντεβού | integer |
documents |
devices_sent |
Λίστα συσκευών αποστολής | string |
documents |
custom |
Προσαρμοσμένο πεδίο | string |
documents |
voucher |
Voucher | string |
documents |
b2g |
Πεδία B2G (διαχωρισμένα με 😉 | string |
documents |
net_before_discount |
Σύνολο προ έκπτωσης | number |
documents |
vat_total |
Σύνολο ΦΠΑ | number |
documents |
total |
Σύνολο με ΦΠΑ | number |
documents |
other_charges |
Σύνολο λοιπών χρεώσεων | number |
documents |
qty_total |
Σύνολο ποσότητας | number |
documents |
volume_total |
Σύνολο όγκου | number |
documents |
area_total |
Σύνολο εμβαδού | number |
documents |
weight_total |
Σύνολο βάρους | number |
documents |
extra_value_total |
Σύνολο αξίας ειδικών πεδίων | number |
documents |
proportional_percent |
Σύνολο ποσοστού αναλογικά | number |
documents |
payment |
Αξία πληρωμής 1 (π.χ. μετρητά) | number |
documents |
payment2 |
Αξία πληρωμής 2 (π.χ. κάρτα) | number |
documents |
mydata_locked |
Κλειδωμένο (mark ή υπογραφή). Δεν διαγράφεται/επεξεργάζεται. | boolean |
documents |
invoice_mark |
invoiceMark myDATA | integer |
documents |
signature |
Υπογραφή παρόχου | string |
documents |
modified |
Τροποποίηση | string (datetime) |
documents |
lines |
Γραμμές παραστατικού (βλ. document_lines) | array |
documents |
custom1…custom5 |
Προσαρμοσμένα πεδία 1–5 | string |
document_lines |
Γραμμές παραστατικού (grammes), μέσα στο documents.lines. |
||
document_lines |
id |
Κωδικός γραμμής | integer |
document_lines |
document_id |
Παραστατικό | integer |
document_lines |
product_id |
Είδος | integer |
document_lines |
unit_id |
Μονάδα μέτρησης (κωδικός) | integer |
document_lines |
description |
Περιγραφή | string |
document_lines |
code |
Κωδικός είδους / Barcode | string |
document_lines |
unit |
Μονάδα (αποθηκευμένη ονομασία) | string |
document_lines |
qty |
Ποσότητα | number |
document_lines |
price |
Αξία μονάδας | number |
document_lines |
discount |
Ποσοστό έκπτωσης | number |
document_lines |
vat_rate |
Ποσοστό ΦΠΑ | number |
document_lines |
order |
Αριθμός σειράς | integer |
document_lines |
action |
Κίνηση [0,1,2] (παραγγελίες) | integer |
document_lines |
type |
Τύπος [1,2] γονικό/συνδυασμένο | integer |
document_lines |
related_line_id |
Σχετική γραμμή | integer |
doc_types |
Είδη παραστατικών (eidhpar). Lookup list/doc_types.json. |
||
doc_types |
id |
Κωδικός γραμμής | integer |
doc_types |
parent_id |
Γονικό | integer |
doc_types |
related_id |
Σχετικό | integer |
doc_types |
name |
Τίτλος | string |
doc_types |
series |
Σειρά παραστατικού | string |
doc_types |
number |
Αριθμός | integer |
doc_types |
cashiers_position_id |
Ταμείο | integer |
doc_types |
cashiers_position |
Ταμείο (ετικέτα) | string |
doc_types |
movement |
Κίνηση [0–6]: 0 Αγορά/Εισαγωγή, 1 Πώληση/Εξαγωγή, 2 Είσπραξη, 3 Πληρωμή, 4 Καμία, 5 Αγορά χωρίς διακίνηση, 6 Πώληση χωρίς διακίνηση | integer |
doc_types |
price_mode |
Εμφάνιση τιμών [0–3]: 0 Όχι, 1 Ναι, 2 Ναι/Επιστροφή (πιστωτικό), 3 Μόνο ΦΠΑ | integer |
doc_types |
day_change |
Μεταβολή ημέρας | integer |
doc_types |
print_mode |
Εκτύπωση | integer |
doc_types |
default_item_codes |
Κωδικοί ειδών αυτόματοι σε νέο παραστατικό | string |
doc_types |
recipient_titles |
Τίτλοι αποδεκτών | string |
doc_types |
on_lines |
Σε γραμμές | integer |
doc_types |
recipients |
Αποδέκτες | integer |
doc_types |
copies |
Αντίγραφα | integer |
doc_types |
copy_titles |
Τίτλοι αντιγράφων | string |
doc_types |
printer |
Εκτυπωτής | string |
doc_types |
form_file |
Φόρμα | string |
doc_types |
payment_method_id |
Τρόπος πληρωμής | integer |
doc_types |
fiscal_signing |
Σήμανση | integer |
doc_types |
signing_doc_number |
Αρ. παραστατικού σήμανσης | integer |
doc_types |
deductible_amount |
Ποσό εκπιπτώμενο | integer |
doc_types |
serials |
Σειριακοί | integer |
doc_types |
special_fields_flags |
Ειδικά πεδία (binary flags) | integer |
doc_types |
special_field_titles |
Τίτλοι ειδικών πεδίων | string |
doc_types |
accounting_code |
Κωδικός παραστατικού λογιστικής | string |
doc_types |
accounting_account |
Λογαριασμός λογιστικής | string |
doc_types |
aggregates |
Συγκεντρωτικές | integer |
doc_types |
price_list |
Τιμοκατάλογος | string |
doc_types |
related_products |
Συνδυασμοί προϊόντων | integer |
doc_types |
empty_expiration_text |
Όταν λήξη < 2001 | string |
doc_types |
custom_sql |
Εκτέλεση SQL | string |
doc_types |
order |
Σειρά | integer |
doc_types |
options_flags |
Άλλα (binary: e-invoicing, δελτίο διακίνησης, …) | integer |
doc_types |
tax_docs |
Παραστατικό myDATA | string |
doc_types |
tax_category |
Κατηγορία myDATA | string |
doc_types |
tax_type |
Τύπος myDATA | string |
doc_types |
shipping_purpose |
Σκοπός αποστολής/διακίνησης | integer |
doc_types |
shipping_method |
Τρόπος αποστολής/διακίνησης | integer |
vat_rates |
Συντελεστές ΦΠΑ (fpa). |
||
vat_rates |
id |
Κωδικός γραμμής | integer |
vat_rates |
rate |
Ποσοστό ΦΠΑ | number |
vat_rates |
title |
Τίτλος | string |
vat_rates |
cashier_id |
Ταμείο | integer |
vat_rates |
accounting_number_in |
Λογιστική είσοδος | string |
vat_rates |
accounting_number_out |
Λογιστική έξοδος | string |
vat_rates |
modified |
Τροποποίηση | string (datetime) |
vat_rates |
tax_id |
tax_id | integer |
vat_rates |
tax_vat |
tax_vat | integer |
vat_rates |
tax_type_revenues |
Τύπος εσόδων myDATA | string |
vat_rates |
tax_type_expenses |
Τύπος εξόδων myDATA | string |
vat_rates |
order |
Σειρά | integer |
users |
Χρήστες (xrhstes) — χωρίς κωδικό πρόσβασης. |
||
users |
id |
Κωδικός γραμμής | integer |
users |
name |
Όνομα | string |
users |
email |
string | |
users |
rights_id |
Δικαιώματα | integer |
users |
contact_id |
Επαφή | integer |
users |
commission_percent |
Ποσοστό προμήθειας | number |
users |
commission_price_list_id |
Τιμοκατάλογος προμήθειας | integer |
contacts_relations |
Σχέσεις επαφών (sxeseis). |
||
contacts_relations |
id |
Κωδικός γραμμής | integer |
contacts_relations |
name |
Περιγραφή | string |
contacts_relations |
accounting_code |
Κωδικός λογιστικής | integer |
contacts_relations |
accounting_number |
Λογαριασμός λογιστικής | string |
contacts_relations |
modified |
Τροποποίηση | string (datetime) |
contacts_relations |
readonly |
Μόνο ανάγνωση [1,0] | integer |
measurement_units |
Μονάδες μέτρησης (monades). |
||
measurement_units |
id |
Κωδικός γραμμής | integer |
measurement_units |
name |
Μονάδα | string |
measurement_units |
quantity |
Ποσότητα | number |
measurement_units |
modified |
Τροποποίηση | string (datetime) |
measurement_units |
tax_unit |
Φορολογική μονάδα | integer |
categories |
Κύριες κατηγορίες ειδών (kathgories). |
||
categories |
id |
Κωδικός γραμμής | integer |
categories |
name |
Κατηγορία | string |
categories |
order |
Σειρά | integer |
categories |
modified |
Τροποποίηση | string (datetime) |
categories |
color |
Χρώμα | integer |
subcategories |
Υποκατηγορίες ειδών (omades). |
||
subcategories |
id |
Κωδικός γραμμής | integer |
subcategories |
name |
Υποκατηγορία | string |
subcategories |
category_id |
Κύρια κατηγορία | integer |
subcategories |
order |
Σειρά | integer |
subcategories |
accounting_code |
Κωδικός λογιστικής | string |
subcategories |
accounting_number |
Λογαριασμός λογιστικής | string |
subcategories |
modified |
Τροποποίηση | string (datetime) |
subcategories |
color |
Χρώμα | integer |
subcategories |
scale_category |
Κατηγορία ζυγαριάς | integer |
subcategories |
button_width |
Πλάτος κουμπιού | integer |
subcategories |
per_item |
Ανά είδος | integer |
payment_methods |
Τρόποι πληρωμής (diakanonismos). |
||
payment_methods |
id |
Κωδικός γραμμής | integer |
payment_methods |
name |
Περιγραφή | string |
payment_methods |
other_payment_title |
Τίτλος άλλης πληρωμής | string |
payment_methods |
settled |
Εξοφλημένο | integer |
payment_methods |
order |
Σειρά | integer |
payment_methods |
accounting_code |
Κωδικός λογιστικής | string |
payment_methods |
accounting_number |
Λογαριασμός λογιστικής | string |
payment_methods |
days_notify |
Ημέρες ειδοποίησης | integer |
payment_methods |
tax_payment |
tax_payment | integer |
payment_methods |
cashier_id |
Ταμείο | integer |
calendar_types |
Τύποι ραντεβού (typosrantevou). |
||
calendar_types |
id |
Κωδικός γραμμής | integer |
calendar_types |
name |
Τίτλος | string |
calendar_types |
color |
Χρώμα | integer |
cashiers_positions |
Ταμεία (tameia). |
||
cashiers_positions |
id |
Κωδικός γραμμής | integer |
cashiers_positions |
name |
Ταμείο | string |
cashiers_positions |
related_id |
Σχετικό | integer |
cashiers_positions |
issue |
Έκδοση | integer |
cashiers_positions |
order |
Σειρά | integer |
