CHAPP

Technical information

Chapp Service API · version 1.0.0

Overview

The Chapp Service API lets an RSA operator send an RSA case to Chapp, keep it up to date as the case moves through the event chain, discard it, and read it back. It has two operations, both for RSA cases: one that sends a message about a case (New, Event, Update or Discard) and one that reads a case. A client reaches only the cases it created itself.

Requests and responses are JSON (Content-Type: application/json). Field names are written as listed under Schemas; enum values are sent as their numbers; times are ISO 8601 with an offset, for example 2026-01-15T12:30:00+01:00; fields marked uuid hold a GUID as a string.

The base URL, token endpoint and client credentials are provided when you join the Chapp network. Contact INFO@CHAPP-MOBILITY.COM.

Authentication

  1. Your company is given a client id and a client secret when it joins the Chapp network.
  2. Request an access token with the OAuth 2.0 client credentials flow (grant type client_credentials) and the scope api.
  3. Send the token with every request in the header Authorization: Bearer <token>.
  4. The token identifies your client. A request without a valid token, or with a token that does not identify a client, is rejected with 401 Unauthorized. A case belongs to the client that created it, and every later call reaches only the cases of that client.

Operations

POSTSend an RSA case message

Create a Case within Waystar, merge changes into it, add events to it or discard it. What the call does is set by systemMessage.messageType, see Message types.

Request body: RSACaseRequest

Responses:

StatusWhenBody
200The message was acceptedResponseModel<RSACaseResponse>
400See Rules and errorsResponseModel<RSACaseResponse> with the error set
401No valid access token, or the token does not identify your clientNone
403New is sent for a company other than your ownResponseModel<RSACaseResponse> with the error set
404The case does not exist, or was not created by your clientResponseModel<RSACaseResponse> with the error set
409Event or Update was sent before the new case was storedResponseModel<RSACaseResponse> with the error set
500The case could not be stored or queuedResponseModel<RSACaseResponse> with the error set

GETGet an RSA case

Get a RSA Case on the Chapp format by using the ChappCaseId as an identifier. Only cases created by your client can be read.

Parameter:

ParameterTypeRequiredDescription
chappCaseIdstring (uuid)YesThe ChappCaseId returned when the case was created

Responses:

StatusWhenBody
200The caseResponseModel<RSACaseResponse>
401No valid access token, or the token does not identify your clientNone
404The case does not exist, or was not created by your clientResponseModel<RSACaseResponse> with the error set

Rules and errors

Message types

The MessageType, systemMessage.messageType, decides what a request does. Any other value is rejected with 400.

MessageTypeWhat it doesWhat it needs
New (1)Creates the case and gives it a ChappCaseId. The case is stored as it was sent, and its service data is stored a moment later. The response has status Processing.No ChappCaseId. serviceInfo.clientCaseOwnerId as a number that is your own company, and at least one event.
Event (2)Merges the events of rsaCase.events into the case and changes nothing else. An event with the same eventTime and eventType as a stored one updates it; any other event is added; stored events that are not sent are kept.A ChappCaseId, and at least one event.
Update (3)Merges the fields of rsaCase into the case, and its events the same way as Event. Events already stored but not sent again are kept. The merge is done before the response is sent, and the response holds the case as stored.A ChappCaseId, serviceInfo.clientCaseOwnerId as a number, and at least one event. The case owner cannot change.
Discard (4)Marks the case as discarded: its status becomes Aborted and later Update, Event and Discard messages are refused. Only the ChappCaseId is used; the case in the body is not checked. Allowed also while the case is still being stored.A ChappCaseId.

A discarded case, status Aborted, is closed: Update, Event and Discard are then refused with 400 case is discarded, and the case can still be read. Event and Update sent right after New, before the case has been stored, are refused with 409 and change nothing; send them again a moment later. Discard is accepted at any time.

The event chain in the request

Each step of the Chapp event chain is one Event in rsaCase.events, told apart by its EventTypeEnum. The first event, RECEIVED, is sent with MessageType New (1) and no ChappCaseId; the response gives the case its ChappCaseId. Later events are sent with MessageType Event (2) and the case's ChappCaseId, carrying the new event in rsaCase.events. The events already stored are kept, so there is no need to send them again. Data that the step adds to the case itself, such as the service provider, is sent with MessageType Update (3).

