Documentation

Level 1 · Connected

Keeping in sync and availability

How the portal stays the same as your software: what you send, when, and what happens to a unit while someone rents it.

Your software decides and the portal copies. The portal never sets a price or decides whether a unit is free: it shows the last thing you sent and, when someone rents online, asks you in real time. This guide puts in one place what keeps the two the same.

Who decides what

WhatWho decidesHow it reaches the other
The centre's details, its sizes and its pricesYour softwarePUT /facilities/{facilityId} and PUT …/unit-types
Whether a unit is free, rented or not for rentYour softwarePUT …/units and PUT …/units/{unitId}
The floor plan and the photosYour software, or the operator in Qbox if you don't send themPUT …/floor-plan and PUT …/photos
Whether the centre is on the portalThe Qbox team, on reviewing it, and the operator, with its permissionThe facility.reviewed, facility.closed and connection.revoked webhooks
RequestsThe portal, which receives themThe lead.created webhook and GET /leads
An online rentalYour software: the price, the contract, the charge and the accessThe portal calls you in real time, and you tell it when it's paid

Three rhythms

The day to day of a connected centre
  1. 1

    Your softwarePortal

    PUT /facilities/{facilityId}, its sizes, its units, its floor plan and its photos

    The whole centre: the first time and when something substantial changes

  2. 2

    Portal

    Checks it, and the team reviews it

    It tells you with facility.reviewed

  3. 3

    Your softwarePortal

    PUT …/units/{unitId}

    Each unit that is rented, freed or changes price, as soon as it happens

  4. 4

    Portal

    Shows it at once

    The pages someone has open update by themselves

  5. 5

    Your softwarePortal

    PUT /facilities

    The daily list, with your versions

  6. 6

    PortalYour software

    outdated

    What it has out of date, for you to send again

  1. Whole, when something substantial changes. The centre, its sizes, its units, its floor plan and its photos each go in their own call, with everything of theirs: what isn't included is removed. It's for the signup, for a big change (a new floor, a price rise) and for fixing what the daily list says is out of date.
  2. One change, at once. PUT /facilities/{facilityId}/units/{unitId} as soon as a unit is rented, freed or changes price, whoever does it: your office, your website or the portal. It's what keeps availability up to date.
  3. The daily list. PUT /facilities, at least once a day, with all the operator's centres and their versions. It's the safety net: it finds what got lost on the way.

Versions

Each thing you send whole carries its version: a text of yours, up to 64 characters, that changes when anything in it changes. Its modification date (2026-10-26T09:02:11Z) or a counter works.

The portal keeps the last version of each thing. In the daily list you send yours, and the response compares:

{
  "facilities": [
    { "id": "madrid-01", "versions": { "facility": "2026-10-26T08:15:00Z", "unitTypes": "t-12", "units": "2026-10-26T09:02:11Z", "floorPlan": "p-3", "photos": "f-7" } }
  ]
}

Here the portal has the units of madrid-01 with another version: send PUT /facilities/madrid-01/units again, with all of them.

A single change (PUT …/units/{unitId}) carries no version: the portal's stays that of the last whole list. If yours changes with every rental, the daily list will mark the units as out of date and you'll send them whole once a day. It's cheap, and it leaves both sides the same.

A unit that changes in your software

What happens in your softwareWhat you send
It's rented, through any channelPUT …/units/{unitId} with "status": "occupied"
It becomes freeWith "status": "available"
It can't be rented now: a fault, a hold of yoursWith "status": "blocked"
Its price changesWith its new monthlyPrice
It isn't rented through the portalWith "monthlyPrice": null
It no longer existsThe whole list, PUT …/units, without it

Each call carries the whole unit, not only what changes. The portal never shows a price you haven't sent, and never changes a status on its own.

A unit while someone rents it online

With online rental, the portal reserves the unit while the customer finishes, and you hold it on your other channels:

A unit during an online rental
  1. 1

    CustomerPortal

    Chooses the unit

  2. 2

    Portal

    Reserves it for 20 minutes

    Everyone else sees it reserved, and nobody else can start renting it

  3. 3

    PortalYour software

    POST /rentals

    Hold it on your other channels too. If it's no longer free, 409 unit_not_available

  4. 4

    CustomerPortal

    Gives their details, accepts the contract and presses "Pay"

  5. 5

    PortalYour software

    POST /rentals/{id}/payment

    From here, reserved for up to 30 minutes

  6. 6

    Your softwarePortal

    PUT /connect/v1/rentals/{rentalId} with paid

    When your gateway notifies you. The portal goes on reserving it

  7. 7

    Your softwarePortal

    PUT …/units/{unitId} with occupied

    The unit is now rented: say so, like any other change. The portal's reservation ends here

  • While the rental is open, the portal shows it reserved by itself. Send nothing about the unit.
  • If it ends unpaid (the customer leaves it, time runs out, or you tell us expired or cancelled), the portal shows it again as you had it. Free it on your other channels.
  • If it's paid, tell us paid and send the unit with occupied. Until it arrives, the portal goes on reserving it by itself, so nobody else rents it; once it arrives, in its own call or in the whole list, it shows what you sent.
  • If the unit was no longer free when POST /rentals arrives (it has just been rented at your office and the change was on its way), reply 409 unit_not_available: the portal tells the customer it's no longer free.

If something fails

What happensWhat to do
You don't know whether a request arrivedRepeat it with the same Idempotency-Key: it isn't done twice
A 429Wait for its Retry-After and repeat it, with the same key
A 500, or no responseRepeat it with the same key, leaving more time between one attempt and the next
A 422Don't repeat it as it is: fix the fields fields names. The portal goes on with the last good data
Your server has been downOn coming back, send the daily list with your versions and whatever comes out in outdated; and GET /leads?since=… for the requests
We couldn't deliver a webhook to youWe retry it for a day. Whatever happened is still in GET /leads and in GET /facilities/{facilityId}
The operator withdraws its permission403 connection_revoked: stop sending. Its centres stay on the portal, run by the operator in Qbox

Everything stays in your area's log for 30 days, with each request, its response and its errors field by field.

Check it

  • Every rental, every termination and every price change in your software sends its PUT …/units/{unitId}: those from your office, those from your website and those just paid on the portal.
  • The daily list goes out every day with your versions, and what comes back in outdated is sent again.
  • Everything that changes something carries its Idempotency-Key, and a 429 is repeated after its Retry-After.
  • A repeated webhook is discarded by its id.
  • With connection.revoked, your software stops sending that operator's centres.

Questions? Write to us at team@findqbox.com.