/v1/sql/:uid
Synchronous SQL query for specific accounting unit, will return array. Response will be send after sql is executed ,or an error occoured. If so, response will return error message with detailed description.
Example
/v1/sql/88899460-4d0b-421b8d67-2023
Request
POSTtext/plain
uid - accounting unit identifier
Request body is sql in plain text.

POSTtext/base64
uid - accounting unit identifier
Request body is base64 encoded sql.
Response
200text/json

{ json object }[]

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/sql/one/:uid
Synchronous SQL query for specific accounting unit, will single row or null. Response will be send after sql is executed ,or an error occoured. If so, response will return error message with detailed description.
Example
/v1/sql/one/88899460-4d0b-421b8d67-2023
Request
POSTtext/plain
uid - accounting unit identifier
Request body is sql in plain text.

POSTtext/base64
uid - accounting unit identifier
Request body is base64 encoded sql.
Response
200text/json

{ json object } || null

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