How it works
The Fusion 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.
POST /storevalidation with the ticket, the amount and the integration code.Settings for your system
There are three values, entered in the parking integration settings of the Fusion system:
| Setting | Sandbox (testing) | Production |
|---|---|---|
| URL | https://sandbox.cloudpark.com.br/api/v1/integration/storevalidation | https://<parking-lot>.cloudpark.com.br/api/v1/integration/storevalidation |
Token (Authorization header) | Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b | Provided 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
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}'
{
"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:
| Ticket | Result |
|---|---|
400045265 | "Validado com sucesso" (validated successfully), 15 minutes to leave. |
379924820 | Validated, but there is still an amount to pay (minutes_to_exit = 0). |
384745455 | Ticket already validated before (returns success, without applying the discount twice). |
403045263 | Not found (404). |
You can send these scenarios from the browser in the guide's Try it on the sandbox section.
Going to production
- The parking lot agrees on the discount tiers with CloudPark.
- CloudPark sends the parking lot's URL, token and integration code.
- Set the three values in your system and make a test sale with a real ticket.