Step on the home pageeventTypeData it adds
1 RECEIVEDReceivedService (1)serviceInfo, vehicle, endUser, serviceLocation
2 ASSIGNEDAssignedService (2)serviceProvider
3 STARTEDStartedService (3)the event's position
4 ARRIVEDArrivedAtServiceLocation (4)the event's position
5a SOLVED ON LOCATIONFinishedAtServiceLocation (5)serviceInfo.incidentTypeConfirmedByTower, images
5b LEFTLeftServiceLocation (6)serviceInfo.incidentTypeConfirmedByTower, dropOffLocation, images
6 DROP OFFFinishedAtDropoffLocation (7)the event's position, dropOffLocation

Rules

  • Every request carries a valid access token (see Authentication).
  • MessageType New (1) must not carry a ChappCaseId.
  • MessageType Event (2), Update (3) and Discard (4) require a ChappCaseId.
  • New, Event and Update carry at least one event in rsaCase.events, and none of them may be null.
  • New, Event and Update carry serviceInfo.clientCaseOwnerId as a whole number, sent as a string such as "1000"; otherwise the request is rejected with 400. On New it must be your own company, otherwise the request is rejected with 403. The case owner cannot be changed by an Update.
  • Event, Update, Discard and the read operation reach only cases created by your client. An unknown ChappCaseId and a case created by another client are both answered with 404. Event and Update check this first, so they answer 404 before the body is checked.
  • Every field marked Required under Schemas must be present; otherwise the request is rejected with 400.
  • A message that is accepted but has missing fields, or fields that differ from earlier messages, is still answered with 200. The response then carries a warning that lists them.

Errors

An error is returned with the HTTP status shown, as a ResponseModel<RSACaseResponse> whose data is null and whose error always holds message, statusCode as a number and errorData, which is null when there is no extra data. The message is exactly as shown. A request without a valid token, or with a token that does not identify a client, gets 401 with no body.

StatusWhenMessage
400MessageType is not 1, 2, 3 or 4messageType must be 1 (New), 2 (Event), 3 (Update) or 4 (Discard)
400MessageType is New and a ChappCaseId is setChappCaseId should not be set when MessageType is New
400MessageType is Event, Update or Discard and no ChappCaseId is setEvent request needs a ChappCaseId (Update request needs a ChappCaseId, Discard request needs a ChappCaseId)
400serviceInfo or serviceInfo.clientCaseOwnerId is missing, or is not a whole number (New, Event, Update)clientCaseOwnerId must be a number
400The events are missing or empty (New, Event, Update)At least one event is required
400The events hold a null (New, Event, Update)events must not contain null
400The case has been discarded and an Update, Event or Discard is sentcase is discarded
400An Update would change the case ownerclientCaseOwnerId cannot change on an existing case
403New is sent with a clientCaseOwnerId that is not your own companyclientCaseOwnerId must be your own company
400A required field is missingError envelope with message "Required fields are missing"
401No access token, an invalid one, or a token that does not identify a client that has been set up for the APINone
404The ChappCaseId is unknown, or belongs to a case created by another client. Event and Update are answered with 404 before their body is checkedCase not found
409Event or Update is sent before the case created by New has been storedCase is still being created, retry shortly
500The case could not be stored or queuedThe case could not be stored, or The case could not be queued for processing
{
  "chappCaseId": "00000000-0000-0000-0000-00000000c0de",
  "data": null,
  "error": { "message": "Case not found", "errorData": null, "statusCode": 404 }
}

The answer to a missing required field has the same shape, and errorData tells which fields:

{
  "chappCaseId": null,
  "data": null,
  "error": {
    "message": "Required fields are missing",
    "errorData": { "errors": { "<field>": "<message>" } },
    "statusCode": 400
  }
}

Schemas

Required: the request is rejected when the field is missing. Types in monospace link to their schema or enum.

RSACaseRequest

The request body of Create or update an RSA case.

