CloudPark CloudPark Integration API

CloudPark calls your system

Access Authorization

When a customer with a card tries to enter, CloudPark asks your system whether they may enter.

What it is for

Your system decides, in real time, who may enter (e.g. the club checks whether the member is up to date with payments). When a customer taps their card at the entrance kiosk, CloudPark asks your system whether that card may enter and follows the answer.

  • It only applies to entries with a card or customer code. Walk-in customers (who take a ticket) do not go through this check.
  • Whoever is allowed in is automatically registered at CloudPark on their first entry, with the card number.

How to set it up

  1. Publish the lookup URL, which receives the card number at the end of the path. The caller is the parking lot's local server, not CloudPark's cloud: the URL must be reachable from the parking lot's network.
  2. Define the authentication (optional): an HTTP header name and its value.
  3. Send the details to CloudPark support. The parking lot also needs a daily plan with a zero amount, which is applied to the customers who are allowed in.

The call CloudPark makes

A GET to your URL, with the card number at the end:

GET https://seu-sistema.com.br/valida-acesso/0123092664
Authorization: abcdefgh123456

Where 0123092664 is the card the customer used. The header is the one you agreed on.

Response format

Respond 200 with a JSON. The decision is inside the data object:

{
  "data": {
    "situacao": 0,
    "motivo": {"id": 0}
  }
}
FieldTypeDescription
data.situacaorequired integer Status: 0 = allowed. 1 = not allowed.
data.motivo.idrequired integer Reason, when situacao is 1: 1 = card unknown to your system; any other value = customer blocked.

Other fields inside data are ignored.

What CloudPark does with the response

ResponseResult
situacao: 0Enters. The customer is unblocked (or registered, if it is their first access) and receives the configured daily plan.
situacao: 1 and motivo.id: 1CloudPark's own records decide. Your system does not know the card; if it is registered and up to date at CloudPark, the customer enters.
situacao: 1 and any other motivo.idDoes not enter. The customer is marked as blocked at CloudPark ("Bloqueado pela integração", blocked by the integration).
Error, response other than 200 or without data.situacaoCloudPark's own records decide, as with an unknown card.

FAQ

The customer was blocked in the dashboard after a few days without coming. Is that normal?

Yes. The daily plan expires if the customer does not use the parking lot for a while. On the next entry CloudPark asks your system again and, if the customer is allowed, the record is renewed immediately.

Do I need to register the customers at CloudPark beforehand?

No. A customer who is allowed in is registered automatically on their first entry, with the card number.

Can I test on the sandbox?

No: here it is CloudPark that makes the call. Test your URL with the examples on this page (e.g. curl with an allowed card, a blocked one and an unknown one) and arrange a test at the parking lot with support.