{ from?: number, // default 0 size?: number, // default 30 ids?: number[], // optional restrict to IDs asc?: string, // optional sort asc e.g. "Datum;ID" desc?: string, // optional sort desc e.g. "Datum;ID" on?: string[] // optional filters: tokens "Field;search;from;to" }
{ total: number, filtered: number, fields: DField[], data: any[], summary: { [key: string]: number }, query: DQuery } DField = { name: string, text?: string, sort?: 'asc'|'desc'|'', // simple values (one of these may be present) string?: string|null, number?: number|null, numbers?: number[], date?: string|null, // ISO YYYY-MM-DD checkbox?: boolean|null, select?: { // select-like inputs type: 'number'|'date'|'string', value?: any|null, options: { value: any, text: string }[] }, checkbuttons?: { // select-like inputs type: 'number'|'string', value?: any|null, options: { value: any, text: string }[] }, checkboxes?: { // select-like inputs type: 'number'|'date'|'string'|'number[]'|'string[]', values?: any[], options: { value: any, text: string }[], classInput?: string }, range?: { // ranges and validity type: 'number'|'date', nullable?: boolean, from?: number|string|Date|null, to?: number|string|Date|null }, valid_until?: { type: 'date', nullable?: boolean, value?: string|Date|null } } DQuery = { from: number, size: number, init?: number, fields: DField[] }
text/xml // body: XML conforming to Stormware invoice.xsd (SK/CZ) // either a single <inv:invoice> or a <dat:dataPack> wrapper
<dat:dataPack version="2.0" id="import" ico="12345678" application="API" note="optional"> <dat:dataPackItem id="1" version="2.0"> <inv:invoice version="2.0">...</inv:invoice> </dat:dataPackItem> </dat:dataPack>
{ invoice: string, // invoice number name: string, // file name including extension content: string // base64-encoded file content }
{ name: string, // original file name (e.g., my.pdf) content: string // base64-encoded PDF content }
{ invoice_id: number, // required invoice ID invoice_item_id?: number, // optional: update single line if provided refStr?: number, // optional: centre ID (stredisko) refCin?: number, // optional: activity ID (cinnost) cisloZAK?: string // optional: order number }