FieldTypeRequiredDescription
chappCaseIdstring (uuid)NoChapp mobilitys internal case Id that is used to identify the case
rsaCaseRSACaseYes
systemMessageSystemMessageYesUnique identifier for the API call

RSACase

FieldTypeRequiredDescription
chappCaseIdstring (uuid)NoChapp mobilitys internal case Id that is used to identify the case
serviceInfoServiceInfoYesGeneral information about the service
vehicleVehicleYesInformation about the vehicle that is in need for service
insuranceInfoInsuranceInfoNoInformation about the insurance company
serviceProviderServiceProviderNoInformation about the tower that is assigned to the service
endUserCustomerYesInformation about the customer that is in need for service
eventsarray of EventYesList of events during the service process
commentsarray of CommentNoInternal comment by operator or tower
serviceLocationServiceLocationYesInformation about the localtion. One of Address, Position or Description must be set
imagesarray of ImageNoImages of the vehicle and addational images related to the service
dropOffLocationDropOffLocationNoLocation of where the vehicle was dropped off. One of Address or Position must be set
instructionsarray of RSACaseInstructionsNoDefined at contraint for the RSA case with options for validation at different events

ServiceInfo

FieldTypeRequiredDescription
clientIdstringYesYour internal id for the service
referencesobject (string to string)NoReferences to this service, your keys and values are complete optional. Ex: 'Reference': '123456'
createdstring (date-time)YesWhen was the service created in your system
preBookTimestring (date-time)NoDoes the service have a pre booked time
etastring (date-time)NoWhen is the tower excepeted to be at the service location
serviceTypeServiceTypeEnumNoWhat kind of service needs to be performed? Eg. Towing or a transportation
incidentTypeReportedByEndUserIncidentTypeEnumYesWhat kind of incident was reported by the customer
incidentTypeConfirmedByTowerIncidentTypeEnumNoWhat kind of incident that was confirmed by the tower when arrived at location
commentstringNoAdditional information about the service
clientCaseOwnerIdstringYesYour insurance company id. New is only accepted for your own company
clientCaseOwnerNamestringNoYour external insurance company customer name
caseOwnerProductIDstringNoYour external insurance company product id
productstringNoThe insutance company product name
personAtServiceLocationbooleanNoIf there is a person at service location to meet with tower

Vehicle

FieldTypeRequiredDescription
registrationNumberstringYes
brandstringYesCombined make / model
colorstringNo
vehicleTypeVehicleTypeYes
vinstringYes
weightintegerNo
totalWeightintegerNo
countryintegerNo
registrationDatestring (date)No
fourWheelDrivebooleanNo
gearTypeGearTypeEnumNo
fuelTypestringNo
descriptionstringNo
odometerReadingnumberNo
countryOfOriginstringNoUse ISO 3166-2. Eg SE = Sweden, NO = Norway, DK = Denmark, FI = Finland, IS = Iceland
chassiCodestringNoAlternative name - BodyType
chassiCodeAdditionalstringNo
chassiCodeSpecialstringNo
drivingBanbooleanNo
drivingBanReasonstringNo
drivingBanDatestring (date-time)No
firstRegistrationYearstring (date)No
registartionStatusstringNo
registrationStatusYearstring (date)No
searchedForbooleanNo
searchedForDatestring (date)No
directImportbooleanNo
ownerCustomerNo

VehicleType

FieldTypeRequiredDescription
typestringYes
subTypestringYes

Customer

FieldTypeRequiredDescription
namestringNo
phonestringNo
mailstringNo
languagestringNoUse ISO 3166-2. Eg SE = Sweden, NO = Norway, DK = Denmark, FI = Finland, IS = Iceland
socialSecurityNumberstringNo
organizationNumberstringNo
addressAddressNo

Address

FieldTypeRequiredDescription
streetAddressstringNo
citystringNo
zipstringNo
countrystringNoUse ISO 3166-2. Eg SE = Sweden, NO = Norway, DK = Denmark, FI = Finland, IS = Iceland

Position

FieldTypeRequiredDescription
latitudenumberNo
longitudenumberNo

InsuranceInfo

FieldTypeRequiredDescription
clientInsuranceCompanyIdstringYesYour internal company Id
insuranceCompanyNamestringYesYour internal company name
insuranceInfomrationstringYesInformation about the insurance

