ScalepointDeveloper Portal

CWA Claim Page API

Introduction

This document describes the CWA Claim Page API. This API is used by Claim Page to retrieve all needed data.

Authentication

In order to send data to CWA Claim Page API 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.

User ID parameters

Almost every endpoint requires to send userGlobalId parameter, in order to check if user has access to the requested resource. This is always an id of the claimant, because Claim Page returns only data in claimant scope. However, if API is used by claim handler user, it is needed to send claim handler's id in claimHandlerUserGlobalId header.

userGlobalId request parameterclaimHandlerUserGlobalId header
Claim HandlerClaimant's idClaim handler's id
ClaimantClaimant's idEmpty

If API is used by claimant, but claimHandlerUserGlobalId had been set to his id, then CWA would treat that user as claim handler, which will always result in 404 HTTP error (claimant is not IC user, so it cannot be found).

API

EndpointMethodDescriptionCP equivalent endpoint
api/case/{caseId}/attachmentsPOSTUploads attachment file/api/claims/{claimId}/attachment
api/case/{caseId}/attachments/{attachmentId}DELETEDeletes attachment file/api/claims/{claimId}/attachment
api/case/{caseId}/case-dataGETReturns dynamic data object, used in further calls to Communcation Designer
api/case/claimsGETReturns list of claims/api/claims
api/case/companies/{subCompanyAlias}GETReturns subcompany's details/api/companies
api/case/{caseId}/contactsGETReturns list of contacts/api/claims/{claimId}/contacts
api/case/contacts/{contactId}POSTUpdates contact details of logged user/api/contacts/{contactId}
api/case/{caseId}/contacts/mobilePhonePrefixesGETReturns list of mobile phone prefixes/api/claims/{claimId}/contacts/mobilePhonePrefixes
api/case/{caseId}/craftsmanInvitationPOSTSends invitation to external crafstman (repair service)/api/claims/{claimId}/craftsman-invitation
api/case/{caseId}/detailsGETReturns basic case's data/api/claims/{claimId}/details/information
api/case/{caseId}/details/lineOfBusinessGETReturns line of business (case type) for the case
api/case/{caseId}/externalUrls/shopGETReturns URL of the shop/api/claims/{claimId}/externalUrls/shop
api/case/{caseId}/externalUrls/selfServiceGETReturns URL of the self service/api/claims/{claimId}/externalUrls/selfService
api/case/{caseId}/featuresGETUsed to determine sections that user can access within the claim/api/claims/{claimId}/features
api/case/{caseId}/userRoleGETReturns user role in scope of CP, for further BI calls
api/case/{caseId}/filesGETReturns files attached to the case/api/claims/{claimId}/files/files
api/case/{caseId}/filesPUTMarks files as viewed/api/claims/{claimId}/files/files/viewed
api/case/{caseId}/files/documentsGETReturns documents attached to the claim/api/claims/{claimId}/files/documents
api/case/{caseId}/files/downloadGETReturns content of the file/api/claims/{claimId}/files/download
api/case/{caseId}/financialOverviewGETReturns content of financial overview tab/api/claims/{claimId}/financial-overview
api/case/{caseId}/historyGETReturns content of the messages tab/api/claims/{claimId}/history
api/case/{caseId}/historyPUTMarks messages as viewed/api/claims/{claimId}/history
api/case/images/{attachmentInfoId}/thumbnailGETReturns thumbnail of the attachmentapi/images/{attachmentInfoId}/thumbnail
api/case/images/{attachmentInfoId}/previewGETReturns preview of the attachmentapi/images/{attachmentInfoId}/preview
api/case/{caseId}/messagesPOSTSends message to all selected recipients/api/claims/{claimId}/messages
api/case/{caseId}/servicesGETReturns content of the 3rd-party providers tab/api/claims/{claimId}/services
api/case/{caseId}/stateGETReturns claim's progress bar steps/api/claims/{claimId}/state

Swagger doesn't exist for this API, but it possible to check Claim Page API for parameters and return types, using CP equivalent endpoint column.

Last updated on

On this page