API: Branch

Branch list

JWT Authorisation

GET /api/v3/branch

Request parameter:

No Request parameter

This list has no filtering options

Response data:

Metadata: object.

ParameterTypeDescription
countintNumber of all results marching criteria 
statusintResponse status (same as in http code)

Data:  object.data[array]

ParameterTypeDescription
idintPolicy-Branch ID 
namestringPolicy-Branch name in language DE
name_estring|nullPolicy-Branch name in language EN
name_istring|nullPolicy-Branch name in language IT
name_fstring|nullPolicy-Branch name in language FR
short_namestringPolicy-Branch short name in language DE
short_name_estring|nullPolicy-Branch short name in language EN
short_name_istring|nullPolicy-Branch short name in language IT
short_name_fstring|nullPolicy-Branch short name in language FR

Response (Error):

/wiki/spaces/BROK/pages/693181 #Authentication defaults 

Request
curl -X GET https://public.brokerstar.biz/api/v3/branch --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2NTg[...]cm5hbWUiOiJkZW1vLWRlIn0.VTVp[...]cqIg'


Response (Success)
200 OK   
{
    "count": "71",
    "data": [
        {
            "name_e": "General technical equipment insurance",
            "name_f": "Assurance des installations techniques",
            "name_i": "Assicurazione di impianti tecnici",
            "short_name": "ATA",
            "short_name_e": "ATA",
            "short_name_f": "ATA",
            "short_name_i": "ATA",
            "id": 1,
            "name": "Allg. Technische Anlagen"
        },
        [...]
	]
    "status": 200
}

Or one of 

One branch

JWT Authorisation

GET /api/v3/branch/{id}

Request parameter:

No Request parameter

This list has no filtering options

Response data:

Metadata: object.

ParameterTypeDescription
countintNumber of all results marching criteria 
statusintResponse status (same as in http code)

Data:  object.data[array]

ParameterTypeDescription
All from branch list +
typearrayPolicy branch type info
type[id]idType id
type[name]stringType name in DE language
type[name_e]string|nullType name in EN language
type[name_i]string|nullType name in IT language
type[name_f]string|nullType name in FR language
type[short_name]stringType short name - used to define eg. Claim type
bw_typearrayPolicy branch type info
bw_type[id]idBrokerWeb Type id
bw_type[name]stringBrokerWeb Type name in DE language
bw_type[name_e]string|nullBrokerWeb Type name in EN language
bw_type[name_i]string|nullBrokerWeb Type name in IT language
bw_type[name_f]string|nullBrokerWeb Type name in FR language
bw_type[short_name]stringBrokerWeb Type short name  in DE language
bw_type[short_name_e]stringBrokerWeb Type short name  in EN language
bw_type[short_name_i]stringBrokerWeb Type short name  in IT language
bw_type[short_name_f]stringBrokerWeb Type short name  in FR language



Response (Error):

Request
curl -X GET https://public.brokerstar.biz/api/v3/branch/1 --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2NTg[...]cm5hbWUiOiJkZW1vLWRlIn0.VTVp[...]cqIg'


Response (Success)
200 OK  {
    "data": {
        "name": "Allg. Technische Anlagen",
        "name_e": "General technical equipment insurance",
        "name_f": "Assurance des installations techniques (IT)",
        "name_i": "Assicurazione di impianti tecnici",
        "short_name": "ATA",
        "short_name_e": "ATA",
        "short_name_f": "ATA",
        "type": {
            "name_e": "Personal Liability",
            "name_f": "Assurance Responsabilité civile privée",
            "name_i": "Assicurazione di responsabilità civile",
            "short_name": "PH",
            "id": 3,
            "name": "Privathaftpflicht"
        },
        "bw_type": {
            "name_e": null,
            "name_f": null,
            "name_i": null,
            "short_name": null,
            "short_name_e": null,
            "short_name_f": null,
            "short_name_i": null,
            "id": null,
            "name": null
        },
        "id": 1
    },
    "status": 200
}
Response (Error)
404 Not found
{
	"error": "Entity not found",
	"code": 404
}

Or one of