0 Operation performed succesfully 
The following APIs expect a JSON containing a token its owner’s userId (“idMittente”). Both are automatically assigned on login. The output will be a JSON wrapped in a single key called “d”, as follows: 

0 Operation performed succesfully 

Every API returns an errCode and an errMsg (brief error description) as output.
Possible errCode values:

 

0 Operation performed succesfully 

“-1” Server error -> http status code = 500 

“-2” Application error -> http status code = 404 

“-3” Expired token -> http status code = 401