Confirm appointment
curl --request POST \
--url https://brunkhorst.connectors.aicoflow.com/api/booking/confirm \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"car": {
"license_plate": "<string>",
"mileage": "<string>",
"make": "<string>",
"model": "<string>",
"type": "<string>"
},
"customer": {
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"surname": "<string>",
"phone": "<string>",
"phones": [
{
"number": "<string>",
"type": "mobile"
}
]
},
"appointment_id": "<string>",
"session_id": "<string>",
"comment": "",
"customer_wants_to_wait": false,
"customer_needs_rental": false,
"storage_number": ""
}
'import requests
url = "https://brunkhorst.connectors.aicoflow.com/api/booking/confirm"
payload = {
"car": {
"license_plate": "<string>",
"mileage": "<string>",
"make": "<string>",
"model": "<string>",
"type": "<string>"
},
"customer": {
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"surname": "<string>",
"phone": "<string>",
"phones": [
{
"number": "<string>",
"type": "mobile"
}
]
},
"appointment_id": "<string>",
"session_id": "<string>",
"comment": "",
"customer_wants_to_wait": False,
"customer_needs_rental": False,
"storage_number": ""
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
car: {
license_plate: '<string>',
mileage: '<string>',
make: '<string>',
model: '<string>',
type: '<string>'
},
customer: {
email: '<string>',
first_name: '<string>',
last_name: '<string>',
surname: '<string>',
phone: '<string>',
phones: [{number: '<string>', type: 'mobile'}]
},
appointment_id: '<string>',
session_id: '<string>',
comment: '',
customer_wants_to_wait: false,
customer_needs_rental: false,
storage_number: ''
})
};
fetch('https://brunkhorst.connectors.aicoflow.com/api/booking/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://brunkhorst.connectors.aicoflow.com/api/booking/confirm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'car' => [
'license_plate' => '<string>',
'mileage' => '<string>',
'make' => '<string>',
'model' => '<string>',
'type' => '<string>'
],
'customer' => [
'email' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'surname' => '<string>',
'phone' => '<string>',
'phones' => [
[
'number' => '<string>',
'type' => 'mobile'
]
]
],
'appointment_id' => '<string>',
'session_id' => '<string>',
'comment' => '',
'customer_wants_to_wait' => false,
'customer_needs_rental' => false,
'storage_number' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://brunkhorst.connectors.aicoflow.com/api/booking/confirm"
payload := strings.NewReader("{\n \"car\": {\n \"license_plate\": \"<string>\",\n \"mileage\": \"<string>\",\n \"make\": \"<string>\",\n \"model\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"customer\": {\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"surname\": \"<string>\",\n \"phone\": \"<string>\",\n \"phones\": [\n {\n \"number\": \"<string>\",\n \"type\": \"mobile\"\n }\n ]\n },\n \"appointment_id\": \"<string>\",\n \"session_id\": \"<string>\",\n \"comment\": \"\",\n \"customer_wants_to_wait\": false,\n \"customer_needs_rental\": false,\n \"storage_number\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://brunkhorst.connectors.aicoflow.com/api/booking/confirm")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"car\": {\n \"license_plate\": \"<string>\",\n \"mileage\": \"<string>\",\n \"make\": \"<string>\",\n \"model\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"customer\": {\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"surname\": \"<string>\",\n \"phone\": \"<string>\",\n \"phones\": [\n {\n \"number\": \"<string>\",\n \"type\": \"mobile\"\n }\n ]\n },\n \"appointment_id\": \"<string>\",\n \"session_id\": \"<string>\",\n \"comment\": \"\",\n \"customer_wants_to_wait\": false,\n \"customer_needs_rental\": false,\n \"storage_number\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://brunkhorst.connectors.aicoflow.com/api/booking/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"car\": {\n \"license_plate\": \"<string>\",\n \"mileage\": \"<string>\",\n \"make\": \"<string>\",\n \"model\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"customer\": {\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"surname\": \"<string>\",\n \"phone\": \"<string>\",\n \"phones\": [\n {\n \"number\": \"<string>\",\n \"type\": \"mobile\"\n }\n ]\n },\n \"appointment_id\": \"<string>\",\n \"session_id\": \"<string>\",\n \"comment\": \"\",\n \"customer_wants_to_wait\": false,\n \"customer_needs_rental\": false,\n \"storage_number\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Booking
Confirm appointment
Complete the booking by providing customer and vehicle details. This is step 2 of the two-step booking process.
Required information:
- Vehicle: License plate, type/make/model, mileage
- Customer: Name (surname or first+last), email, at least one phone number
Appointment ID Resolution:
- If
appointment_idis provided, it will be used directly - Otherwise, the API looks up the ID stored during
/booking/reserveusing thesession_id - If neither is found, the request fails
POST
/
api
/
booking
/
confirm
Confirm appointment
curl --request POST \
--url https://brunkhorst.connectors.aicoflow.com/api/booking/confirm \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"car": {
"license_plate": "<string>",
"mileage": "<string>",
"make": "<string>",
"model": "<string>",
"type": "<string>"
},
"customer": {
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"surname": "<string>",
"phone": "<string>",
"phones": [
{
"number": "<string>",
"type": "mobile"
}
]
},
"appointment_id": "<string>",
"session_id": "<string>",
"comment": "",
"customer_wants_to_wait": false,
"customer_needs_rental": false,
"storage_number": ""
}
'import requests
url = "https://brunkhorst.connectors.aicoflow.com/api/booking/confirm"
payload = {
"car": {
"license_plate": "<string>",
"mileage": "<string>",
"make": "<string>",
"model": "<string>",
"type": "<string>"
},
"customer": {
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"surname": "<string>",
"phone": "<string>",
"phones": [
{
"number": "<string>",
"type": "mobile"
}
]
},
"appointment_id": "<string>",
"session_id": "<string>",
"comment": "",
"customer_wants_to_wait": False,
"customer_needs_rental": False,
"storage_number": ""
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
car: {
license_plate: '<string>',
mileage: '<string>',
make: '<string>',
model: '<string>',
type: '<string>'
},
customer: {
email: '<string>',
first_name: '<string>',
last_name: '<string>',
surname: '<string>',
phone: '<string>',
phones: [{number: '<string>', type: 'mobile'}]
},
appointment_id: '<string>',
session_id: '<string>',
comment: '',
customer_wants_to_wait: false,
customer_needs_rental: false,
storage_number: ''
})
};
fetch('https://brunkhorst.connectors.aicoflow.com/api/booking/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://brunkhorst.connectors.aicoflow.com/api/booking/confirm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'car' => [
'license_plate' => '<string>',
'mileage' => '<string>',
'make' => '<string>',
'model' => '<string>',
'type' => '<string>'
],
'customer' => [
'email' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'surname' => '<string>',
'phone' => '<string>',
'phones' => [
[
'number' => '<string>',
'type' => 'mobile'
]
]
],
'appointment_id' => '<string>',
'session_id' => '<string>',
'comment' => '',
'customer_wants_to_wait' => false,
'customer_needs_rental' => false,
'storage_number' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://brunkhorst.connectors.aicoflow.com/api/booking/confirm"
payload := strings.NewReader("{\n \"car\": {\n \"license_plate\": \"<string>\",\n \"mileage\": \"<string>\",\n \"make\": \"<string>\",\n \"model\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"customer\": {\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"surname\": \"<string>\",\n \"phone\": \"<string>\",\n \"phones\": [\n {\n \"number\": \"<string>\",\n \"type\": \"mobile\"\n }\n ]\n },\n \"appointment_id\": \"<string>\",\n \"session_id\": \"<string>\",\n \"comment\": \"\",\n \"customer_wants_to_wait\": false,\n \"customer_needs_rental\": false,\n \"storage_number\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://brunkhorst.connectors.aicoflow.com/api/booking/confirm")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"car\": {\n \"license_plate\": \"<string>\",\n \"mileage\": \"<string>\",\n \"make\": \"<string>\",\n \"model\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"customer\": {\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"surname\": \"<string>\",\n \"phone\": \"<string>\",\n \"phones\": [\n {\n \"number\": \"<string>\",\n \"type\": \"mobile\"\n }\n ]\n },\n \"appointment_id\": \"<string>\",\n \"session_id\": \"<string>\",\n \"comment\": \"\",\n \"customer_wants_to_wait\": false,\n \"customer_needs_rental\": false,\n \"storage_number\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://brunkhorst.connectors.aicoflow.com/api/booking/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"car\": {\n \"license_plate\": \"<string>\",\n \"mileage\": \"<string>\",\n \"make\": \"<string>\",\n \"model\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"customer\": {\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"surname\": \"<string>\",\n \"phone\": \"<string>\",\n \"phones\": [\n {\n \"number\": \"<string>\",\n \"type\": \"mobile\"\n }\n ]\n },\n \"appointment_id\": \"<string>\",\n \"session_id\": \"<string>\",\n \"comment\": \"\",\n \"customer_wants_to_wait\": false,\n \"customer_needs_rental\": false,\n \"storage_number\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Body
application/json
Request model for confirming an appointment.
Car information model.
Show child attributes
Show child attributes
Customer information model.
Show child attributes
Show child attributes
Response
Confirmation status
⌘I