Force complete trip
End-point to force complete a trip. This end-point is generally used for trips which weren't marked as completed from mobile apps.
Header Parameters
authorization string required
Base64 encoded basic auth
application/json
Request Body required
Force complete request
dealerDepartmentUUIDList string[]
endTripTime date-time
requesterUserUUID string
source string
Possible values: [DEALER_APP
, WEB
, PND_API
, EXTERNAL_CONTROLLER
]
tripUUID string
version int64
Responses
- 200
- 201
- 401
- 403
- 404
OK
application/json
Schema
Example (from schema)
Schema
error object
status boolean
statusCode int32
warnings object[]
{
"error": {
"errorCode": "string",
"errorDescription": "string",
"metadata": {}
},
"status": true,
"statusCode": 0,
"warnings": [
{
"warningCode": "string",
"warningDescription": "string"
}
]
}
Created
Unauthorized
Forbidden
Not Found
POST /v3/complete/event
Request
Request
curl / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
python / requests
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
go / native
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
nodejs / axios
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
ruby / Net::HTTP
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
csharp / RestSharp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
php / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
java / OkHttp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'
powershell / RestMethod
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/complete/event' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dealerDepartmentUUIDList": [
"string"
],
"endTripTime": "2025-04-07T07:51:25.410Z",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"tripUUID": "string",
"version": 0
}'