ServiceProvider

FieldTypeRequiredDescription
clientProviderIdstringYesYour internal provider Id
providerNamestringYesYour provider name
clientStationIdstringYesYour internal provider station id
stationNamestringNoYour internal towing company station name
providerDriveNamestringNoProvider driver name
providerDriverPhonestringNoProvider phone number
providerTruckRegistrationNumberstringNoProvider truck registration number

Event

FieldTypeRequiredDescription
clientEventIdstringYes
eventTypeEventTypeEnumNoWhat type event
positionPositionNoWhat was the position when the event was initiated
addressAddressNoWhat was the address when the event was initiated
eventTimestring (date-time)NoAt what time the event was initiated
commentstringNoComment for the event. Eg if paused, why?

Comment

FieldTypeRequiredDescription
clientCommentIdstringYesYour internal comment Id
messagestringYes
createdBystringYes
createdstring (date-time)No

ServiceLocation

FieldTypeRequiredDescription
addressAddressNoAddress for the service location
positionPositionNoPosition in longitude and latitude for the service location
descriptionstringNoGeneral description for the service location if needed. Eg Around the corner of this shop
sourceTypeServiceLocationEnumYesWho has reported the location for the service.

Image

FieldTypeRequiredDescription
clientImageIdstringYesYour internal image Id
imageUrlstringYesUrl to the image available for download
takenByImageTakenByEnumNo

DropOffLocation

FieldTypeRequiredDescription
dropOffLocationTypeDropoffLocationTypeEnumNoWhere was the the vehicle dropped of
clientDropOffLocationIdstringNoYour internal id IF the vehicle was dropped of at a identifiable location, Eg. A repairshop
namestringNoName of location if we use ExternalID
emailstringNoEmail of location if we use ExternalID
phonestringNoPhone of location if we use ExternalID
addressAddressNoAddress of the drop of location
positionPositionNoPosition of the drop of location

RSACaseInstructions

FieldTypeRequiredDescription
typeInstructionTypeEnumNo
limitationstringNo
limitationValueintegerNo
limitationAtEventEventTypeEnumNo

SystemMessage

FieldTypeRequiredDescription
messageTimestring (date-time)YesTime when the message was created in the system
messageGuidstring (uuid)YesThe message guid
messageTypeSystemMessageEnumYesWhat type of message are you sending for this RSA Service
commentstringNoComment for the reason of sending the message

ResponseModel<RSACaseResponse>

The response body of both operations, for success and for errors.

FieldTypeRequiredDescription
chappCaseIdstring (uuid)NoThe id of the case; on an error, the id in your request when there was one
dataRSACaseResponseYesNull when there is an error
errorErrorResponseModelNoLeft out when there is no error. When present it always holds message, errorData and statusCode
warningWarningResponseModelNoLeft out when there is no warning. Set when the message was accepted but some fields are missing or differ from earlier messages

RSACaseResponse

FieldTypeRequiredDescription
rsaCaseRSACaseYesThe case as stored. A case whose service data is not stored yet has only its chappCaseId set
statusChappSystemStatusYes

ErrorResponseModel

FieldTypeRequiredDescription
messagestringNo
errorDataobjectNoAlways present inside error; null when there is no extra data
statusCodeHttpStatusCodeNo

WarningResponseModel

FieldTypeRequiredDescription
messagestringNo
dataobjectNo

Enums

Enums are sent as their numbers.

SystemMessageEnum

The MessageType of a request.

NameValue
New1
Event2
Update3
Discard4

EventTypeEnum

NameValue
None0
ReceivedService1
AssignedService2
StartedService3
ArrivedAtServiceLocation4
FinishedAtServiceLocation5
LeftServiceLocation6
FinishedAtDropoffLocation7
Paused8
Resumed9

ServiceTypeEnum

NameValue
Other0
StartHelp1
Repair2
Towing3
Transport4
LockKeyAlarm5

IncidentTypeEnum

