Documentation

Level 1 · Connected

Publish your centres

The details of each centre, what we check, the review and the daily list.

Each centre is sent whole, with its identifier in your software. If it exists, it is updated; if not, it is created. You can repeat a request as often as you need: with the same Idempotency-Key, the response is the same.

1. Send the centre

HTTP
PUT /connect/v1/facilities/madrid-01
Authorization: Bearer <token>
Idempotency-Key: 5b1d0c3e-8f6a-4c2e-9d1b-7a0e2f4c6b11
Content-Type: application/json

{
  "version": "2026-10-26T08:15:00Z",
  "name": "Trasteros Serrano Salamanca",
  "address": {
    "street": "Calle de Serrano 120",
    "postalCode": "28006",
    "city": "Madrid",
    "province": "Madrid",
    "country": "ES"
  },
  "location": { "lat": 40.4365, "lng": -3.6862 },
  "openingHours": { "kind": "daily", "opens": "07:00", "closes": "22:00" },
  "leadsEmail": "avisos@trasteros-serrano.example.com",
  "pricesIncludeVat": true,
  "policies": { "depositMonths": 1 }
}
FieldTypeRequiredNotes
versiontextYesChanges whenever this data changes (its updatedAt works)
nametextYesThe trading name: not an address nor just the city
address{street, postalCode, city, province, country}YesCity and province with their full names. country: ES
location{lat, lng}YesIn WGS 84, within 1 km of where its address falls
openingHourshoursYes{"kind": "always"}, {"kind": "daily", "opens", "closes"} or {"kind": "weekly", "days": {"mon": [{"opens", "closes"}], …}}
leadsEmailemailNoA suggestion: the operator chooses in Qbox where its requests by email arrive (at first, its contact address) and sees this one to use it if it likes. Never shown on the portal
pricesIncludeVatyes or noYesWhether its unit prices include VAT
policies{depositMonths, minimumStayMonths}YesThe deposit, in months' rent (0: none), and the minimum stay, in months
accessMethodslistNoapp, pin, qr, key, remote or card
amenitieslistNocctv, alarm, trolleys, groundFloor, loadingAtDoor, lift, parking or climateControl
description{es, en, fr, de, it, pt, pl}NoIn at least one language: the portal translates the rest, and says so
openedOndateNoWhen it opened: “New centre” for 180 days
opensOnmonthNoIf it hasn't opened yet: “Opens in March 2027” and “Notify me when it opens”

2. Look at the response

The response is how the centre stands: its status, its listing URL once published and its warnings, which don't prevent publishing but are worth fixing.

Response
{
  "id": "madrid-01",
  "status": "in_review",
  "listing": null,
  "reasons": [],
  "message": null,
  "warnings": [
    { "code": "few_photos", "message": "It has 0 photos: with three or more, the listing looks much better." }
  ],
  "updatedAt": "2026-10-26T08:15:02Z"
}
statusWhat it means
pending_linkIt looks like one the operator already had in Qbox. It waits for them to say whether it's the same
in_reviewIt's new: the team reviews it before publishing it, like those added in Qbox. facility.reviewed tells you
publishedIt's on the portal. From now on, every change goes live at once
returnedThe team returned it, with its reasons. Fix it and send it again
withdrawnIt's not on the portal: you removed it, it wasn't in the daily list, the operator withdrew access or the team withdrew it
closedThe operator closed it in Qbox: sending it again doesn't bring it back; only the operator opens it again, and then you see it as withdrawn until you send it

3. If something is missing

Nothing is published halfway: the response is a 422 with every failing field and why. If the centre was already published, it keeps its last good data. Everything stays in your area's log for 30 days.

422
{
  "error": {
    "code": "invalid_facility",
    "message": "The centre isn't published: check these fields.",
    "fields": [
      { "path": "address.postalCode", "code": "invalid_postal_code",
        "message": "“03203” isn't a postal code in Madrid." },
      { "path": "name", "code": "name_is_address",
        "message": "The name is an address or just the city: use the centre's trading name." }
    ]
  }
}

What we check

codeWhat fails
requiredA required field is missing
invalid_formatA field doesn't have its format: an email, a date, a colour…
invalid_postal_codeThe postal code isn't from its country or its province
unknown_cityThe city isn't a municipality in its province
location_farThe point is more than 1 km from where its address falls
name_is_addressThe name is an address or just the city
invalid_priceA price below zero or not reasonable
duplicate_idTwo sizes, units, floors or photos with the same id
unknown_unit_typeA unit with a unitTypeId that isn't one of its sizes
unknown_floorA unit with a floorId that isn't in its floor plan
level_not_lockerA unit with level whose size isn't of lockers
middle_not_tripleA middle locker 1 m high or more: only a Triple, three lockers under 1 m, has one
measurements_incompleteA unit with widthM and without depthM, or the other way round
area_over_measurementsA unit's areaM2 is more than its width × depth
invalid_svgThe floor plan doesn't pass the clean-up
unknown_unit_in_planA floor plan shape with a data-unit-id that isn't any unit
invalid_photoThe photo isn't JPEG, PNG or WebP, or is too small

And what doesn't prevent publishing (warnings): few_photos (fewer than three), no_description and unit_not_in_plan (a unit without its shape in the floor plan).

If the operator already had it in Qbox

If the centre was already on the portal as an unclaimed listing, made by Qbox from the centre's own website, yours takes its place as soon as it's published: the latest integration wins, and whoever had it saved still has it.

If the centre is less than 150 metres from one the operator already has in Qbox, or on the same street with the same postal code, it stays in pending_link. In “Connect your software”, they say whether it's the same one (it stays published, now with your data) or a different one (it's reviewed as a new one). You get the facility.linked webhook.

If the centre already had a listing nobody has claimed

The portal has listings of centres nobody has claimed yet, made from what each centre publishes on its own website. If one of yours had one, nothing changes for your software: the centre is reviewed and published like any other, with your data. The Qbox team checks whether they are the same centre and, if they are, takes the old listing off; whoever had saved it in their favourites keeps the centre, now with yours. Until then both may show.

The daily list

At least once a day, PUT /facilities with all the operator's centres: each one's id and, if you like, its versions (facility, unitTypes, units, floorPlan and photos).

  • A centre missing from the list is withdrawn from the portal. It comes back if it reappears.
  • If you send the versions, the response says what we have out of date (outdated) so you can send it again.
{
  "facilities": [
    { "id": "madrid-01", "versions": { "facility": "2026-10-26T08:15:00Z", "units": "2026-10-26T09:02:11Z" } },
    { "id": "madrid-02" }
  ]
}
FieldWhat it carries
retiredThe operator's centres that weren't in the list: they are withdrawn from the portal (withdrawn)
outdatedWhat the portal has with another version than yours, centre by centre: send it again
unknownThose in the list that you haven't sent yet: send them with PUT /facilities/{facilityId}

The list is the safety net, not the way to keep the portal up to date: each change does that as it happens. See Keeping in sync and availability.

Removing a centre

DELETE /facilities/{facilityId} removes it from the portal. GET /facilities/{facilityId} tells you its status at any time.

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