iris
MARITIME PMS
Welcome aboard
API & integrations

Connect IRIS to the systems you already use

A REST API with scoped tokens, signed webhooks and ready-made files for Xero and QuickBooks. ERP, accounting, engine monitoring, port and agency systems can read from IRIS and send data to it.

ERP & accounting

Purchase orders with lines and totals, tug invoices, suppliers and customers — by API or as Xero / QuickBooks files.

Engine monitoring

Send running hours automatically and raise defects from alarms, so hour-based jobs fall due on time.

Port & agency systems

Request tug jobs from a port or agency system and receive the times and invoices back.

Reports & BI

Work orders, defects, certificates, noon reports and CO₂ / CII into Power BI, Excel or your data warehouse.

Getting started

  1. An administrator creates an API token under Administration → API & Integrations, with only the scopes the system needs.
  2. Send the token in every request: Authorization: Bearer iris_…. The API answers JSON.
  3. Base address: https://app.irisfleetpms.com/api/v1. The full description is an OpenAPI 3 file at https://app.irisfleetpms.com/api/v1/openapi.json — import it in Postman, Insomnia or your code generator.
curl -H "Authorization: Bearer iris_…" https://app.irisfleetpms.com/api/v1/me

curl -H "Authorization: Bearer iris_…" "https://app.irisfleetpms.com/api/v1/work-orders?overdue=1&vessel_id=1"

curl -X POST -H "Authorization: Bearer iris_…" -H "Content-Type: application/json" \
     -d '{"meter": 12450.5, "reading_at": "2026-11-27T08:00:00Z"}' https://app.irisfleetpms.com/api/v1/counters/5/readings

Scopes

ScopeAllows
fleet:readVessels, equipment and running-hour counters
counters:writeSend counter readings (e.g. from an engine monitoring system)
maintenance:readWork orders and defects
defects:writeReport defects (e.g. from an alarm system)
certificates:readCertificates and survey dates
purchasing:readPurchase orders with lines and totals (for accounting / ERP)
voyage:readNoon / voyage reports and the yearly CO₂ and CII figures
tug:readTug jobs and tug invoices
tug:writeCreate tug job requests (e.g. from a port or agency system)

A token works as the person who created it: it never sees more vessels, or does more, than that person may. Write scopes also need the matching permission (for example "enter running hours" for counters:write).

Endpoints

PathScopeWhat it does
GET/me — The token, its scopes and the company.
GET/vesselsfleet:read Vessels of the company.
Parameters: page, per_page, updated_since
GET/vessels/{id}fleet:read One vessel.
GET/equipmentfleet:read Equipment; filter with vessel_id.
Parameters: page, per_page, updated_since, vessel_id
GET/countersfleet:read Running-hour counters with the current value.
Parameters: page, per_page, updated_since, vessel_id
POST/counters/{id}/readingscounters:write Send a meter reading. Body: {"meter": 12450.5, "reading_at": "2026-11-27T08:00:00Z"}
GET/work-ordersmaintenance:read Work orders; status open|in_progress|completed|closed|cancelled, overdue=1, due_before=date.
Parameters: page, per_page, updated_since, vessel_id, status, overdue, due_before
GET/defectsmaintenance:read Defects; filter by status and severity.
Parameters: page, per_page, updated_since, vessel_id, status, severity
POST/defectsdefects:write Report a defect. Body: {"vessel_id": 1, "title": "…", "severity": "minor|major|critical", "equipment_id": 12, "description": "…"}
GET/certificatescertificates:read Current certificates; expiring_within=days.
Parameters: page, per_page, updated_since, vessel_id, status, expiring_within
GET/purchase-orderspurchasing:read Purchase orders with lines and totals.
Parameters: page, per_page, updated_since, vessel_id, status, from, to
GET/voyage-reportsvoyage:read Noon, departure, arrival and in-port reports.
Parameters: page, per_page, updated_since, vessel_id, from, to
GET/emissionsvoyage:read Yearly fuel, CO₂, CII and EU ETS figures per vessel; vessel_id and year required.
Parameters: vessel_id, year
GET/tug/jobstug:read Tug jobs with tugs and times.
Parameters: page, per_page, updated_since, status, from, to
POST/tug/jobstug:write Request a tug job. Body: {"job_type": "berthing", "ship_name": "MV …", "ship_gt": 9800, "scheduled_at": "…", "tugs_needed": 2, "customer_id": 1, "port": "…", "from_place": "…", "to_place": "…", "reference": "…"}
GET/tug/invoicestug:read Tug invoices; filter by status.
Parameters: page, per_page, updated_since, status, from, to

