API: Claim

Claim list

JWT Authorisation

GET /api/v3/claim

Request parameter:

Filtering parameters:

ParameterTypeINExampleDescription
branchintegerQUERYfilters[branch]=34Filtering by branch id = value
policyintegerQUERYfilters[policy]=123Filtering by policy id = value
statusintegerQUERYfilters[status]=123Filtering by claims status id = value

API: _ Default behavior#List defaults


Response data:

Metadata: object.

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

Data:  object.data[array]

ParameterOut TypeIn TypeDescription
idinteger
Policy id
nrstring|nullstring(255)|nullPolicy nr
date_timestring|nullstring(date)|nullClaim date-time
archived_atstring|nullstring(date)|nullArchive date (null=not archived)
policyarrayint|nullAPi: Policy data
policy[id]integer
Policy id
policy[nr]string|null
Policy nr
brancharrayint|nullAPI: Branch
branch[name]string|null
Branch name in DE language
branch[name_e]string|null
Branch name in EN language
branch[name_i]string|null
Branch name in IT language
branch[name_f]string|null
Branch name in FR language
branch[short_name]string|null
Branch short-name in DE language
branch[short_name_e]string|null
Branch short-name in EN language
branch[short_name_i]string|null
Branch short-name in IT language
branch[short_name_f]string|null
Branch short-name in FR language
statusarrayint|nullClaim status
status[id]integer|null
Status id
status[name]string|null
Status name in DE language
status[name_e]string|null
Status name in EN language
status[name_i]string|null
Status name in IT language
status[name_f]string|null
Status name in FR language
created_fromstring|nullstring|nullApp name that created claim (default API)
Recomended to send in format: "API:Version" like BrokerWeb:2.12

Response (Error):

ParameterTypeDescription
codeintegerAn error code
errorstringA message containing some information about the error 
errorsarrayList of errors devided by field in associative array {field_name:error message}

API: _ Default behavior #Authentication defaults 

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


Response (Success)
200 OK  
{
    "count": "12",
    "data": [
        {
            "id": 2,
            "nr": "321",
            "date_time": null,
            "archived_at": "2022-08-10T00:00:00+02:00",
            "policy": {
                "id": 20305,
                "nr": "15.335.064"
            },
            "branch": {
                "name_e": "Motor vehicle",
                "name_f": "Véhicule automobile",
                "name_i": "Veicolo a motore",
                "short_name": "MF",
                "short_name_e": "MF",
                "short_name_f": "MF",
                "short_name_i": "MF",
                "id": 34,
                "name": "Motorfahrzeug"
            },
            "status": {
                "name_e": "open",
                "name_f": "ouvert",
                "name_i": "aperto",
                "id": 1,
                "name": "offen"
            },
			"created_from": "BrokerWeb:2.12"
        }
    ],
    "status": 200
} 

Or one of 

Single Claim

JWT Authorisation

GET /api/v3/claim/{id}

Request parameter:

ParameterTypeInDescription
idinturlid of requested claim

Response data:

Metadata: object.

ParameterTypeDescription
statusintResponse status (same as in http code)

Data:  object.data

ParameterOut TypeIn TypeDescription
All of Get all claims +
registration_datestring|nullstring(date)|nullRegistration date
limitation_datestring|nullstring(date)|nullLimitation date
due_datestring|nullstring(date)|nullDue date
damage_costsstring|nullstring(date)|nullDamage costs
infostring|nullstring(65534)|nullClaim information
post_codestring|nullstring(30)|nullPost code
citystring|nullstring(30)|nullCity
addressstring|nullstring(255)|nullAddress
situationstring|nullstring(65534)|nullSituation
policy_reportint|nullint|nullDoes it has policy report (0=no,1=yes)
reporterstring|nullstring(255)|nullReporter
agency_deductiblestring|nullfloat(15,2)|nullAgency deductible
deductiblestring|nullfloat(15,2)|nullDeductible
foreign_deductiblestring|nullfloat(15,2)|nullForeign daductible
foreign_damage_costsstring|nullfloat(15,2)|nullForeign damage costs
coverage_disabilitystring|nullfloat(5,2)|nullCoverage disabillity
waiting_periodstring|nullint|nullWaiting Period (days)
daily_allowancestring|nullfloat(15,4)|nullDaily allowance
countryarrayint|nullDamage country
country[id]int|null
Country id
country[name]string|null
Country name in DE language
country[name_e]string|null
Country name in EN language
country[name_i]string|null
Country name in IT language
country[name_f]string|null
Country name in FR language

Response (Error):

ParameterTypeDescription
codeintegerAn error code
errorstringA message containing some information about the error 
errorsarrayList of errors devided by field in associative array {field_name:error message}
Request
curl -X GET https://public.brokerstar.biz/api/v3/claim/16448 --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2NTg[...]cm5hbWUiOiJkZW1vLWRlIn0.VTVp[...]cqIg'


