CloudPark CloudPark Integration API

You call CloudPark

Customers and Plans Customer

List, create, update and block registered customers (monthly, daily), with their vehicles, cards and plan. Look up the plans available at the parking lot.

What it is for

It keeps the parking lot's customer records (monthly customers, registered customers, employees, members) in sync with your system. With it you:

  • list the registered customers, with plan, license plates and due date;
  • create or update a customer, with their vehicles (license plate and card/tag) and plan;
  • block or unblock a customer's access;
  • look up the plans available at the parking lot, to know which plan code to send.

Would you rather have CloudPark fetch your customer list on its own every day? See Customer Sync. For prepaid customers, the balance and top-ups are in the Prepaid API.

List customers

GET/api/v1/integration/customer

Returns all the parking lot's customers, in alphabetical order, in a single list (no pagination).

curl https://sandbox.cloudpark.com.br/api/v1/integration/customer \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
import requests

BASE_URL = "https://sandbox.cloudpark.com.br/api/v1/integration"
HEADERS = {"Authorization": "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"}

customers = requests.get(f"{BASE_URL}/customer", headers=HEADERS, timeout=30).json()
for customer in customers:
    print(customer["id"], customer["name"], customer["plates"])
// npm install json-bigint: reads the id as a string, without losing digits
import JSONbig from "json-bigint";
const JSONbigString = JSONbig({ storeAsString: true });

const BASE_URL = "https://sandbox.cloudpark.com.br/api/v1/integration";
const headers = { "Authorization": "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" };

const response = await fetch(`${BASE_URL}/customer`, { headers });
const customers = JSONbigString.parse(await response.text());
customers.forEach((c) => console.log(c.id, c.name, c.plates));
Response 200
[
  {
    "id": 821424362,
    "name": "João Silva",
    "plan_name": "Mensalista",
    "due_date": "2026-12-05T03:00:00Z",
    "plates": "ABC1234, ABC2244",
    "email": "joao@example.com",
    "phone": "47999990000",
    "expiry_date": 10,
    "places_count": 1,
    "plan_kind": "MONTHLY"
  }
]
FieldTypeDescription
id integer Customer code at CloudPark. It can have up to 19 digits: store it as a string and, in JavaScript, read the response without losing precision (see Large IDs).
name string Full name.
plan_name string Plan name. Empty if the customer has no plan.
due_date date/time Until when the plan is paid (due date), in UTC (ending in Z). May be null.
plates string License plates of the customer's vehicles, separated by commas.
email string Email.
phone string Phone number, digits only.
expiry_date integer Day of the month the plan is due (1 to 28). Only for customers with a plan.
places_count integer Number of parking spaces the customer is entitled to. Only for customers with a plan.
plan_kind string MONTHLY (monthly plan), FOR_DAY (daily plan) or null (no plan or another kind of plan).

Create or update a customer

POST/api/v1/integration/customer

If a customer with the given id already exists, their record is updated (response 200). Otherwise, a new customer is created (response 201). The field names are in Portuguese.

FieldTypeDescription
idoptional string (numeric id) Customer code. It can have up to 19 digits: send it as a string (see Large IDs). Always send the customer's code in your system: CloudPark uses the same number, which lets you update the record later. Without id, each call creates a new customer.
nomerequired string First name.
sobrenomerequired string Last name. The full name is nome + space + sobrenome.
bloqueadorequired boolean Blocked: true blocks the customer's access to the parking lot; false allows it.
veiculosoptional list The customer's vehicles: [{"placa": "ABC1234", "tag": "0123456789"}]. placa is the vehicle's license plate and tag is the access card or tag number. Both keys are required in each vehicle: send "" when there is no plate or card. Without one of them the API returns 400, but the customer has already been saved without vehicles; if you did not send id, each new attempt creates another customer. The list you send replaces the current one. If you do not send the field, the vehicles do not change (useful to only block or unblock).
plano_idoptional string (numeric ID) Plan code, sent as a string, exactly as it comes in List plans (e.g. "709601794"). See Large IDs.
planooptional string Exact plan name, as an alternative to plano_id.
dia_vencimentooptional integer For monthly plans: day of the month the plan is due, from 1 to 28 (also accepted as expiry_date). Default: today's day.
qtd_vagasoptional integer For monthly plans: number of parking spaces (also accepted as places_count), when the plan does not define it. In practice it is almost never applied: a new customer is created with 1 space, and the field only applies to an existing customer with 0 spaces. To get more spaces, use a plan that defines the number.
emailoptional string Email.
phoneoptional string Phone number. Only the digits are stored.

How the plan is applied

Plan typeWhat happens
Daily, with an amount of R$ 0.00The plan is applied to the customer.
Monthly / Monthly with bank slipsThe plan is applied with the given due day. Blocking follows the bloqueado field. The spaces come from the plan. If the plan does not define them, the customer keeps the spaces they already have (1 for a new customer); qtd_vagas only applies to an existing customer with 0 spaces.
Other types (per access, prepaid, stay) or a daily plan with an amountThe plan is not applied by the integration; the rest of the record is saved. Apply these plans through the CloudPark Dashboard.
Neither plano nor plano_idThe customer has no plan, unless the parking lot has set a default plan for integration customers.

If the plan you send does not exist, nothing is saved and the response is 400.

Examples

