Download OpenAPI specification:
These are the API to integrate with the Carvoilà platform.
Authentication
Use your secret key directly as a Bearer token:
Authorization: Bearer your_secret_key_here
This document is generated from the platform's validation schemas — do not edit it by hand. Run pnpm openapi:generate to regenerate.
Retrieve the services of the authenticated organization, sorted by pickup timestamp (newest first).
| page | integer >= 1 Default: 1 Page number for pagination |
| limit | integer [ 1 .. 100 ] Default: 10 Number of services per page |
{- "data": [
- {
- "id": "string",
- "serviceCode": "string",
- "serviceType": "PICKUP",
- "status": "WAITING",
- "customer": "string",
- "customerEmail": "string",
- "customerPhoneNumber": "string",
- "departureAddress": {
- "address": "string",
- "placeId": "string"
}, - "destinationAddress": {
- "address": "string",
- "placeId": "string"
}, - "pickupTimestamp": "2019-08-24T14:15:22Z",
- "pickupTimeType": "FIXED",
- "pickupTimestampEnd": "2019-08-24T14:15:22Z",
- "deliveryTimestamp": "2019-08-24T14:15:22Z",
- "customerSelfCheckInOut": true,
- "thirdPartyCheckInOutName": "string",
- "thirdPartyCheckInOutPhoneNumber": "string",
- "licensePlate": "string",
- "notes": "string",
- "additionalDriverActivitiesText": "string",
- "vehicleBrand": "string",
- "vehicleModel": "string",
- "vehicleType": "CAR",
- "vehicleVIN": "string",
- "verificationCode": "string",
- "partnerProcessingCode": "string",
- "washVehicle": true,
- "driverName": "string",
- "driverPhoneNumber": "string",
- "driverEmail": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "acceptedAt": "2019-08-24T14:15:22Z",
- "driverReadyAt": "2019-08-24T14:15:22Z",
- "driverStartedAt": "2019-08-24T14:15:22Z",
- "driverDoneAt": "2019-08-24T14:15:22Z",
- "serviceFinishedAt": "2019-08-24T14:15:22Z",
- "priceEstimate": 0,
- "requestPremiumDriver": true,
- "vehiclePropulsionType": "VEHICLE_ICE"
}
], - "totalPages": 0,
- "page": 1,
- "limit": 1
}Create one or more services for a location of the authenticated organization. Only pickupTimeType FIXED is accepted; the pickup must be at least 6 hours in the future. Returns the IDs of the created services.
Services to create
| locationCode required | string non-empty |
required | Array of objects |
{- "locationCode": "string",
- "services": [
- {
- "groupType": "PICKUP",
- "type": "PICKUP",
- "service": {
- "departureAddress": {
- "address": "string",
- "placeId": "string"
}, - "destinationAddress": {
- "address": "string",
- "placeId": "string"
}, - "code": "string",
- "verificationCode": "string",
- "date": "2019-08-24T14:15:22Z",
- "pickupTimeType": "FIXED",
- "time": "string",
- "endTime": "string",
- "customerSelfCheckInOut": true,
- "thirdPartyCheckInOutName": "string",
- "thirdPartyCheckInOutPhoneNumber": "string",
- "notes": "string",
- "requestPremiumDriver": true,
- "washVehicle": true,
- "distanceAB": 0
}, - "customer": {
- "name": "string",
- "phoneNumber": "string",
- "email": "user@example.com"
}, - "vehicle": {
- "brand": "string",
- "type": "CAR",
- "propulsionType": "VEHICLE_ICE",
- "model": "string",
- "licensePlate": "string",
- "vin": "string",
- "partnerProcessingCode": "string",
- "requirePartnerProcessingCode": true
}, - "notes": "string",
- "additionalDriverActivitiesText": "string"
}
]
}{- "data": [
- "string"
]
}Calculate the cost of one or more services without creating them. Returns the cost breakdown plus partner resale fields (markupAmount, vatAmount, partnerResaleTotal) when a markup is configured for the location.
Services to quote
| locationCode required | string non-empty |
required | Array of objects |
{- "locationCode": "string",
- "services": [
- {
- "service": {
- "departureAddress": {
- "address": "string",
- "placeId": "string"
}, - "destinationAddress": {
- "address": "string",
- "placeId": "string"
}, - "date": "2019-08-24T14:15:22Z",
- "time": "string",
- "endTime": "string",
- "pickupTimeType": "FIXED",
- "washVehicle": true,
- "requestPremiumDriver": true,
- "distanceAB": 0
}, - "vehicle": {
- "type": "CAR"
}, - "groupType": "PICKUP",
- "type": "PICKUP"
}
]
}{- "data": [
- {
- "type": "PICKUP",
- "vehicleType": "CAR",
- "distanceAB": 0,
- "pickupTimeType": "FIXED",
- "cost": {
- "logisticCoefficient": 0,
- "lastMinuteCoefficient": 0,
- "distanceCost": 0,
- "fullDistanceCost": 0,
- "logisticCost": 0,
- "lastMinuteCost": 0,
- "superLastMinuteCost": 0,
- "washVehicleCost": 0,
- "pitStopWaitingTimeCost": 0,
- "requestPremiumDriverCost": 0,
- "totalCost": 0,
- "driverCost": 0,
- "vehicleTypeCost": 0,
- "baseServiceCost": 0,
- "totalServiceCost": 0,
- "isSuperLastMinute": true
}, - "markupAmount": 0,
- "vatAmount": 0,
- "partnerResaleTotal": 0
}
]
}Retrieve a service of the authenticated organization.
| id required | string non-empty Example: V1StGXR8_Z5jdHi6B-myT Service ID (nanoid) |
{- "data": {
- "id": "string",
- "serviceCode": "string",
- "serviceType": "PICKUP",
- "status": "WAITING",
- "customer": "string",
- "customerEmail": "string",
- "customerPhoneNumber": "string",
- "departureAddress": {
- "address": "string",
- "placeId": "string"
}, - "destinationAddress": {
- "address": "string",
- "placeId": "string"
}, - "pickupTimestamp": "2019-08-24T14:15:22Z",
- "pickupTimeType": "FIXED",
- "pickupTimestampEnd": "2019-08-24T14:15:22Z",
- "deliveryTimestamp": "2019-08-24T14:15:22Z",
- "customerSelfCheckInOut": true,
- "thirdPartyCheckInOutName": "string",
- "thirdPartyCheckInOutPhoneNumber": "string",
- "licensePlate": "string",
- "notes": "string",
- "additionalDriverActivitiesText": "string",
- "vehicleBrand": "string",
- "vehicleModel": "string",
- "vehicleType": "CAR",
- "vehicleVIN": "string",
- "verificationCode": "string",
- "partnerProcessingCode": "string",
- "washVehicle": true,
- "driverName": "string",
- "driverPhoneNumber": "string",
- "driverEmail": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "acceptedAt": "2019-08-24T14:15:22Z",
- "driverReadyAt": "2019-08-24T14:15:22Z",
- "driverStartedAt": "2019-08-24T14:15:22Z",
- "driverDoneAt": "2019-08-24T14:15:22Z",
- "serviceFinishedAt": "2019-08-24T14:15:22Z",
- "priceEstimate": 0,
- "requestPremiumDriver": true,
- "vehiclePropulsionType": "VEHICLE_ICE"
}
}Update a service of the authenticated organization. Only services in WAITING or ACCEPTED status can be updated.
| id required | string non-empty Example: V1StGXR8_Z5jdHi6B-myT Service ID (nanoid) |
Updated service details
required | object |
required | object |
required | object |
| notes | string |
| additionalDriverActivitiesText | string |
{- "service": {
- "departureAddress": {
- "address": "string",
- "placeId": "string"
}, - "destinationAddress": {
- "address": "string",
- "placeId": "string"
}, - "code": "string",
- "verificationCode": "string",
- "date": "2019-08-24T14:15:22Z",
- "pickupTimeType": "FIXED",
- "time": "string",
- "endTime": "string",
- "customerSelfCheckInOut": true,
- "thirdPartyCheckInOutName": "string",
- "thirdPartyCheckInOutPhoneNumber": "string",
- "notes": "string",
- "requestPremiumDriver": true,
- "washVehicle": true,
- "distanceAB": 0
}, - "customer": {
- "name": "string",
- "phoneNumber": "string",
- "email": "user@example.com"
}, - "vehicle": {
- "brand": "string",
- "type": "CAR",
- "propulsionType": "VEHICLE_ICE",
- "model": "string",
- "licensePlate": "string",
- "vin": "string",
- "partnerProcessingCode": "string",
- "requirePartnerProcessingCode": true
}, - "notes": "string",
- "additionalDriverActivitiesText": "string"
}{- "data": {
- "id": "string",
- "serviceCode": "string",
- "serviceType": "PICKUP",
- "status": "WAITING",
- "customer": "string",
- "customerEmail": "string",
- "customerPhoneNumber": "string",
- "departureAddress": {
- "address": "string",
- "placeId": "string"
}, - "destinationAddress": {
- "address": "string",
- "placeId": "string"
}, - "pickupTimestamp": "2019-08-24T14:15:22Z",
- "pickupTimeType": "FIXED",
- "pickupTimestampEnd": "2019-08-24T14:15:22Z",
- "deliveryTimestamp": "2019-08-24T14:15:22Z",
- "customerSelfCheckInOut": true,
- "thirdPartyCheckInOutName": "string",
- "thirdPartyCheckInOutPhoneNumber": "string",
- "licensePlate": "string",
- "notes": "string",
- "additionalDriverActivitiesText": "string",
- "vehicleBrand": "string",
- "vehicleModel": "string",
- "vehicleType": "CAR",
- "vehicleVIN": "string",
- "verificationCode": "string",
- "partnerProcessingCode": "string",
- "washVehicle": true,
- "driverName": "string",
- "driverPhoneNumber": "string",
- "driverEmail": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "acceptedAt": "2019-08-24T14:15:22Z",
- "driverReadyAt": "2019-08-24T14:15:22Z",
- "driverStartedAt": "2019-08-24T14:15:22Z",
- "driverDoneAt": "2019-08-24T14:15:22Z",
- "serviceFinishedAt": "2019-08-24T14:15:22Z",
- "priceEstimate": 0,
- "requestPremiumDriver": true,
- "vehiclePropulsionType": "VEHICLE_ICE"
}
}Cancel a service of the authenticated organization. Only services in WAITING or ACCEPTED status can be canceled.
| id required | string non-empty Example: V1StGXR8_Z5jdHi6B-myT Service ID (nanoid) |
{- "code": "string",
- "message": "string",
- "details": [
- { }
]
}Retrieve the locations of the authenticated organization.
{- "data": [
- {
- "id": "string",
- "name": "string",
- "address": "string",
- "addressPlaceId": "string",
- "locationCode": "string"
}
], - "totalCount": 0
}