CloudPark CloudPark Integration API

Certified integrator

Vagga

Integration model: Ticket Validation (charged at your checkout) · Full API guide: Ticket Validation

The Vagga system looks up how much the customer owes, charges it and reports the payment; the exit is released. See the settings you need and how to test in the sandbox.

How it works

The Vagga system is already integrated with CloudPark through Ticket Validation: the parking fee is charged at your own checkout (ticket office, POS, app) and the exit is released.

LookupGET /agreementvalidation/{ticket}: how much the customer owes.
Chargeat the checkout, using your system's payment methods.
ValidationPOST /agreementvalidation with the amount paid: the exit is released.

Settings for your system

SettingSandbox (testing)Production
Base URLhttps://sandbox.cloudpark.com.br/api/v1/integrationhttps://<parking-lot>.cloudpark.com.br/api/v1/integration
Token (Authorization header)Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4bProvided by CloudPark for each parking lot
Contract code (contract_id)221137600

The calls

1. Look up the amount
curl "https://sandbox.cloudpark.com.br/api/v1/integration/agreementvalidation/400045265?contract_id=221137600" \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
2. Report the payment
curl -X POST https://sandbox.cloudpark.com.br/api/v1/integration/agreementvalidation \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" \
  -H "Content-Type: application/json" \
  -d '{"ticket_id": 400045265, "contract_id": "221137600", "paid_value": 15.35}'

The lookup also accepts the license plate instead of the ticket, or the QR Code (?qr_code=). Fields, responses and errors are in the full Ticket Validation guide.

Test on the sandbox

Ticket or license plateResult
400045265 or ABC1234Lookup and validation succeed.
384745455Vehicle has already left (400).
379924820Ticket deleted (400).
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. CloudPark sends the parking lot's URL, token and contract code.
  2. Set the three values in your system and make a test charge with a real ticket.