Meridia360

Meridia360 / Docs / Inbound channel API

Inbound channel API

How a booking partner sends bookings to an operator on Meridia360: check availability, hold seats, confirm, change and cancel, with every request signed.

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:

EndpointThe base URL for that channel, ending in /v1/channels/inbound/<channel>. Every path below is added to it.
Key idThe key's public prefix. Sent in X-Meridian-Key.
SecretSigns your requests. Never sent.
The secret is shown once. Meridia360 keeps only a hash, so nobody can look it up later, including us. Store it in your secrets manager. If it's lost or leaked, the operator issues a new key and revokes the old one. A revoked key stops working at once.

2. Sign every request

Every request is a POST with a JSON body and these headers:

Content-Typeapplication/json
X-Meridian-KeyYour key id.
X-Meridian-TimestampThe current time in Unix seconds. Must be within 5 minutes of ours.
X-Meridian-Signaturesha256= followed by the hex HMAC-SHA256 of <timestamp>.<body>, keyed with your secret.
X-Meridian-Event-IdOptional, 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 }
}

3. Endpoints

POSTDoes
/availabilitySeats left on a departure, and whether it can still be booked
/bookingsCreates a confirmed booking
/reservationsHolds seats while your traveller pays
/reservations/confirmTurns a hold into a booking
/reservations/releaseGives a hold's seats back
/amendmentsChanges a booking's date, time, guests or extras
/cancellationsCancels 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

POST /availability
{
  "externalProductId": "BOAT-COMINO",
  "date": "2026-11-14",
  "startTime": "09:00"
}

startTime is optional for products sold by date alone. The answer:

200 OK
{
  "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

POST /bookings
{
  "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-number quantity, and customer.firstName.
  • A line names who it's for with pricingCategoryName (as the operator names them, such as "Adult") or your own rateId.
  • totalMinor (in cents) and currency are 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.
201 Created
{
  "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.

POST /reservations
{
  "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 } }

Change a booking

POST /amendments
{
  "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

POST /cancellations
{ "externalBookingId": "PX-100245", "reason": "Guest cancelled" }

→ 200 { "data": { "cancelled": true } }

Cancelling twice is harmless: the second call answers the same.

4. Errors

Error response
{
  "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 }
}
StatusMeansDo
400The body isn't valid JSONFix and resend
401Unknown or revoked key, wrong channel, bad signature, or a timestamp more than 5 minutes outCheck the key, the secret, the bytes you signed and your server clock
404The product, booking or reservation isn't known, or the product isn't mappedAsk the operator to map the product
409 / 422Can't be done as asked, such as not enough seats, a closed departure or an invalid fieldDon't retry unchanged; read error.message
429Too many requestsWait meta.retryAfterMs, then retry
5xxOur sideRetry 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 RateLimit headers.
  • 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