NameValue
None0
Fire1
FuelIssues2
DitchOrStuck3
WheelIssues4
ElectricIssues5
Collision6
TransmissionBrake7
LockKeyAlarm8
EngineIssues9
AuthorityTowing10
TheftDamageVandalism11
TRVCommuneMove12
WildlifeAccident13
TransferTransport14
Other15

ServiceLocationEnum

NameValue
None0
Customer1
Operator2
Tower3

ImageTakenByEnum

NameValue
Tower1
Customer2

DropoffLocationTypeEnum

NameValue
Other0
Home1
RepairShop2
Scrapyard3

GearTypeEnum

NameValue
MANUEL1
AUTOMATIC2

InstructionTypeEnum

NameValue
Image1

ChappSystemStatus

Processing until the service data of the case is stored, then Completed. Aborted when the case has been discarded.

NameValue
Processing1
Accepted2
Completed3
Aborted4

HttpStatusCode

The standard HTTP status codes as numbers, for example:

NameValue
OK200
BadRequest400
Unauthorized401
Forbidden403
NotFound404
Conflict409
InternalServerError500

Example

A new case at its first event, RECEIVED: an RSACaseRequest sent with Send an RSA case message · POST. All values are made up.

{
  "chappCaseId": null,
  "rsaCase": {
    "chappCaseId": null,
    "serviceInfo": {
      "clientId": "100001",
      "references": null,
      "created": "2026-01-15T12:28:12+01:00",
      "preBookTime": null,
      "eta": null,
      "serviceType": 3,
      "incidentTypeReportedByEndUser": 6,
      "incidentTypeConfirmedByTower": null,
      "comment": null,
      "clientCaseOwnerId": "1000",
      "clientCaseOwnerName": "Example Insurance",
      "caseOwnerProductID": "1",
      "product": "Example product",
      "personAtServiceLocation": null
    },
    "vehicle": {
      "registrationNumber": "ABC123",
      "brand": "EXAMPLE CAR 1.2 AUT",
      "color": null,
      "vehicleType": {
        "type": "Car",
        "subType": "Passenger car"
      },
      "vin": "XXXXXXXXXXX000000",
      "weight": null,
      "totalWeight": null,
      "country": null,
      "registrationDate": null,
      "fourWheelDrive": null,
      "gearType": null,
      "fuelType": null,
      "description": null,
      "odometerReading": null,
      "countryOfOrigin": null,
      "chassiCode": null,
      "chassiCodeAdditional": null,
      "chassiCodeSpecial": null,
      "drivingBan": null,
      "drivingBanReason": null,
      "drivingBanDate": null,
      "firstRegistrationYear": null,
      "registartionStatus": null,
      "registrationStatusYear": null,
      "searchedFor": null,
      "searchedForDate": null,
      "directImport": null,
      "owner": null
    },
    "insuranceInfo": null,
    "serviceProvider": null,
    "endUser": {
      "name": "Jane Doe",
      "phone": "+46 70 000 00 00",
      "mail": null,
      "language": "SE",
      "socialSecurityNumber": null,
      "organizationNumber": null,
      "address": null
    },
    "events": [
      {
        "clientEventId": "E-0001",
        "eventType": 1,
        "position": null,
        "address": null,
        "eventTime": "2026-01-15T12:30:00+01:00",
        "comment": null
      }
    ],
    "comments": [],
    "serviceLocation": {
      "address": {
        "streetAddress": "Example Street 1",
        "city": "Exampletown",
        "zip": "000 00",
        "country": "SE"
      },
      "position": {
        "latitude": 59,
        "longitude": 18
      },
      "description": "",
      "sourceType": 2
    },
    "images": [],
    "dropOffLocation": null,
    "instructions": []
  },
  "systemMessage": {
    "messageTime": "2026-01-15T12:30:05+01:00",
    "messageGuid": "00000000-0000-0000-0000-000000000001",
    "messageType": 1,
    "comment": null
  }
}

The response, a ResponseModel<RSACaseResponse>, shortened:

{
  "chappCaseId": "00000000-0000-0000-0000-00000000c0de",
  "data": {
    "rsaCase": {
      "chappCaseId": "00000000-0000-0000-0000-00000000c0de",
      "serviceInfo": { "clientId": "100001", … },
      …
    },
    "status": 1
  }
}