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
| What | Who decides | How it reaches the other |
|---|---|---|
| The centre's details, its sizes and its prices | Your software | PUT /facilities/{facilityId} and PUT …/unit-types |
| Whether a unit is free, rented or not for rent | Your software | PUT …/units and PUT …/units/{unitId} |
| The floor plan and the photos | Your software, or the operator in Qbox if you don't send them | PUT …/floor-plan and PUT …/photos |
| Whether the centre is on the portal | The Qbox team, on reviewing it, and the operator, with its permission | The facility.reviewed, facility.closed and connection.revoked webhooks |
| Requests | The portal, which receives them | The lead.created webhook and GET /leads |
| An online rental | Your software: the price, the contract, the charge and the access | The portal calls you in real time, and you tell it when it's paid |
Three rhythms
- 1
Your softwarePortal
PUT /facilities/{facilityId}, its sizes, its units, its floor plan and its photosThe whole centre: the first time and when something substantial changes
- 2
Portal
Checks it, and the team reviews it
It tells you with
facility.reviewed - 3
Your softwarePortal
PUT …/units/{unitId}Each unit that is rented, freed or changes price, as soon as it happens
- 4
Portal
Shows it at once
The pages someone has open update by themselves
- 5
Your softwarePortal
PUT /facilitiesThe daily list, with your versions
- 6
PortalYour software
outdatedWhat it has out of date, for you to send again
- 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.
- 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. - 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 software | What you send |
|---|---|
| It's rented, through any channel | PUT …/units/{unitId} with "status": "occupied" |
| It becomes free | With "status": "available" |
| It can't be rented now: a fault, a hold of yours | With "status": "blocked" |
| Its price changes | With its new monthlyPrice |
| It isn't rented through the portal | With "monthlyPrice": null |
| It no longer exists | The 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:
- 1
CustomerPortal
Chooses the unit
- 2
Portal
Reserves it for 20 minutes
Everyone else sees it reserved, and nobody else can start renting it
- 3
PortalYour software
POST /rentalsHold it on your other channels too. If it's no longer free,
409 unit_not_available - 4
CustomerPortal
Gives their details, accepts the contract and presses "Pay"
- 5
PortalYour software
POST /rentals/{id}/paymentFrom here, reserved for up to 30 minutes
- 6
Your softwarePortal
PUT /connect/v1/rentals/{rentalId}withpaidWhen your gateway notifies you. The portal goes on reserving it
- 7
Your softwarePortal
PUT …/units/{unitId}withoccupiedThe 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
expiredorcancelled), the portal shows it again as you had it. Free it on your other channels. - If it's paid, tell us
paidand send the unit withoccupied. 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 /rentalsarrives (it has just been rented at your office and the change was on its way), reply409 unit_not_available: the portal tells the customer it's no longer free.
If something fails
| What happens | What to do |
|---|---|
| You don't know whether a request arrived | Repeat it with the same Idempotency-Key: it isn't done twice |
A 429 | Wait for its Retry-After and repeat it, with the same key |
A 500, or no response | Repeat it with the same key, leaving more time between one attempt and the next |
A 422 | Don't repeat it as it is: fix the fields fields names. The portal goes on with the last good data |
| Your server has been down | On 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 you | We retry it for a day. Whatever happened is still in GET /leads and in GET /facilities/{facilityId} |
| The operator withdraws its permission | 403 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
outdatedis sent again. - Everything that changes something carries its
Idempotency-Key, and a429is repeated after itsRetry-After. - A repeated webhook is discarded by its
id. - With
connection.revoked, your software stops sending that operator's centres.