Skip to main content

ERP and Maintenance Systems

Connect Haltless to an ERP or a maintenance system (CMMS), push work orders, production data, and downtime to it, pull asset (machine) records from it, and review sync history. All endpoints are authenticated with a Bearer JWT (see Authentication). They also need the ERP settings tab and the ERP integration feature enabled for your company (403 otherwise).

ProviderproviderWhat it takes
SAP S/4HANAsapWork orders, production data, downtime; assets pulled
Microsoft Dynamics 365dynamicsWork orders, production data, downtime; assets pulled
OracleoracleWork orders, production data, downtime; assets pulled
MaintainXmaintainxWork orders, with their status and completion read back; assets pulled
IBM MaximomaximoWork orders, with their status and completion read back; assets pulled

Endpoints​

MethodPathDescription
GET/api/v1/erp/connectionsList connections
POST/api/v1/erp/connectionsCreate a connection (Admin)
GET/api/v1/erp/connections/{connection_id}Get a connection
PATCH/api/v1/erp/connections/{connection_id}Update a connection (Admin)
DELETE/api/v1/erp/connections/{connection_id}Delete a connection (Admin)
POST/api/v1/erp/connections/{connection_id}/testTest connectivity (Admin)
POST/api/v1/erp/connections/{connection_id}/syncTrigger a sync
GET/api/v1/erp/connections/{connection_id}/logsSync logs for a connection
GET/api/v1/erp/logsSync logs across all connections

Endpoints marked Admin require an account administrator role.

Connections​

Create a connection​

POST /api/v1/erp/connections

Provider credentials go in the config object; its required keys depend on the provider. Connection targets must be reachable over HTTPS at a public host; otherwise the request returns 400. A missing required config key, a name over 200 characters or a field_mapping of more than 50 keys returns 422. A company can have up to 10 connections.

{
"provider": "sap",
"name": "SAP Production",
"config": {
"base_url": "https://sap.example.com",
"client": "100",
"username": "haltless_integration",
"password": "••••••"
},
"is_active": true,
"auto_push_work_orders": false,
"auto_push_production_data": false,
"auto_push_downtime": false,
"auto_pull_assets": false,
"sync_interval_minutes": 60,
"field_mapping": {
"work_order": { "MaintOrderDesc": "ZZ_ShortText" }
}
}

field_mapping renames fields in what Haltless sends, per entity: work_order, production_data, or downtime. Each entry maps a field name Haltless would send to the name your ERP expects; fields not listed are sent unchanged.

Required config keys by provider:

ProviderRequired config keys
sapbase_url, client, username, password
dynamicsbase_url, tenant_id, client_id, client_secret
oraclebase_url, username, password
maintainxapi_key (created in MaintainX under Settings > Integrations > API Keys)
maximobase_url, api_key, site_id

Optional keys for the maintenance systems:

ProviderKeyDescription
maintainxorganization_idMaintainX's numeric organization id, for a key that reaches more than one organization
maintainxbase_urlDefaults to https://api.getmaintainx.com/v1
maximowork_typeThe work type new work orders are given
anyproduction_ordersText of MACHINE=ORDER pairs, separated by commas, semicolons or new lines (for example PRESS-1=1000123, PRESS-2=1000456): the production order each machine's production data is booked to. SAP refuses production data for a machine that has no order here. A malformed value returns 422

For Maximo, base_url is the root of its JSON API as your installation serves it, for example https://maximo.example.com/maximo/api or .../maximo/oslc; site_id is the site work orders are made at, and assets are pulled from.

{
"provider": "maintainx",
"name": "MaintainX",
"config": { "api_key": "••••••" },
"auto_push_work_orders": true,
"sync_interval_minutes": 15
}

Automatic sync​

An active connection runs the syncs its auto_* options turn on whenever sync_interval_minutes (5 to 1,440, default 60) has passed since its last sync. A connection with every option off syncs only when you trigger it, with POST /api/v1/erp/connections/{connection_id}/sync or Sync now on the settings page. For MaintainX and Maximo, auto_push_work_orders also reads back what became of the work orders already handed over. What a provider does not take is not attempted, and one connection's failure is logged against it without holding up the others.

