GlobeID Partners

GlobeID Partner API

Version 1 · https://api.globeid.net/partner/v1 · OpenAPI 3.1

Overview

The open connector lets a property management system work with GlobeID like the systems GlobeID connects itself. Your system:

  1. sends GlobeID its unit types and the bookings of every channel (Booking.com, Expedia, the desk, the phone…);
  2. GlobeID invites the guest to the online check-in: the guest attaches the booking in the GlobeID app, reads the identity document from its chip and signs the registration form of the property;
  3. your system reads back what GlobeID writes for it: the guests with their document data and consents, the signed form in PDF, the link the guest uses to attach the booking, and check-ins done in GlobeID.

Every call goes out from your system: it works the same in the cloud and installed at the property, with no port to open. A system in the cloud can also receive the queue on a webhook.

This is level 1 (check-in). Level 2 (folio, charges, check-out) and level 3 (availability and rates, like a channel manager) come later, with their own operations.

Keys and the test property

You work from the partner portal (business.globeid.net/partner), once the GlobeID team has approved your company as an integrator. You sign in with the QR of the GlobeID app.

KeyWhat it isWhere it goes
nm_prd_… product keyOne per product, the same for every property. Shown once; a new one replaces the old at once.X-Product-Key
nm_tst_… test keyThe key of your test property. Shown once; a new one replaces the old.Authorization: Bearer
nm_liv_… property keyOne per property that turns your product on from the Marketplace, once the product is live. Collect it once with the API, or from the partner portal (a new one replaces the old).Authorization: Bearer

Keep keys in a secrets manager, never in code, commits or logs.

The test property lives in your company and is marked as a test: it emails only people of your company (so you can try the invitation with your own address), sends nothing to the authorities, uses no credits and is not published. It starts with the online check-in switched on and a registration form. Products in test work only there.

The Sandbox page of the partner portal shows the test property as GlobeID sees it: the unit types and bookings you sent, whether each room was imported, its guest link and online check-in, a refusal you sent back, and every queue item with its state and content. Its simulator acts for the guest and for the front desk, with no phone needed: Simulate online check-in queues fake guests of the room (one per person, the first is the main guest) and a sample signed form; Simulate desk check-in queues a check_in. The items are the same a real guest produces, on the queue and on your webhook. Empty the sandbox deletes bookings, online check-ins and the queue; unit types, form and keys stay. To try the real flow, open the guest link in the GlobeID app.

Going live

  1. Fill in the product sheet in the partner portal (texts, logo, website, support email, countries) and try every level-1 operation on your test property: the checks tick by themselves.
  2. Send it for review. The GlobeID team puts it live, or sends it back with a note.
  3. Live, the product appears in the Marketplace of the hotels of its countries. A property that turns it on creates a connection: you get an email, and GET/partner/v1/connections lists it.
  4. Collect the key of the property once: POST/partner/v1/connections/{id}/key (with the product key only). Then send its unit types and bookings as on the test property.

When a property turns your product off, its key stops working (invalid_property_key) and you get an email.

Try this flow before going live on the test hotel, in the Sandbox page: a second test property of your company that uses GlobeID Host, as a hotel opening the Marketplace. Turn on as the hotel creates the connection, even with the product in test; you get the email, GET/partner/v1/connections lists it and you collect its nm_liv_… key as with a real hotel. That key works on the test hotel only while the product is in test (elsewhere product_not_live), and /partner/v1/me answers "test": true for its property. Turn off as the hotel revokes the key.

Calls, errors, limits

curl https://api.globeid.net/partner/v1/me \
  -H "X-Product-Key: $GLOBEID_PRODUCT_KEY" \
  -H "Authorization: Bearer $GLOBEID_PROPERTY_KEY"

Bodies are JSON (UTF-8). Unknown fields in what you send are refused (invalid_json), so typos do not go unnoticed; ignore unknown fields in what you receive. Dates are YYYY-MM-DD, times RFC 3339 in UTC.

Errors have a stable code and a message for developers:

{"error": {"code": "invalid_reservation", "message": "stays[0]: adults from 1 to 50, children from 0 to 50"}}
StatusCodes
401product_key_required, property_key_required, invalid_product_key, invalid_property_key
403product_suspended, product_not_live
400 / 422invalid_json, invalid_unit_types, invalid_reservation, invalid_batch, invalid_limit, invalid_ack
404 / 409not_found, already_acked, key_already_issued
429rate_limited: at most 600 calls per minute for each property key
500internal_error: try again later

Unit types

PUT/partner/v1/unit-types replaces all the unit types of the property; GET reads them back. GlobeID uses them to name rooms and apartments.

{"unit_types": [
  {"code": "DBL", "name": "Double room, sea view", "capacity": 2, "units": 10},
  {"code": "SGL", "name": "Single room", "capacity": 1, "units": 4}
]}

Reservations

PUT/partner/v1/reservations/{id} sends a reservation, new or changed, with all its rooms. {id} is your id (letters, digits and . _ : -, up to 100).

{
  "code": "4182736455",
  "channel": "Booking.com",
  "currency": "EUR",
  "booker": {"name": "Booking.com", "agency": true},
  "stays": [{
    "id": "R1",
    "unit_type": "DBL",
    "unit": "204",
    "status": "confirmed",
    "arrival": "2027-03-14",
    "departure": "2027-03-17",
    "adults": 2,
    "children": 0,
    "total": 420.00,
    "guests": [{"id": "G88", "name": "Maria Rossi", "email": "maria@example.com", "main": true}]
  }]
}

POST/partner/v1/reservations/batch sends up to 100 reservations (each with its id); the answer has one result per reservation, with an error for the ones refused.