Lists, filters and dates

  • Lists return {"data": [...], "meta": {"page": 1, "per_page": 50, "total": 230, "next_page": 2}}. Use per_page (up to 200) and page.
  • updated_since=2026-11-27T00:00:00Z returns only records changed since then — the simple way to keep another system in step: remember the time of your last call.
  • Dates are YYYY-MM-DD; times are ISO 8601 in UTC (2026-11-27T08:00:00Z). Several values: status=open,in_progress.
  • Amounts are numbers in the document's currency (currency, with fx_rate on purchase orders).

Errors and limits

401No token, or it is revoked or expired.
403The token lacks the scope (missing_scope) or its creator lacks the permission (forbidden).
404Unknown endpoint or record, or a vessel the token may not see.
422Invalid input: {"message": "…", "errors": {"meter": ["…"]}} — for example a meter reading lower than the last one.
429More than 120 requests a minute with one token. Wait and try again.

Other errors look like {"error": {"code": "missing_scope", "message": "…"}}.

Webhooks

Instead of asking IRIS every few minutes, let IRIS tell you. Add a webhook (an https address) and choose the events:

defect.createdA defect is reported
work_order.completedA work order is completed on board
work_order.closedA work order is closed (verified)
counter.readingA running-hour reading is recorded
purchase_order.approvedA purchase order is approved and issued
voyage_report.receivedA noon / voyage report arrives
tow_job.completedA tug job is completed
tow_invoice.issuedA tug invoice is issued
pingSent by "Send test"

Each event is a POST with a JSON body; data has the same shape as the record in the API:

POST /your/address
Content-Type: application/json
X-IRIS-Event: defect.created
X-IRIS-Delivery: 5d2f0c8e-…            (unique id — ignore a delivery you have already handled)
X-IRIS-Signature: t=1764230400,v1=8f3a…

{"id": "5d2f0c8e-…", "event": "defect.created", "created_at": "2026-11-27T08:00:00Z", "company_id": 1, "api_version": "v1",
 "data": {"id": 163, "number": "DEF-MBS-260013", "vessel_id": 1, "title": "…", "severity": "major", …}}

Check the signature before trusting the message: HMAC-SHA256 of t + "." + body with the webhook's signing secret must equal v1. Refuse messages whose t is more than 5 minutes old.

PHP
$body = file_get_contents('php://input');
parse_str(str_replace(',', '&', $_SERVER['HTTP_X_IRIS_SIGNATURE']), $s);
$ok = hash_equals(
  hash_hmac('sha256', $s['t'].'.'.$body, $secret), $s['v1'])
  && abs(time() - (int) $s['t']) < 300;
Node.js
const crypto = require('crypto');
// raw = the request body as received (Buffer)
const s = Object.fromEntries(req.headers['x-iris-signature']
  .split(',').map(p => p.split('=')));
const mac = crypto.createHmac('sha256', secret)
  .update(s.t + '.' + raw).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(s.v1));
Python
import hmac, hashlib, time
s = dict(p.split('=', 1) for p in
         headers['X-IRIS-Signature'].split(','))
mac = hmac.new(secret.encode(), (s['t'] + '.').encode() + raw,
               hashlib.sha256).hexdigest()
ok = hmac.compare_digest(mac, s['v1']) and \
     abs(time.time() - int(s['t'])) < 300

Answer with any 2xx within 10 seconds (do the slow work afterwards). Otherwise IRIS tries again after 1, 5, 30 and 120 minutes; after 15 failures in a row the webhook is turned off and the administrator sees why. Deliveries may arrive more than once or out of order — use X-IRIS-Delivery and the record's updated_at.

Accounting files

Without any programming, Accounting export makes CSV files of tug invoices (sales) and purchase orders (bills) for Xero, QuickBooks Online (invoices) or any system that imports CSV — one row per line, amounts before tax with the tax per line, your account codes and tax-rate names.

Planning an integration?

Book a demo and bring your IT team — we will walk through the API with your systems in mind.

Book a demo
Book a demo