Connection response​

Secret values inside config are masked in every response. When you update a connection with PATCH, a secret you send back as *** keeps its stored value.

{
"id": "...",
"tenant_id": "...",
"provider": "sap",
"name": "SAP Production",
"config": { "base_url": "https://sap.example.com", "client": "100", "username": "haltless_integration", "password": "***" },
"is_active": true,
"auto_push_work_orders": false,
"auto_push_production_data": false,
"auto_push_downtime": false,
"auto_pull_assets": false,
"sync_interval_minutes": 60,
"field_mapping": { "work_order_id": "AUFNR" },
"last_sync_at": "2026-08-05T10:00:00Z",
"last_sync_status": "success",
"created_by": "USER_UUID",
"created_at": "2026-08-01T09:00:00Z",
"updated_at": "2026-08-05T10:00:00Z"
}

Test a connection​

POST /api/v1/erp/connections/{connection_id}/test

{
"success": true,
"message": "Successfully connected.",
"provider": "sap"
}

Syncs​

Trigger a sync​

POST /api/v1/erp/connections/{connection_id}/sync

{
"direction": "outbound",
"entity_type": "work_order",
"entity_id": "WORK_ORDER_UUID"
}
  • direction is outbound (push to the ERP) or inbound (pull into Haltless).
  • entity_id is optional and targets a single record on an outbound push.
  • Requires an operator or administrator whose access covers all machines; a user limited to some machine groups gets 403.
  • A push sends each record once, oldest first, at most 25 records per sync, and stops after 60 seconds; records left over are sent by the next sync, and the response ends with a skipped entry saying how many are waiting. A pull updates the location of machines it can match by external asset id or by identifier; it never creates machines.

Supported combinations:

Entity typeOutboundInbound
work_orderPush work ordersRead back status and completion (MaintainX, Maximo)
production_dataPush production/OEE data (ERPs only)Not supported
downtimePush downtime records (ERPs only)Not supported
machineNot supportedPull asset master data

An unsupported combination returns 400, with the reason (for example, "MaintainX takes work orders only"). The response is a list of sync-log entries for the operation.

Handing work orders to a maintenance system​

MaintainX and Maximo are handed work still to do: only open and in_progress work orders are pushed, each once. A work order raised by an alert carries its evidence (the machine, the reading, the threshold and when), the first steps of the alert's playbook, and links back to the alert and the work order in Haltless. It is linked to the machine's asset in that system when the machine has been matched to one by an asset pull. In Maximo the evidence goes in the long description, since the short one holds 100 characters. A MaintainX push that is retried after its answer was lost finds the work order it already made rather than making a second.

Once handed over, the work order records where it went in external_source and external_id (see Work Orders). An inbound work_order sync asks about those not yet finished in Haltless, up to 100 per run, and follows each one the other system started, finished or cancelled:

MaintainXMaximoIn Haltless
OPEN, ON_HOLDWAPPR, APPR, WSCH, WMATL, WPCONDopen
IN_PROGRESSINPRGin_progress
DONECOMP, CLOSEcompleted, keeping the time it was done there
CANCELED, SKIPPED, or deletedCAN, or deletedcancelled

A completion read back starts the fix check like any other. Only changes are written to the sync log.

Sync logs​

GET /api/v1/erp/connections/{connection_id}/logs and GET /api/v1/erp/logs

Both are paginated with page and page_size (default 20, max 100). Logs are kept for 90 days.

{
"items": [
{
"id": "...",
"erp_connection_id": "...",
"direction": "outbound",
"entity_type": "work_order",
"entity_id": "...",
"external_id": "AUFNR-000123",
"status": "success",
"error_message": null,
"request_summary": "1 work order",
"response_summary": "created",
"created_at": "2026-08-05T10:00:00Z"
}
],
"total": 1,
"page": 1,
"page_size": 20
}