Who this is for
Developers at a channel, reseller or partner that sells an operator's experiences and wants to send the bookings straight into the operator's Meridia360. Viator and GetYourGuide already connect through their own integrations and don't need this.
Every booking you send counts against the same seats as the operator's other channels, so you can't oversell a departure.
1. Get an endpoint and a key
The operator issues them, not us. In Meridia360 they open the channel's page, Integrations → Channel Manager → (channel), and under Keys for the channel choose Issue a key. They give you three things:
| Endpoint | The base URL for that channel, ending in /v1/channels/inbound/<channel>. Every path below is added to it. |
|---|---|
| Key id | The key's public prefix. Sent in X-Meridian-Key. |
| Secret | Signs your requests. Never sent. |
2. Sign every request
Every request is a POST with a JSON body and these headers:
Content-Type | application/json |
|---|---|
X-Meridian-Key | Your key id. |
X-Meridian-Timestamp | The current time in Unix seconds. Must be within 5 minutes of ours. |
X-Meridian-Signature | sha256= followed by the hex HMAC-SHA256 of <timestamp>.<body>, keyed with your secret. |
X-Meridian-Event-Id | Optional, on bookings. A unique id for this delivery, so a retry is recognised as a retry. |
Sign the exact bytes you send. Serialize the body once, sign that string and send that same string. Re-serializing changes the spacing or key order, and the signature no longer matches.
import { createHmac } from 'node:crypto'
const ENDPOINT = process.env.MERIDIA360_ENDPOINT // ends in /v1/channels/inbound/<channel>
const KEY_ID = process.env.MERIDIA360_KEY_ID
const SECRET = process.env.MERIDIA360_SECRET
export async function meridia360(path, body, { eventId } = {}) {
const raw = JSON.stringify(body) // serialize once: these exact bytes are signed and sent
const timestamp = String(Math.floor(Date.now() / 1000))
const signature = createHmac('sha256', SECRET).update(`${timestamp}.${raw}`).digest('hex')
const response = await fetch(ENDPOINT + path, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Meridian-Key': KEY_ID,
'X-Meridian-Timestamp': timestamp,
'X-Meridian-Signature': `sha256=${signature}`,
...(eventId ? { 'X-Meridian-Event-Id': eventId } : {}),
},
body: raw,
})
const json = await response.json()
if (!response.ok) throw Object.assign(new Error(json.error.message), { status: response.status, ...json.error, retryable: json.meta.retryable })
return { status: response.status, ...json.data }
}import hashlib, hmac, json, os, time
import requests
ENDPOINT = os.environ["MERIDIA360_ENDPOINT"] # ends in /v1/channels/inbound/<channel>
KEY_ID = os.environ["MERIDIA360_KEY_ID"]
SECRET = os.environ["MERIDIA360_SECRET"]
def meridia360(path, body, event_id=None):
raw = json.dumps(body, separators=(",", ":")).encode() # these exact bytes are signed and sent
timestamp = str(int(time.time()))
signature = hmac.new(SECRET.encode(), timestamp.encode() + b"." + raw, hashlib.sha256).hexdigest()
headers = {
"Content-Type": "application/json",
"X-Meridian-Key": KEY_ID,
"X-Meridian-Timestamp": timestamp,
"X-Meridian-Signature": f"sha256={signature}",
}
if event_id:
headers["X-Meridian-Event-Id"] = event_id
response = requests.post(ENDPOINT + path, data=raw, headers=headers, timeout=30)
payload = response.json()
if not response.ok:
raise RuntimeError(f"{response.status_code} {payload['error']['code']}: {payload['error']['message']}")
return payload["data"]BODY='{"externalProductId":"BOAT-COMINO","date":"2026-11-14","startTime":"09:00"}'
TS=$(date +%s)
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$MERIDIA360_SECRET" -hex | sed 's/^.* //')
curl -X POST "$MERIDIA360_ENDPOINT/availability" \
-H "Content-Type: application/json" \
-H "X-Meridian-Key: $MERIDIA360_KEY_ID" \
-H "X-Meridian-Timestamp: $TS" \
-H "X-Meridian-Signature: sha256=$SIG" \
--data "$BODY"3. Endpoints
| POST | Does |
|---|---|
/availability | Seats left on a departure, and whether it can still be booked |
/bookings | Creates a confirmed booking |
/reservations | Holds seats while your traveller pays |
/reservations/confirm | Turns a hold into a booking |
/reservations/release | Gives a hold's seats back |
/amendments | Changes a booking's date, time, guests or extras |
/cancellations | Cancels a booking and puts its seats back on sale |
Products are addressed by your product id, externalProductId. The operator maps each of your products to one of their experiences on the channel's page. A product that isn't mapped answers 404. Dates are local dates, YYYY-MM-DD, and times local times, HH:mm, in the operator's time zone.
A successful response is { "data": …, "meta": { "correlationId": … } }.
Check availability
{
"externalProductId": "BOAT-COMINO",
"date": "2026-11-14",
"startTime": "09:00"
}startTime is optional for products sold by date alone. The answer:
{
"data": {
"externalProductId": "BOAT-COMINO",
"date": "2026-11-14",
"startTime": "09:00",
"vacancies": 18,
"closed": false,
"capacityType": "LIMITED",
"capacity": 40,
"booked": 22,
"bookableUntil": "2026-11-14T07:00:00.000Z",
"cutoffMinutes": 120
},
"meta": { "correlationId": "…" }
}vacancies is what you can sell. booked includes seats held by unpaid reservations. After bookableUntil (an instant, in UTC) the departure is past its cut-off.
Create a booking
{
"externalBookingId": "PX-100245",
"reference": "PX-100245",
"externalProductId": "BOAT-COMINO",
"optionId": "MORNING",
"travelDate": "2026-11-14",
"startTime": "09:00",
"lines": [
{ "pricingCategoryName": "Adult", "quantity": 2 },
{ "pricingCategoryName": "Child", "quantity": 1 }
],
"extras": [
{ "name": "Lunch on board", "quantity": 3 }
],
"customer": {
"firstName": "Anna",
"lastName": "Borg",
"email": "anna@example.com",
"phone": "+356 7900 0000",
"country": "MT"
},
"totalMinor": 13500,
"currency": "EUR",
"notes": "Pickup from the Hilton"
}- Required:
externalBookingId,externalProductId,travelDate, at least one line with a whole-numberquantity, andcustomer.firstName. - A line names who it's for with
pricingCategoryName(as the operator names them, such as "Adult") or your ownrateId. totalMinor(in cents) andcurrencyare what you charged, kept for reference. Meridia360 prices the booking from the operator's own rates and flags any difference.- A field Meridia360 can't read is refused with
422, never guessed. A booking with an unreadable date is not a booking for today. - Field names follow each channel's own vocabulary where it has one. Ask the operator which channel your key belongs to if a field isn't recognised.
{
"data": { "bookingId": "6f1c…", "confirmationCode": "MER-7KQ2-X9PD", "duplicate": false },
"meta": { "correlationId": "…" }
}Retries are safe. Sending the same booking again, by the same X-Meridian-Event-Id or the same externalBookingId, answers 200 with the original booking and "duplicate": true. It never creates a second one.
Hold, then confirm or release
For a checkout where the traveller pays before the booking is final. Held seats can't be sold by anyone else. A hold that's neither confirmed nor released expires by itself and the seats go back.
{
"externalReservationId": "CART-88231",
"externalProductId": "BOAT-COMINO",
"externalOptionId": "MORNING",
"travelDate": "2026-11-14",
"startTime": "09:00",
"lines": [{ "pricingCategoryName": "Adult", "quantity": 2 }],
"customer": { "firstName": "Anna", "lastName": "Borg", "email": "anna@example.com" },
"holdMinutes": 30
}holdMinutes is 1 to 120. Leave it out to use the experience's own hold time. The answer is 201 with { "reservationId", "bookingId", "status": "HELD", "expiresAt" }. A repeated hold answers 200 with "duplicate": true.
POST /reservations/confirm
{ "externalReservationId": "CART-88231", "externalBookingId": "PX-100246" }
→ 200 { "data": { "bookingId": "…", "confirmationCode": "MER-…", "duplicate": false } }POST /reservations/release
{ "externalReservationId": "CART-88231", "reason": "Payment abandoned" }
→ 200 { "data": { "released": true } }Change a booking
{
"externalBookingId": "PX-100245",
"travelDate": "2026-11-15",
"startTime": "14:00",
"lines": [
{ "pricingCategoryName": "Adult", "quantity": 3 },
{ "pricingCategoryName": "Child", "quantity": 0 }
],
"extras": [{ "name": "Lunch on board", "quantity": 3 }],
"reason": "Guest asked for the afternoon"
}Send only what changes. lines, when sent, is the whole new party: a quantity of 0 removes that category. The old departure gets its seats back and the operator's other channels are updated. The answer is { "amended": true, "bookingId", "guests" }.
Cancel a booking
{ "externalBookingId": "PX-100245", "reason": "Guest cancelled" }
→ 200 { "data": { "cancelled": true } }Cancelling twice is harmless: the second call answers the same.
4. Errors
{
"error": {
"code": "VALIDATION_FAILED",
"message": "\"travelDate\" must be a date in YYYY-MM-DD form.",
"details": [{ "field": "travelDate", "issue": "invalid_format" }],
"correlationId": "…"
},
"meta": { "retryable": false }
}| Status | Means | Do |
|---|---|---|
400 | The body isn't valid JSON | Fix and resend |
401 | Unknown or revoked key, wrong channel, bad signature, or a timestamp more than 5 minutes out | Check the key, the secret, the bytes you signed and your server clock |
404 | The product, booking or reservation isn't known, or the product isn't mapped | Ask the operator to map the product |
409 / 422 | Can't be done as asked, such as not enough seats, a closed departure or an invalid field | Don't retry unchanged; read error.message |
429 | Too many requests | Wait meta.retryAfterMs, then retry |
5xx | Our side | Retry with backoff; bookings are safe to resend |
Retry when meta.retryable is true. When you contact us about a request, quote its correlationId.
Limits
- 120 requests a minute per key, unless agreed otherwise. Responses carry the standard
RateLimitheaders. - A request body can be up to 512 KB.
- Up to 50 lines and 50 extras per booking, and up to 999 guests per line.
Checklist before going live
- The secret is in a secrets store, not in code or logs
- Your server clock is synced (NTP), so timestamps stay within 5 minutes
- You sign and send the same bytes
- Each booking has a stable
externalBookingId, and retries reuse it - The operator has mapped every product you'll send
- You've checked availability, booked, changed and cancelled a test departure together with the operator