CloudPark CloudPark Integration API

Certified integrator

Market

Integration model: Store Integration (discount per purchase) · Full API guide: Store Integration

The Market system sends the ticket and the purchase amount; CloudPark applies the discount. See the settings you need and how to test in the sandbox.

How it works

The Market system is already integrated with CloudPark through Store Integration. At the checkout, the operator reads the parking ticket and the system sends CloudPark the ticket and the purchase amount; CloudPark applies the discount according to the parking lot's tiers and returns how much time the customer has to leave.

The customer buysand presents the parking ticket.
Readingof the ticket's barcode (number) or QR Code.
CallPOST /storevalidation with the ticket, the amount and the integration code.
Resultexit released or an amount to pay at the parking lot.

Settings for your system

There are three values, entered in the parking integration settings of the Market system:

SettingSandbox (testing)Production
URLhttps://sandbox.cloudpark.com.br/api/v1/integration/storevalidationhttps://<parking-lot>.cloudpark.com.br/api/v1/integration/storevalidation
Token (Authorization header)Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4bProvided by CloudPark for each parking lot
Integration code (integration_id)135745217

Each parking lot has its own URL, token and integration code. A store with more than one partner parking lot sets up one set for each.

The call

Sandbox example
curl -X POST https://sandbox.cloudpark.com.br/api/v1/integration/storevalidation \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" \
  -H "Content-Type: application/json" \
  -d '{"integration_id": "135745217", "id": 400045265, "purchase_value": 80.0}'
Response (200)
{
  "expiration_date": "2026-11-24T18:45:00.000000Z",
  "minutes_to_exit": 15,
  "message": "Validado com sucesso"
}

With minutes_to_exit greater than zero, the exit is released for that amount of time. Equal to 0, there is still an amount to pay at the parking lot. The fields, errors and sending by QR Code are in the full Store Integration guide.

Test on the sandbox

The sandbox gives a discount for purchases from R$ 50.00, with integration_id 135745217:

TicketResult
400045265"Validado com sucesso" (validated successfully), 15 minutes to leave.
379924820Validated, but there is still an amount to pay (minutes_to_exit = 0).
384745455Ticket already validated before (returns success, without applying the discount twice).
403045263Not found (404).

You can send these scenarios from the browser in the guide's Try it on the sandbox section.

Going to production

  1. The parking lot agrees on the discount tiers with CloudPark.
  2. CloudPark sends the parking lot's URL, token and integration code.
  3. Set the three values in your system and make a test sale with a real ticket.