Response (Success)
200 OK 
{
    "data": {
        "id": 2,
        "nr": "321",
        "date_time": null,
        "archived_at": "2022-08-10T00:00:00+02:00",
        "policy": {
            "id": 20305,
            "nr": "15.335.064"
        },
        "branch": {
            "name_e": "Motor vehicle",
            "name_f": "Véhicule automobile",
            "name_i": "Veicolo a motore",
            "short_name": "MF",
            "short_name_e": "MF",
            "short_name_f": "MF",
            "short_name_i": "MF",
            "id": 34,
            "name": "Motorfahrzeug"
        },
        "status": {
            "name_e": "open",
            "name_f": "ouvert",
            "name_i": "aperto",
            "id": 1,
            "name": "offen"
        },
        "registration_date": "2022-08-17T00:00:00+02:00",
        "limitation_date": null,
        "due_date": null,
        "damage_costs": "231.00",
        "info": "123123",
        "post_code": null,
        "city": null,
        "address": null,
        "situation": "123123",
        "policy_report": false,
        "reporter": null,
        "agency_deductible": null,
        "deductible": null,
        "foreign_deductible": null,
        "foreign_damage_costs": null,
        "coverage_disability": null,
        "waiting_period": null,
        "daily_allowance": null,
        "country": {
            "name_e": "Switzerland",
            "name_f": "Suisse",
            "name_i": "Svizzera",
            "id": 1,
            "name": "Schweiz"
        }
    },
    "status": 200
} 
Response (Error)
404 Not found
{
	"error": "Entity not found",
	"code": 404
}
Response (Error)
403 Forbidden
{
	"error": "You have no access to claim id:123",
	"code": 403
}

Or one of 

Create Claim


POST /api/v3/claim

Request parameter:

ParameterTypeInDescription
policyinturlid of Policy of the claim

Response data:

Metadata: object.

ParameterTypeDescription
statusintResponse status (same as in http code)

Data:  object.data

ParameterOut TypeIn TypeUsed for
Branch short name
Description
All of Get one claim +
driver_is_insurantint|nullint(0|1)|nullMFIs driver insurant (0=no,1=yes)
driver_countryarrayint|nullMFDrivers country
driver_country[id]int|null

Drivers country id
driver_country[name]string|null

Drivers country name in DE language
driver_country[name_e]string|null

Drivers country name in EN language
driver_country[name_i]string|null

Drivers country name in IT language
driver_country[name_f]string|null

Drivers country name in FR language
driver_sexint|nullint(0|1)|nullMFDrivers sex (0=woman,1=man)
driver_first_namestring|nullstring(255)|nullMF
driver_birthdatestring(date)|nullstring(date)|nullMFBirth date of driver
driver_licence_datestring(date)|nullstring(date)|nullMFDriver licence date
driver_addressstring|nullstring(255)|nullMFDriver address
driver_post_codestring|nullstring(30)|nullMFDriver post code
driver_citystring|nullstring(50)|nullMFDriver city
driver_cararrayint|nullMFDriver car
driver_car[id]int|null

Driver car id
driver_car[name]string|null

Driver car name
repair_shop_companystring|nullstring(255)|nullMFRepair shop company name
repair_shop_post_codestring|nullstring(10)|nullMFRepair shop post code
repair_shop_citystring|nullstring(30)|nullMFRepair shop city
repair_shop_phonestring|nullstring(30)|nullMFRepair shop phone
repair_shop_datestring(date)|nullstring(date)|nullMFRepair shop date send
accident_logint|nullint(0|1)|nullMFAccident log (0=no,1=yes)
responsibleint|nullint(0|1)|nullMFResponsible (0=no,1=yes)
involved_person_sexint|nullint(0|1)|nullMFInvolved person sex (0=woman,1=man)
involved_person_first_namestring|nullstring(255)|nullMFInvolved person first name
involved_person_last_namestring|nullstring(255)|nullMFInvolved person last name
involved_person_addressstring|nullstring(65534)|nullMFInvolved person address
involved_person_post_codestring|nullstring(10)|nullMFInvolved person post code
involved_person_citystring|nullstring(255)|nullMFInvolved person city
involved_person_phonestring|nullstring(30)|nullMFInvolved person phone
involved_person_assurancestring|nullstring|nullMFInvolved person assurance
involved_person_car_typstring|nullstring(255)|nullMFInvolved person car typ
involved_person_car_nrstring|nullstring(255)|nullMFInvolved person car br
is_other_involved_personsint|nullint(0|1)|nullMFIs other involved persons (0=no,1=yes)
damage_otherstring|nullstring(2000)|nullSACHDamage other
damage_other_costsstring|nullfloat(10,2)|nullSACHDamage other costs
damage_buildingstring|nullstring(2000)|nullSACHDamage building
damage_building_costsstring|nullfloat(10,2)|nullSACHDamage building cots
damage_outfallstring|nullstring(2000)|nullSACHDamage outfall
damage_outfall_costsstring|nullfloat(10,2)|nullSACHDamage outfall costs
damage_outfall_is_assuredint|nullint(0|1)|nullSACHDamage outfall is assured
damage_outfall_assurancestring|nullstring(255)|nullSACHDamage outfall assurance
inspection_placestring|nullstring(65534)|nullSACH, TRSP, PHInspection_place
car_nrstring|nullstring(255)|nullTRSPCar nr
car_typstring|nullstring(255)|nullTRSPCar typ
car_driverstring|nullstring(255)|nullTRSPCar driver
transport_fromstring|nullstring(255)|nullTRSPTransport from
transport_tostring|nullstring(255)|nullTRSPTransport to
delivery_date_timestring(date time)|nullstring(date time)|nullTRSPDelivery date time
condition_before_deliverystring|nullstring(2000)|nullTRSPCondition before delivery
salary_intervalarrayint|nullKTG, UVGSalary interval
salary_interval[id]int|null

