/v1/cash/accounts/:uid
Bank accounts for accounting unit.
Example
/v1/cash/accounts/88899460-4d0b-421b8d67-2023
Request
GET
uid - accounting unit identifier
Response
200text/json

{
   ID: number, database id
   IDS: string, account identifiers
   SText: string, account name
   Zrusen: date, cancelation date
}[]
Error
400 bad request
your request doesn't meet requested input
401 not authorized
your request doesn't meet authorization requirements
404 not found
entity you loking for, is missing
460 request error
requested operations wasn't performed, or xml import failed
500 internal error
we encountered some internal server error
503 not available
requested entity is offline and cannot be reached, try again later
/v1/cash/numbering/:uid
Cash numberings for accounting unit.
Example
/v1/cash/numbering/88899460-4d0b-421b8d67-2023
Request
GET
uid - accounting unit identifier
Response
200text/json

{
   type: string, // pohoda_sk, pohoda_cz
   available: string[], // incoming, outgoing
   numbering: {
      ID: number, database id
      Rok: number, numbering year
      IDS: string, numbering prefix
      Cislo: string, next number
      SText: string, naming
      type: string, numbering type, see types above
   }[]
}

Ussualy, number is combination of IDS an Cislo, like "HP2300001"
Error
400 bad request
your request doesn't meet requested input
401 not authorized
your request doesn't meet authorization requirements
404 not found
entity you loking for, is missing
460 request error
requested operations wasn't performed, or xml import failed
500 internal error
we encountered some internal server error
503 not available
requested entity is offline and cannot be reached, try again later
/v1/cash/import/xml/:uid
Synchronous cash XML import for accounting unit. Response will be send after import was successfull, or an error occoured. If so, response will return error message with detailed description.
Request
POSTtext/xml
uid - accounting unit identifier
Request body is required to be valid SK or CZ xml document.
Response
200text/xml
XML response according to SK or CZ xml schema.
Error
400 bad request
your request doesn't meet requested input
401 not authorized
your request doesn't meet authorization requirements
404 not found
entity you loking for, is missing
460 request error
requested operations wasn't performed, or xml import failed
500 internal error
we encountered some internal server error
503 not available
requested entity is offline and cannot be reached, try again later