# Register a monthly customer with two vehicles
curl -X POST https://sandbox.cloudpark.com.br/api/v1/integration/customer \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "821424362",
    "nome": "João",
    "sobrenome": "Silva",
    "bloqueado": false,
    "plano_id": "709601794",
    "dia_vencimento": 10,
    "email": "joao@example.com",
    "veiculos": [
      {"placa": "ABC1234", "tag": "0123456789"},
      {"placa": "ABC2244", "tag": ""}
    ]
  }'

# Only block (without touching the vehicles)
curl -X POST https://sandbox.cloudpark.com.br/api/v1/integration/customer \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" \
  -H "Content-Type: application/json" \
  -d '{"id": "821424362", "nome": "João", "sobrenome": "Silva", "bloqueado": true}'
payload = {
    "id": "821424362",
    "nome": "João",
    "sobrenome": "Silva",
    "bloqueado": False,
    "plano_id": "709601794",
    "dia_vencimento": 10,
    "veiculos": [{"placa": "ABC1234", "tag": "0123456789"}],
}
response = requests.post(f"{BASE_URL}/customer", json=payload, headers=HEADERS, timeout=15)
if response.status_code in (200, 201):
    print("Saved. Customer code:", response.json()["id"])
else:
    print("Error:", response.json().get("message"))
const response = await fetch(`${BASE_URL}/customer`, {
  method: "POST",
  headers: { ...headers, "Content-Type": "application/json" },
  body: JSON.stringify({
    id: "821424362",
    nome: "João",
    sobrenome: "Silva",
    bloqueado: false,
    plano_id: "709601794",
    dia_vencimento: 10,
    veiculos: [{ placa: "ABC1234", tag: "0123456789" }],
  }),
});
console.log(response.status, await response.json());

Responses

HTTPWhen it happensResponse
200 Existing customer updated. {"id": 821424362}
201 New customer created. The id comes back as you sent it (a string, if you sent a string); in the 200 it comes from the database, as a number. {"id": "821424399"}
400 The given plan does not exist. {"message": "Plano informado não existe"}
400 A required field is missing. The message has the field name. {"message": "'sobrenome'"}
400 Other invalid data. The reason is in the message. {"message": "Motivo"}
401 Token missing or invalid. {"detail": "Token inválido."}

List plans

GET/api/v1/integration/customerplan

Returns the parking lot's plans. Use the id in the plano_id field when registering a customer. The response is paginated: the plans are in results.

curl https://sandbox.cloudpark.com.br/api/v1/integration/customerplan \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
Response 200
{
  "count": 4,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "709601794",
      "name": "Mensalista",
      "kind": "2",
      "value": 250.0,
      "day_count": 0,
      "access_count": 0,
      "places_count": 1,
      "max_stay_minutes": 0,
      "validate_to_exit": false,
      "visible_in_operation": true,
      "contract": null,
      "time_bands": [],
      "patio": []
    }
  ]
}

Main fields of each plan (the response has other internal configuration fields, which you can ignore):

FieldTypeDescription
id string Plan code. Send it the same way, as a string, in plano_id.
name string Plan name (this is the value accepted in the plano field).
kind string Type: 0 daily · 1 per access · 2 monthly · 3 monthly with bank slips · 4 stay · 5 prepaid.
value number Plan price.
day_count integer Number of days (daily plans).
access_count integer Number of accesses (per-access plans).
places_count integer Number of parking spaces in the plan.
max_stay_minutes integer Maximum stay, in minutes; anything beyond it is charged as a regular ticket. 0 = no limit.
can_enter_without_balance boolean Prepaid: whether the customer can enter with a zero balance.
validate_to_exit boolean Whether the customer must validate the ticket to leave.
use_time_bands boolean Whether the plan is only valid in time bands (time_bands).
visible_in_operation boolean Whether the plan is shown to the parking lot operator.
check_in / checkout string Check-in and check-out times, in hotel plans.
patio list Internal areas of the parking lot that the plan gives access to.
contract integer Contract used to charge the extra time. It can have up to 19 digits (see Large IDs).

Test data (sandbox)

DataResult
POST with "id": "821424362"200: customer already exists, record updated.
POST with another id or without id201: new customer.
plano_id 709601794 (Mensalista), 709601795 (Credenciado gratuito), 709601796 (Pré-pago), 709601797 (Reserva Online)Valid plans. Any other code: 400.
plano with a name that does not exist400: the given plan does not exist.
Without nome, sobrenome or bloqueado400.

FAQ

How do I update only a customer's license plate?

Send the POST with the id, the required fields and the full veiculos list, already with the new license plate. The list you send replaces the previous one.

How do I remove a vehicle?

Send the veiculos list without it. To keep the vehicles as they are, do not send the field.

How do I block a customer who has not paid?

Send the POST with the id, nome, sobrenome and "bloqueado": true, without the veiculos field. To unblock, send false.

What is the vehicle's tag?

It is the number of the proximity card, tag or barcode the customer uses to enter. If access is by license plate only (LPR camera), send it empty.

Can I apply a prepaid or stay plan through the integration?

No: the integration only applies daily plans with no amount and monthly plans. The other types are applied in the CloudPark Dashboard.

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.

GET
List customers/api/v1/integration/customer
POST
Create or update a customer/api/v1/integration/customer
GET
List plans/api/v1/integration/customerplan