Salary interval id
salary_interval[name]string|null

Salary interval name in DE language
salary_interval[name_e]string|null

Salary interval name in EN language
salary_interval[name_i]string|null

Salary interval name in IT language
salary_interval[name_f]string|null

Salary interval name in FR language
hiring_datestring(date)|nullstring(date)|nullKTG, UVGHiring date
professionstring|nullstring(255)|nullKTG, UVGProfession
job_functionstring|nullstring(255)|nullKTG, UVGJob function
beginstring(date)|nullstring(date)|nullKTGBegin date
endstring(date)|nullstring(date)|nullKTGEnd date
days_per_weekstring|nullint|nullKTG, UVGWorked days per week
hours_per_weekstring|nullint|nullKTG, UVGWorked hours per week
work_timestring|nullstring(h:m)|nullKTG, UVGWork time (hours:minutes = 8:30) 8h 30m
salarystring|nullfloat(10,2)|nullKTG, UVGSalary
accident_placestring|nullstring(1000)|nullUVGAccident place
accident_at_workint|nullint(0|1)|nullUVGAccident at work (0=no,1=yes)
injurystring|nullstring(1000)|nullUVGInjury
unable_to_workint|nullint(0|1)|nullUVGUnable to work
unable_to_work_untilstring(date)|nullstring(date)|nullUVGUnable to work untill
max_paystring|nullfloat(12,2)|nullUVGMax pay
is_self_debtint|nullint(0|1)|nullPHIs self debt (0=no,1=yes)
self_debt_basestring|nullstring(1000)|nullPHSelf debt base
is_assuredint|nullint(0|1)|nullPHIs assured (0=no,1=yes)
assurancestring|nullstring(255)|nullPHAssurance
Additional setup
_sendMailboolbool|null
Default = false, If true - if success maill will be send to contact and to related advisors.

Response (Error):

ParameterTypeDescription
codeintegerAn error code
errorstringA message containing some information about the error 
errorsarrayList of errors devided by field in associative array {field_name:error message}
Request
curl -X POST https://public.brokerstar.biz/api/v3/claim  -d '{
    "policy":20305,
    "status": 2,
    "nr":"123",
    "country": 1,
    "driver_country":1,
    "driver_birthdate": "2001-07-12",
    "driver_is_insurant":1,
    "work_time":"23:121",
    "damage_costs":123.31,
    "created_from":"BrokerWeb:4.12",
	"_sendMail": true
}'  --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2NTg[...]cm5hbWUiOiJkZW1vLWRlIn0.VTVp[...]cqIg'  -


Response (Success)
200 OK 
{
    "data": {
        "id": 2,
    },
    "status": 200
} 
Response (Error)
403 Forbidden
{
	"error": "You have no access to policy id:123",
	"code": 403
}

Or one of 

Inform Insurances


POST /api/v3/claim/inform-insurances/{id}

Request parameter:

ParameterMandatoryIn TypeDescription
idyesurlid of claim
Additional setup
_sendMailnoboolDefault = false, If true - if success mail will be send to contact and to related advisors.

Response data:


ParameterTypeDescription
statusintResponse status code (same as in http code)


Response (Error):

ParameterTypeDescription
codeintegerAn error code
errorstringA message containing some information about the error 
errorsarrayList of errors devided by field in associative array {field_name:error message}
Request
curl -X GET https://public.brokerstar.biz/api/v3/claim/inform-insurances/420  -d '{
    "_sendMail": true
}' 
Response (Error)
403 Forbidden
{
	"error": "You have no access to claim id:420",
	"code": 403
}
Response (Success)
200 OK 
{
    "status": 200
}