Important URLs and Models

Auth and API Base URL

Type

URL 

  1. Auth Base

  2. Api Base URL

  1. https://accounting-api-auth.favrit.com

  2. https://favrit.com/ws/accounting-api-service

Response Structure

Field

Type

Remarks

status

StatusType

Refers response status

message

String

Any error message

data

Response data can be anything

Can be any kind of response

StatusType

Values

SUCCESS

FAILED

API Scopes

Values

Description

prod/user

User related api access

prod/accounting

Accounting reports related api access

prod/transaction

Transaction reports related api access

Successful response example

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8

{
   "status": "SUCCESS",
   "data": {
       "locations": [
           {
               "id": 20762,
               "name": "Test (ikke rør enda)",
               "active": true
           },
           {
               "id": 10818,
               "name": "Asia",
               "active": false
           }
       ]
   }
}