ScalepointDeveloper Portal

Claim Page API

OpenAPI Schema

Introduction

This document describes the Claim Page API. This API can be used to get all the data that is accessible from the Claim Page.

Claim Page API can divided into three parts:

  1. Claim Page API – used by Claim Page frontend to get data. However, Claim Page doesn't have data persistance, so in almost all cases it behaves as proxy
  2. CWA Claim Page API – used by Claim Page backend to get data from the data source (CWA)
  3. Claim Page SSO - login to Claim Page with access token & signle sign on

Authentication

In order to send data to Claim Page endpoints the access_token is required. This token can be obtained from the Authentication Endpoint. Please refer to the documentation about details of authentication process.

API caller should request platform-case:read from Authentication Endpoint.

Token should be then used in a cookie: claim-page-cookie.

There are two more cookies that can be set:

  1. claim-page-language – example value: en. If this isn't set, CP will use value from Accept-Language header
  2. contextUserGlobalId – this is a GUID of another CWA user. Setting this value means, that CP will be accessed in impersonation mode.

Impersonation

Claim Page can be accessed in one of the two modes:

  1. As claimant [impersonation: false]
  2. As claim handler [impersonation: true]

The second mode means, that claim handler logs into application in scope of claimant and he sees what claimant would see in first mode. However, claim handler can only use application in read mode, which means that he cannot perform any actions. For this reason, some of API calls are validated against impersonation and cannot be invoked as claim handler.

Integration

Claim Page API is integrated with following APIs:

EndpointMethodIntegration flowImpersonation
/api/appInfo/app-infoGETCPBoth
/api/app-settingsGETCPBoth
/api/claims/{claimId}/attachmentPOSTCP -> CWAOnly false
/api/claims/{claimId}/attachmentDELETECP -> CWAOnly false
/api/claims/{claimId}/audit/pageVisitedPOSTCP -> CWA, then back to CP -> BIBoth
/api/claimsGETCP -> CWABoth
/api/companiesGETCP -> CWABoth
/api/claims/{claimId}/contactsGETCP -> CWABoth
/api/contacts/{contactId}POSTCP -> CWAOnly false
/api/claims/{claimId}/contacts/mobilePhonePrefixesGETCP -> CWABoth
/api/claims/{claimId}/craftsman-invitationPOSTCP -> CWAOnly false
/api/claims/{claimId}/details/faqGETCP -> CWA, then back to CP -> CDBoth
/api/claims/{claimId}/details/informationGETCP -> CWABoth
/api/claims/{claimId}/details/linksGETCP -> CWA, then back to CP -> CDBoth
/api/claims/{claimId}/externalUrls/shopGETCP -> CWABoth
/api/claims/{claimId}/externalUrls/selfServiceGETCP -> CWABoth
/api/claims/{claimId}/featuresGETCP -> CWABoth
/api/claims/{claimId}/files/filesGETCP -> CWABoth
/api/claims/{claimId}/files/documentsGETCP -> CWABoth
/api/claims/{claimId}/files/files/viewedPUTCP -> CWABoth
/api/claims/{claimId}/files/downloadGETCP -> CWABoth
/api/claims/{claimId}/financial-overviewGETCP -> CWABoth
/api/claims/{claimId}/footerGETCP -> CWA, then back to CP -> CDBoth
/api/claims/{claimId}/historyGETCP -> CWABoth
/api/claims/{claimId}/historyPUTCP -> CWABoth
/api/images/{attachmentInfoId}/thumbnailGETCP -> CWABoth
/api/images/{attachmentInfoId}/previewGETCP -> CWABoth
/api/claims/{claimId}/messagesPOSTCP -> CWAOnly false
/api/claims/{claimId}/servicesGETCP -> CWABoth
/api/claims/{claimId}/stateGETCP -> CWABoth
/api/claims/{claimId}/state/descriptionGETCP -> CWA, then back to CP -> CDBoth
/api/claims/{claimId}/updates/triggerGETCP -> CP UIBoth
/api/user/logged-user-infoGETCPBoth

As a rule, if CP needs to call CD for templates, it makes two calls to CWA:

  1. At first to obtain LOB,
  2. Then to obtain case's data used in the template.

When a call to BI is made, CP is calling CWA for user's role.

Whenever case's messages or files are changed (added new or modified) from outside of CP, the /api/claims/{claimId}/updates/trigger call is made from external application to refresh the data on UI using SignalR.

Last updated on

On this page