Update loaner
End-point to update loaner vehicle for a trip.
Path Parameters
tripUUID string required
Unique identifier for a trip
Header Parameters
authorization string required
Base64 encoded basic auth
application/json
Request Body required
Request to update loaner in a trip
customerDlVerified boolean
customerInsuranceVerified boolean
dealerDepartmentUUIDList string[]
eventVersion int64
isDropCar boolean
loanerDescription string
loanerModel string
loanerVehicleInspectionId string
loanerVehicleRequired boolean
loanerVehicleUuid string
parentEventUUID string
requesterUserUUID string
source string
Possible values: [DEALER_APP
, WEB
, PND_API
, EXTERNAL_CONTROLLER
]
swappedLoanerDescription string
swappedLoanerVehicleUuid string
vehicleBookingStatus string
Possible values: [REQUEST_RESERVATION
, RESERVATION_APPROVED
, RESERVATION_CONFIRMED
, CANCEL_RESERVATION
, RESERVATION_CANCELLED
]
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/trip/:tripUUID/update/loaner
Request
Request
curl / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
python / requests
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
go / native
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
nodejs / axios
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
ruby / Net::HTTP
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
csharp / RestSharp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
php / cURL
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
java / OkHttp
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'
powershell / RestMethod
curl -L -X POST '//api.mykaarma.com/pickupdelivery/v3/trip/:tripUUID/update/loaner' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerDlVerified": true,
"customerInsuranceVerified": true,
"dealerDepartmentUUIDList": [
"string"
],
"eventVersion": 0,
"isDropCar": true,
"loanerDescription": "string",
"loanerModel": "string",
"loanerVehicleInspectionId": "string",
"loanerVehicleRequired": true,
"loanerVehicleUuid": "string",
"parentEventUUID": "string",
"requesterUserUUID": "string",
"source": "DEALER_APP",
"swappedLoanerDescription": "string",
"swappedLoanerVehicleUuid": "string",
"vehicleBookingStatus": "REQUEST_RESERVATION"
}'