Vehicle Damage Case API
Authentication – Autentikáció:
Minden API hívás fejébe el kell helyezni egy megfelelő tokent, hogy a hívás sikeres lehessen. All API calls must include a token in the call header.
Ehhez / for this:
az itt található DLL-ben (zip fájl – ki kell bontani)
az EncryptString függvényt kell meghívni, a bejelentkezéshez használt felhasználónévre és jelszóra / call the EncryptString function with the user name and password used for login.
Az így kapott értékekkel kell meghívni ezt a végpontot / call this end point with the result received:
IRightModuleMobileWebService/web/AuthenticateUser
Bemenő paraméterek / input parameters:
string UserName, string Password, string DeviceToken
A DeviceToken értéke legyen nul.
Visszatérési érték / return values:
class AuthenticationResult { string ErrorCode string ErrorMessage string UserToken }
A UserToken értékét kell minden hívás fejében megadni (header név: UserToken). A token 4 óráig érvényes. Az esetleges autentikációs hibák az ErrorMessage paraméterben lesznek.
The UserToken value must be included in all call headers (header name: UserToken). The token is valid for 4 hours. Any auth error will be provided in the ErrorMessage parameter.
Új káreset létrehozása – Create new damage case
/IVehicleDamageModuleBL/web/NewCaseFromXML
Bemenő paraméter / Input params:
class VehDamageInput { byte[] Content; }
Visszatérési érték / Return values:
class ItemResult : BaseResult { string Item; }
Káresethez dokumentum(ok) hozzáadása – Add documents to existing case
/IVehicleDamageModuleBL/web/AddDocumentsToCase
Annyiszor kell hívni ahány dokumentumot hozzá akarunk adni. Egyszerre egyet lehet.
Ha ez az utolsó akkor isLastDocument property IGAZ-ra állítandó.
Call it as many times as many documents you want to add.
If this is the last document then set isLastDocument property to TRUE.
Bemenő paraméter / Input params:
class VehDamageUpload { byte[] Document string DocumentName int DocumentType bool IsLastDocument decimal VehDamageId }
Visszatérési érték / Return values:
class ItemResult : BaseResult { string Item; }
Káreset státusz lekérdezése – query case status
/IVehicleDamageModuleBL/web/GetCaseStatus
Bemenő paraméter / Input params:
class VehDamageDataInput { decimal VehDamageId }
Visszatérési érték / Return values:
class VehDamageData { string CaseNum Decimal ID string InsuranceCompany Decimal SettlementMode VehicleData VehicleData OfferData OfferData Status Status WinnerRepairShop WinnerRepairShop ErrorResult ErrorResult } class VehicleData { string PlateNumber } class OfferData { Decimal GrossRepairCost Decimal RepairTime Decimal OfferTime Decimal NetRepairHourlyFee string TransferLocation Decimal ReplacementCarFeePerDay } class Status { string ActualStatus DateTime StatusSetDateTime } class WinnerRepairShop { string PartnerName string LocationAddress string ContactPersonName string ContactPersonPhoneNumber string ContactPersonEmailAddress } class ErrorResult { decimal ErrorCode; String ErrorMessage; string Item; }
A BaseResult osztály felépítése:
class BaseResult { decimal ErrorCode; string ErrorMessage; }