Skip to main content

How to fetch follow ups for a dealer

This endpoint allows you to retrieve follow-ups for a dealer with pagination and filtering capabilities. You can fetch follow-ups in batches using filters such as task type.

To use this endpoint, you first need your credentials. If you don't already have one, please head over to the Authentication and Authorization page to see how you can request for credentials from us.

Request

HTTP request

POST  https://api.mykaarma.com/leads/followup/dealer/{dealerUUID}/list

Parameters

Required path parameters:

Parameter NameValueDescription
dealerUUIDstringUnique identifier for the dealer

Authorization

This request requires authorization. Include your credentials in the authorization header.

Request Body

Property NameTypeDescription
dealerDepartmentUUIDstringUnique identifier of the dealer's department
entriesToBeSkippedintegerNumber of entries to skip for pagination (default: 0)
entriesLimitToBeFetchedintegerMaximum number of entries to fetch (default: 50, max limit)
filterDataobject(Optional) Filter criteria for follow-ups

Sample Request

curl --location 'https://api.mykaarma.com/leads/followup/dealer/{dealerUUID}/list' \
--header 'accept: application/json' \
--header 'authorization: <your-credentials>' \
--header 'Content-Type: application/json' \
--data '{
"dealerDepartmentUUID": "1798d108ffb4dc7be6c78754d0794f8c749ff94877e36ebb9547bdb48d378060",
"entriesToBeSkipped": 0,
"entriesLimitToBeFetched": 10,
"filterData": {}
}'
Pagination
  • If entriesLimitToBeFetched is not provided, a default maximum limit of 50 is applied
  • Use entriesToBeSkipped and entriesLimitToBeFetched together for pagination
  • Fetch follow-ups in batches using filters such as task type to send messages efficiently

Response

{
"statusCode": 200,
"error": null,
"warnings": null,
"followUpsList": [
{
"uuid": "follow-up-uuid",
"dealerUuid": "dealer-uuid",
"dealerDepartmentUuid": "department-uuid",
"customerUuid": "customer-uuid",
"customerFName": "John",
"customerLName": "Doe",
"address": null,
"phoneNumber": {
"communicationValue": "**********",
"commType": "TEXT",
"optOutStatus": "OPTED_IN",
"timeOfChange": "2024-07-26T20:29:44.000+00:00",
"canSendOptinRequest": false
},
"emailAddress": {
"communicationValue": "****************",
"commType": "EMAIL",
"optOutStatus": null,
"timeOfChange": null,
"canSendOptinRequest": null
},
"source": {
"uuid": "task-type-uuid",
"dealerUuid": "dealer-uuid",
"taskName": "Declined Service",
"taskDisplayName": "Declined Service",
"taskDescription": "Declined Services Task Type"
},
"vehicle": {
"id": 329048323,
"uuid": "vehicle-uuid",
"vehicleKey": null,
"isValid": true,
"vin": "1GBHK34K07E528181",
"make": "Chevrolet",
"model": "Silverado 3500 HD",
"year": "2007",
"lastMileage": null
},
"dealerOrder": {
"dealerOrderUuid": "order-uuid",
"orderNumber": "202405162",
"orderType": "RO",
"orderDate": "2024-05-16 08:00:00.0",
"createdDate": "2024-05-16 01:31:26.0",
"closeDate": "2024-05-16 01:32:18.0",
"orderStatus": "C",
"invoiceURL": "https://payment-files.mykaarma.com/...",
"daUuid": null,
"daFName": null,
"daLName": null
},
"assignee": {
"uuid": "user-uuid",
"fname": "Chetan",
"lname": "Rawat"
},
"taskName": "Air Conditioner/Heater Recommendation, Fluid Leak Repair Recommendation",
"lastVisitedDate": null,
"declineInfo": {
"dmsID": 9,
"hasReturned": null,
"mpiUUID": "mpi-uuid",
"declines": [
{
"declinedServiceID": null,
"opcode": null,
"opcodeDescription": null,
"internalName": "Air Conditioner/Heater Recommendation",
"internalDescription": "Air Conditioner Refrigerant Recharge and Leak Test",
"displayName": "Air Conditioner/Heater Recommendation",
"displayDescription": "Air Conditioner Refrigerant Recharge and Leak Test",
"type": "DeclinedRecommendation",
"source": "SERVICECART",
"recommendationUUID": "recommendation-uuid",
"amount": 253.0,
"status": null
}
],
"mpiLink": "scct.mkvwa42.com/p/lsfkjeorijrdes.html"
},
"dueDate": "2024-05-30T18:29:59.000+00:00",
"insertDate": "2024-05-15T18:30:00.000+00:00",
"textModeCurrentStatus": null,
"emailModeCurrentStatus": null,
"textMessageUuid": null,
"textMessageFollowupStatus": null,
"emailMessageUuid": "email-message-uuid",
"emailMessageFollowupStatus": "Complete",
"callMessageUuid": null,
"callMessageFollowupStatus": null,
"followedUpStatus": "Complete",
"isValid": true,
"appointments": null,
"noShowAppointmentInfo": null
}
]
}

Response Fields

FieldTypeDescription
statusCodeintegerHTTP status code (200 for success)
errorobjectError details if the request failed
warningsarrayWarning messages if any
followUpsListarrayList of follow-up objects

Follow-up Object Key Fields

FieldTypeDescription
uuidstringUnique identifier of the follow-up task
dealerUuidstringUnique identifier of the dealer
dealerDepartmentUuidstringUnique identifier of the dealer's department
customerUuidstringUnique identifier of the customer for whom the task belongs
customerFNamestringCustomer's first name
customerLNamestringCustomer's last name
phoneNumberobjectCustomer's primary cell details
emailAddressobjectCustomer's primary email details
sourceobjectThe task type information (e.g., Declined Services, No Show)
vehicleobjectVehicle details
dealerOrderobjectDetails of the dealer order if the task is generated from it (present in the case of declined services)
assigneeobjectDetails of the user the task is assigned to
taskNamestringTask name
declineInfoobjectDetails of the recommendations that are declined by the customer in the MPI
dueDatestringDue date of the task (in UTC)
insertDatestringInsert date of the task (in UTC)
textMessageFollowupStatusstringStatus if the follow-up is completed through text
emailMessageFollowupStatusstringStatus if the follow-up is completed through email
callMessageFollowupStatusstringStatus if the follow-up is completed through call
followedUpStatusstringStatus if the follow-up is completed through any of the modes
appointmentsarrayList of appointments scheduled for the customer
noShowAppointmentInfoobjectInformation of the appointment through which the no show follow-up was created (only in the case of no show or missed appointment)