Claims
Creating a Claim
POST /motor-club/claims
To create Claim, send a POST
request to the /motor-club/claims
endpoint with a JSON payload containing claim details.
tip
This endpoint only accepts JSON - set the HTTP header Content-Type: application/json
on every POST
request
warning
- A claim must correspond to an existing Registration
- Each Registration must have a unique
invoiceNumber
to file a Claim against it
Parameters
HTTP Headers
Headers | Description |
---|---|
Authorization | Bearer token in form of a JWT see getting started for more information |
HTTP Request Body
Send a Claim object as the request body as JSON.
Errors
This endpoint may respond with any documented of the status codes, however the most
common errors are 401: Unauthorized
and 400: Bad Request
.
Status | Name | Description | Resolution |
---|---|---|---|
400 | Bad Request | The server could not understand the request | Check all parameters and ensure the request is valid |
401 | Unauthorized | The request is unauthenticated | Ensure your JWT is valid |
404 | Not Found | The resource was not found | Ensure the invoiceNumber has a matching Registration |
409 | Conflict | The request conflicts with the current state of the server | Ensure the invoiceNumber is unique and corresponds to a single Registration |
Example
Claim Object
{
"invoiceNumber": "001-20345",
"internalReferenceNumber": "ABC1234",
"serviceType":"reimbursement",
"serviceInvoiceDate": "2024-09-15T15:00:00.000",
"language": "en",
"vehicle": {
"year": 2021,
"make": "Tesla",
"model": "Model 3",
"vin": "1234",
"plateNumber": "xxxx",
"plateState": "CO",
"mileage": 12222
}
}
Request
curl --location \
--request POST "https://sandbox.absintegrations.com/api/v3/motor-club/claims" \
--header "Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Mjc2NTU5NzAsImV4cCI6MTYyNzY2MzE3MCwiYXVkIjoiaHR0cHM6Ly9zYW5kYm94LmFic2ludGVncmF0aW9ucy5jb20vYXBpL3YzIiwiaXNzIjoiNjEwMmI1MjFmNDAzZjQyZGRjZGU3YWU1In0.y5-vxJHlBtVf2Jr9sPO4I97L5hImkhyn1EtHeCoeIzqZwObpcVy9ZEMJoCGbXwnGdeZ6GpaiO8KD9xLqgUZcTg" \
--header "Content-Type: application/json" \
--data-raw '{
"invoiceNumber": "001-20345",
"internalReferenceNumber": "ABC1234",
"serviceType":"reimbursement",
"serviceInvoiceDate": "2024-09-15T15:00:00.000",
"language": "en",
"vehicle": {
"year": 2021,
"make": "Tesla",
"model": "Model 3",
"vin": "1234",
"plateNumber": "xxxx",
"plateState": "CO",
"mileage": 12222
}
}'
Response
{
"id": "EX114",
"docsUrl": "https://sandbox.abs.claims/BxFuKRXgW2"
}