GET/partner/v1/reservations/{id} reads the reservation as GlobeID keeps it, with guest_link: the link the guest opens to attach the booking in the GlobeID app. Put it in your confirmation and pre-arrival letters.

When to send what

WhenWhat
The property turns GlobeID onThe unit types, then the reservations arriving in the next 120 days (batch).
A reservation changesThat reservation, whole, at once.
Once a dayThe arriving reservations again (batch): it repairs anything lost while your system was offline. Unchanged ones cost nothing.
A system installed at the property comes back onlineThe changes it kept, then the queue.

The queue

What GlobeID writes for your system waits in the queue of the property until you confirm it. GET/partner/v1/queue?limit=20 (up to 50) gives the oldest items first. Delivery is at least once: an item comes back until confirmed, so recognise duplicates by id and process items in order.

kinddataWhat to do
guestreservation_id, stay_id, guestCreate or update the guest in the room (see guest data).
documentguest_id, file (name, content_type, data in base64)Attach the signed registration form to the guest.
reservation_linkreservation_id, linkKeep the link for your letters to the guest.
check_inreservation_id, stay_idMark the room arrived: the desk did the check-in in GlobeID.

POST/partner/v1/queue/{id}/ack confirms an item:

{"status": "ok", "guest_id": "G1024"}
{"status": "rejected", "message": "Document number missing", "field": "document.number"}

guest_id is your id of the guest, recorded with the item for support. A rejection reaches the staff of the property on the online check-in of the room; they correct the data and GlobeID writes it again. A newer item for the same thing (the same guest corrected) replaces one not yet confirmed. Guest data and forms leave GlobeID when you confirm them, and in any case after 30 days.

Guest data

{
  "id": "gid_3f2c…",
  "main": true,
  "booker": false,
  "chip": true,
  "signed": true,
  "language": "it",
  "fields": {
    "person.family_name": "Rossi",
    "person.given_name": "Maria",
    "person.sex": "F",
    "person.birth_date": "1985-04-12",
    "person.citizenship": "IT",
    "document.type": "id_card",
    "document.number": "CA12345AB",
    "document.issue_country": "IT"
  },
  "consents": {"marketing": true}
}

id is the id GlobeID gives the guest (gid_…): the same for later corrections and for the next stays of the same person at the property. Keep it next to your id, and update your guest when it comes again. chip: the document was read from its chip; signed: the data comes from a signed form.

Fields carry only what the guest gave; countries are ISO 3166-1 alpha-2, dates YYYY-MM-DD, sex M or F, provinces as their code (Italy: MI, RM…). You map them to your system and to your authority.

GroupFields
personfamily_name, family_name2 (second surname, Spain), given_name, sex, birth_date, birth_place, birth_province, birth_country, citizenship, tax_code, kinship
documenttype (passport, id_card, residence_permit), number, support_number, issue_date, expiry_date, issue_place, issue_province, issue_country, issuing_authority
residencestreet, postal_code, city, province, country
contactemail, phone
driving_licencenumber, categories, issue_date, expiry_date, issue_country
preferencesdiet, allergies

person.kinship is the relation of a guest to the adult who brings them: child, partner, parent, grandchild, grandparent, sibling, nephew, uncle, ward, parent_in_law, child_in_law, sibling_in_law, great_grandchild, great_grandparent, other. Consents: marketing, profiling, partners; a consent not present was not asked.

Webhooks

A system in the cloud can receive each queue item as soon as it is ready. Set the address of the webhook (https) in the partner portal; the signing secret (whsec_…) is shown once. Use Send a test to receive a ping.

HeaderValue
X-GlobeID-EventThe kind: guest, document, reservation_link, check_in, ping
X-GlobeID-Delivery<item id>-<attempt>
X-GlobeID-Signaturet=<unix time>,v1=<hex>: HMAC-SHA256 of <t>.<body> with the secret

The body is the item, as in the queue. Check the signature on the raw body and refuse timestamps older than five minutes:

import hmac, hashlib, time

def verify(secret: str, header: str, body: bytes, tolerance=300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t, sig = int(parts["t"]), parts["v1"]
    if abs(time.time() - t) > tolerance:
        return False
    mac = hmac.new(secret.encode(), f"{t}.".encode() + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(mac, sig)

Answer 2xx to confirm the item; to reject it, or to give your guest id, answer 2xx with an ack body ({"status": "rejected", "message": …}). Any other answer, or no answer within 10 seconds, and GlobeID tries again: after 1, 5 and 15 minutes, then 1, 3 and 6 hours, for three days. After that the item waits in the queue. Items go out in queue order; without a webhook, or when it fails, the queue still has everything.

Versioning

Version 1 only grows: new fields, kinds and operations may appear; existing ones keep their meaning. Ignore what you do not know, and do not rely on the order of keys. A change that breaks would be a new version, announced in advance.

Reference

OperationWhat it does
GET/partner/v1/meThe product and the property of the keys, and the mode (test or live).
GET/partner/v1/connectionsThe properties that turned your product on (product key only).
POST/partner/v1/connections/{id}/keyCollect the key of a property, once (product key only).
PUT/partner/v1/unit-typesReplace all the unit types.
GET/partner/v1/unit-typesRead the unit types.
PUT/partner/v1/reservations/{id}Send a reservation, new or changed.
GET/partner/v1/reservations/{id}Read a reservation, with guest_link.
POST/partner/v1/reservations/batchSend up to 100 reservations.
GET/partner/v1/queueRead the items still to confirm.
POST/partner/v1/queue/{id}/ackConfirm or reject an item.

The full schemas are in openapi.yaml: import it in Postman, Insomnia or your code generator. Questions: write from Support in the partner portal.