What it is for
For platforms that sell parking bookings paid in advance (booking websites, parking apps, agencies, hotels). When the booking is paid in your system, you send it to CloudPark with the period and the amount. CloudPark registers the customer with the booking plan and returns an access code; you generate a QR Code from it and give it to the customer, who uses it at the parking lot's entrance and exit.
Flow
POST /reserveparking.message.Before you start
The parking lot must have, in the CloudPark Dashboard, with these exact names:
- a plan of the stay type named
Reserva Online; - a payment method named
Reserva Online(this is where the booking amount enters the financial records).
Without them, the API responds 400 explaining what is missing. If the customer stays past the end time, the extra time is charged at the exit using the plan's price table (or the parking lot's default table).
Create a booking
/api/v1/integration/reserveparking| Field | Type | Description |
|---|---|---|
initial_daterequired |
string | Start of the booking, in the parking lot's local time, format YYYY-MM-DD HH:MM:SS (e.g. 2026-12-20 08:00:00). |
final_daterequired |
string | End of the booking, same format. |
license_platerequired |
string | Vehicle license plate, without a dash. |
namerequired |
string | Customer's first name. |
last_namerequired |
string | Customer's last name. |
total_price_valuerequired |
number | Amount paid for the booking, in reais. |
fixed_idoptional |
string | Access code you want to use in the QR Code. If you do not send it, CloudPark generates one (or reuses the vehicle's, if the customer already exists). |
curl -X POST https://sandbox.cloudpark.com.br/api/v1/integration/reserveparking \
-H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" \
-H "Content-Type: application/json" \
-d '{
"initial_date": "2026-12-20 08:00:00",
"final_date": "2026-12-22 18:00:00",
"license_plate": "ABC1234",
"name": "Maria",
"last_name": "Souza",
"total_price_value": 120.0
}'
import requests
response = requests.post(
"https://sandbox.cloudpark.com.br/api/v1/integration/reserveparking",
json={
"initial_date": "2026-12-20 08:00:00",
"final_date": "2026-12-22 18:00:00",
"license_plate": "ABC1234",
"name": "Maria",
"last_name": "Souza",
"total_price_value": 120.0,
},
headers={"Authorization": "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"},
timeout=15,
)
if response.status_code == 200:
access_code = response.json()["message"] # generate the QR Code from this value
else:
print("Booking rejected:", response.json()["message"])
const response = await fetch("https://sandbox.cloudpark.com.br/api/v1/integration/reserveparking", {
method: "POST",
headers: {
"Authorization": "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b",
"Content-Type": "application/json",
},
body: JSON.stringify({
initial_date: "2026-12-20 08:00:00",
final_date: "2026-12-22 18:00:00",
license_plate: "ABC1234",
name: "Maria",
last_name: "Souza",
total_price_value: 120.0,
}),
});
const { message } = await response.json();
console.log(response.ok ? `QR Code value: ${message}` : `Booking rejected: ${message}`);
{
"message": "1cad191e-462e-4bbb-8a9c-c5dbe"
}
On success, message contains the customer's access code. Generate a QR Code with this text and send it to the customer (email, app, voucher).
Responses
| HTTP | When it happens | Response |
|---|---|---|
| 200 | Booking created. message is the code for the QR Code. |
{"message": "1cad191e-462e-4bbb-8a9c-c5dbe"} |
| 400 | A required field is missing. | {"message": "Devem ser informados os parâmetros: 'initial_date', 'final_date', 'license_plate', 'name', 'last_name', 'total_price_value'"} |
| 400 | The parking lot does not have the Reserva Online plan. |
{"message": "O plano 'Reserva Online' não existe, por favor crie pelo Dashboard."} |
| 400 | The parking lot does not have the Reserva Online payment method. |
{"message": "O meio de pagamento 'Reserva Online' não existe, por favor crie pelo Dashboard."} |
| 400 | The fixed_id you sent already belongs to another customer. |
{"message": "fixed_id já utilizado por outro cliente."} |
| 400 | Invalid data (e.g. date in the wrong format). | {"message": "Não foi possível aplicar reserva online"} |
| 401 | Token missing or invalid. | {"detail": "Token inválido."} |
Test data (sandbox)
| Data | Result |
|---|---|
All fields, dates in the right format and final_date after initial_date | 200: returns a new code (or the fixed_id you sent). |
| A required field missing | 400. |
Date not in the YYYY-MM-DD HH:MM:SS format | 400: the booking could not be applied. |
fixed_id 4094124292 | 400: fixed_id belongs to another customer. |
FAQ
Can I cancel or change a booking through the API?
No. Cancellations and changes are made by the parking lot in the CloudPark Dashboard.
Can the customer enter before the booked time?
Entering and leaving outside the period follow the rules of the Reserva Online plan configured by the parking lot. Time after the end of the booking is charged at the exit.
Can I use my own code in the QR Code?
Yes: send it in fixed_id. It must be unique at the parking lot.
Try it on the sandbox
Send the real request to the sandbox and see the response right here. Pick a test scenario or edit the fields; the test token is already filled in.
/api/v1/integration/reserveparking
Same call in cURL